diff options
author | Paul Moore <pmoore@redhat.com> | 2014-04-15 18:56:44 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-04-16 16:36:16 -0400 |
commit | b969e4405c3c27d42937c0ba2fdb3e5fac0e5982 (patch) | |
tree | 47ae84e7f2e02a4abce3c6ccdd4c0cd047db594f /tests/regression | |
parent | b850d62fefca24446f1cb5558d7154cee0985431 (diff) | |
download | libseccomp-b969e4405c3c27d42937c0ba2fdb3e5fac0e5982.tar.gz |
tests: support both big and little endian test architectures
Replace the "+all" architecture tokens in the test files with the
"+all_le" and "+all_be" tokens to represent all the little endian and
big endian architectures respectively.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tests/regression')
-rwxr-xr-x | tests/regression | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/regression b/tests/regression index 4901539..b83e8a2 100755 --- a/tests/regression +++ b/tests/regression @@ -21,7 +21,8 @@ # along with this library; if not, see <http://www.gnu.org/licenses>. # -GLBL_ARCH_SUPPORT="x86 x86_64 x32 arm mipsel" +GLBL_ARCH_LE_SUPPORT="x86 x86_64 x32 arm mipsel" +GLBL_ARCH_BE_SUPPORT="mips" GLBL_SYS_ARCH="../tools/scmp_arch_detect" GLBL_SYS_RESOLVER="../tools/scmp_sys_resolver" @@ -344,8 +345,10 @@ function run_test_bpf_sim() { if [[ "${testarch:0:1}" == "+" ]]; then # run the tests on the specified architecture(s) simarch_list="${testarch:1}" - if [[ "$simarch_list" == "all" ]]; then - simarch_list="$GLBL_ARCH_SUPPORT" + if [[ "$simarch_list" == "all_le" ]]; then + simarch_list="$GLBL_ARCH_LE_SUPPORT" + elif [[ "$simarch_list" == "all_be" ]]; then + simarch_list="$GLBL_ARCH_BE_SUPPORT" fi elif [[ "$testarch" != "all" ]] && [[ "$testarch" != "$arch" ]]; then # only run tests that match the current architecture |