diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/arch_is_concerned.sh | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/tests/arch_is_concerned.sh b/tests/arch_is_concerned.sh index ee62976..c6c1d17 100755 --- a/tests/arch_is_concerned.sh +++ b/tests/arch_is_concerned.sh @@ -45,35 +45,43 @@ do_test() main() { + local arches= + # Architecture: all - do_test 'amd64-linux-glibc' 'all' false - do_test 'i686-linux-glibc' 'all' false - do_test 'all' 'all' true + arches='all' + do_test 'amd64-linux-glibc' "${arches}" false + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" true # Architecture: any - do_test 'amd64-linux-glibc' 'any' true - do_test 'i686-linux-glibc' 'any' true - do_test 'all' 'any' false + arches='any' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" true + do_test 'all' "${arches}" false # Architecture: amd64-linux-glibc - do_test 'amd64-linux-glibc' 'amd64-linux-glibc' true - do_test 'i686-linux-glibc' 'amd64-linux-glibc' false - do_test 'all' 'amd64-linux-glibc' false + arches='amd64-linux-glibc' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" false # Architecture: !amd64-linux-glibc - do_test 'amd64-linux-glibc' '!amd64-linux-glibc' false - do_test 'i686-linux-glibc' '!amd64-linux-glibc' true - do_test 'all' '!amd64-linux-glibc' false + arches='!amd64-linux-glibc' + do_test 'amd64-linux-glibc' "${arches}" false + do_test 'i686-linux-glibc' "${arches}" true + do_test 'all' "${arches}" false # Architecture: amd64-linux-glibc cortexa8-linux-glibc - do_test 'amd64-linux-glibc' 'amd64-linux-glibc cortexa8-linux-glibc' true - do_test 'i686-linux-glibc' 'amd64-linux-glibc cortexa8-linux-glibc' false - do_test 'all' 'amd64-linux-glibc cortexa8-linux-glibc' false + arches='amd64-linux-glibc cortexa8-linux-glibc' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" false # Architecture: amd64-linux-glibc all - do_test 'amd64-linux-glibc' 'amd64-linux-glibc all' true - do_test 'i686-linux-glibc' 'amd64-linux-glibc all' false - do_test 'all' 'amd64-linux-glibc all' true + arches='amd64-linux-glibc all' + do_test 'amd64-linux-glibc' "${arches}" true + do_test 'i686-linux-glibc' "${arches}" false + do_test 'all' "${arches}" true return 0 } |