diff options
author | Paul Moore <paul@paul-moore.com> | 2019-03-04 18:11:45 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-03-04 18:11:45 -0500 |
commit | aba11563f0d323e9c8ecc62fbdea9123fab28208 (patch) | |
tree | aca068ab566d1375b6f1a6fe2cd8dd73d58f078d | |
parent | f5ff93c6c912e35be9b6cc5c302a5e2e85c33902 (diff) | |
download | libseccomp-aba11563f0d323e9c8ecc62fbdea9123fab28208.tar.gz |
tests: add support for 32-bit and 64-bit test filtering
Add "[+]all_32" and "[+]all_64" which work the same as the
little and big endian test filters.
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rwxr-xr-x | tests/regression | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/regression b/tests/regression index 23291d8..ec487d1 100755 --- a/tests/regression +++ b/tests/regression @@ -32,6 +32,22 @@ GLBL_ARCH_BE_SUPPORT=" \ ppc ppc64 \ s390 s390x" +GLBL_ARCH_32B_SUPPORT=" \ + x86 x32 \ + arm \ + mips mipsel mips64n32 mipsel64n32 \ + parisc \ + ppc \ + s390" + +GLBL_ARCH_64B_SUPPORT=" \ + x86_64 \ + aarch64 \ + mips64 \ + parisc64 \ + ppc64 \ + s390x" + GLBL_SYS_ARCH="../tools/scmp_arch_detect" GLBL_SYS_RESOLVER="../tools/scmp_sys_resolver" GLBL_SYS_SIM="../tools/scmp_bpf_sim" @@ -419,6 +435,26 @@ function run_test_bpf_sim() { # add all of the big endian architectures simarch_tmp+=" $GLBL_ARCH_BE_SUPPORT" ;; + all_32) + # add the native arch only if it is 32-bit + if echo "$GLBL_ARCH_32B_SUPPORT" | grep -qw "$arch"; then + simarch_tmp+=" $arch" + fi + ;; + +all_32) + # add all of the 32-bit architectures + simarch_tmp+=" $GLBL_ARCH_32B_SUPPORT" + ;; + all_64) + # add the native arch only if it is 64-bit + if echo "$GLBL_ARCH_64B_SUPPORT" | grep -qw "$arch"; then + simarch_tmp+=" $arch" + fi + ;; + +all_64) + # add all of the 64-bit architectures + simarch_tmp+=" $GLBL_ARCH_64B_SUPPORT" + ;; +*) # add the architecture specified simarch_tmp+=" ${arch_i:1}" |