diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-12-07 10:47:20 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-12-07 10:47:20 (EST) |
commit | b693c185502b73ede8279913c0d148acb30d5e5b (patch) | |
tree | 254c9b57bb30d2fd2b809318b3cdc5fba551f7ef | |
parent | 68862e644273a8d160985f76b001f80e00c0670c (diff) |
tests/arch_is_concerned.sh: Define main()
-rwxr-xr-x | tests/arch_is_concerned.sh | 81 |
1 files changed, 34 insertions, 47 deletions
diff --git a/tests/arch_is_concerned.sh b/tests/arch_is_concerned.sh index 26a1f86..ee62976 100755 --- a/tests/arch_is_concerned.sh +++ b/tests/arch_is_concerned.sh @@ -43,50 +43,37 @@ do_test() fi } -# Architecture: all - -do_test 'amd64-linux-glibc' 'all' false - -do_test 'i686-linux-glibc' 'all' false - -do_test 'all' 'all' true - -# Architecture: any - -do_test 'amd64-linux-glibc' 'any' true - -do_test 'i686-linux-glibc' 'any' true - -do_test 'all' 'any' 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 - -# 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 - -# 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 - -# 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 +main() +{ + # Architecture: all + do_test 'amd64-linux-glibc' 'all' false + do_test 'i686-linux-glibc' 'all' false + do_test 'all' 'all' true + + # Architecture: any + do_test 'amd64-linux-glibc' 'any' true + do_test 'i686-linux-glibc' 'any' true + do_test 'all' 'any' 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 + + # 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 + + # 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 + + # 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 + + return 0 +} |