Improve consitancy and useability
test_translate_ciphers_names.py
- Combined m, o and g ciphers all into one a single list of tuples to
avoid needing to rely on indexes
test_translate_ciphers_format.sh
- Removed redundant test
- Added return errors
compat.sh
- Improved how translate_ciphers.py is called
translate_ciphers.py
- Improve regex and translation to be more intutive and efficient
- change how arguments are taken and handelled to be more reliable
Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
diff --git a/tests/compat.sh b/tests/compat.sh
index 36018f2..4e18fce 100755
--- a/tests/compat.sh
+++ b/tests/compat.sh
@@ -329,11 +329,11 @@
M_CIPHERS="$M_CIPHERS $CIPHERS"
- T=`python3 scripts/translate_ciphers.py g "$CIPHERS"`
+ T=$(./scripts/translate_ciphers.py g $CIPHERS)
check_translation $? "$T"
G_CIPHERS="$G_CIPHERS $T"
- T=`python3 scripts/translate_ciphers.py o "$CIPHERS"`
+ T=$(./scripts/translate_ciphers.py o $CIPHERS)
check_translation $? "$T"
O_CIPHERS="$O_CIPHERS $T"
}
@@ -417,7 +417,7 @@
M_CIPHERS="$M_CIPHERS $CIPHERS"
- T=`python3 scripts/translate_ciphers.py o "$CIPHERS"`
+ T=$(./scripts/translate_ciphers.py o $CIPHERS)
check_translation $? "$T"
O_CIPHERS="$O_CIPHERS $T"
}
@@ -551,7 +551,7 @@
M_CIPHERS="$M_CIPHERS $CIPHERS"
- T=`python3 scripts/translate_ciphers.py g "$CIPHERS"`
+ T=$(./scripts/translate_ciphers.py g $CIPHERS)
check_translation $? "$T"
G_CIPHERS="$G_CIPHERS $T"
}