summaryrefslogtreecommitdiffstats
path: root/tests/arch_is_concerned.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arch_is_concerned.sh')
-rwxr-xr-xtests/arch_is_concerned.sh81
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
+}