summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-07 10:59:40 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-07 10:59:40 (EST)
commitda9d01c395e0db567dfd356c73576ea65a389ea5 (patch)
tree19d94c0c73be685f4cde8549452f148e5b2a8aa8
parent27a3ebfc89230b106d47421b62e7374f60e8f35c (diff)
tests/reduce_deps.sh: Define main()
-rwxr-xr-xtests/reduce_deps.sh62
1 files changed, 27 insertions, 35 deletions
diff --git a/tests/reduce_deps.sh b/tests/reduce_deps.sh
index a85775f..0e5f7da 100755
--- a/tests/reduce_deps.sh
+++ b/tests/reduce_deps.sh
@@ -41,38 +41,30 @@ do_test()
fi
}
-# Normal and union AND-lists.
-
-do_test 'foo, bar' false 'amd64-linux-glibc' 'dev' 'foo, bar'
-
-do_test 'foo,bar' false 'amd64-linux-glibc' 'dev' 'foo, bar'
-
-do_test 'foo, bar' false 'amd64-linux-glibc' 'dev' 'foo, bar'
-
-do_test 'foo, bar' true 'amd64-linux-glibc' 'dev' 'foo, bar'
-
-do_test 'foo,bar' true 'amd64-linux-glibc' 'dev' 'foo, bar'
-
-do_test 'foo, bar' true 'amd64-linux-glibc' 'dev' 'foo, bar'
-
-# Normal and union OR-lists.
-
-do_test 'foo | bar' false 'amd64-linux-glibc' 'dev' 'foo | bar'
-
-do_test 'foo|bar' false 'amd64-linux-glibc' 'dev' 'foo | bar'
-
-do_test 'foo | bar' false 'amd64-linux-glibc' 'dev' 'foo | bar'
-
-# Normal and union AND-lists with arch specs.
-
-do_test 'foo [amd64-linux-glibc], bar [!amd64-linux-glibc]' false \
- 'amd64-linux-glibc' 'dev' 'foo'
-
-do_test 'foo [amd64-linux-glibc], bar [!amd64-linux-glibc]' true \
- 'amd64-linux-glibc' 'dev' 'foo'
-
-# Normal and union AND-lists with plat specs.
-
-do_test 'foo <dev>, bar <!dev>' false 'amd64-linux-glibc' 'dev' 'foo'
-
-do_test 'foo <dev>, bar <!dev>' true 'amd64-linux-glibc' 'dev' 'foo'
+main()
+{
+ # Normal and union AND-lists.
+ do_test 'foo, bar' false 'amd64-linux-glibc' 'dev' 'foo, bar'
+ do_test 'foo,bar' false 'amd64-linux-glibc' 'dev' 'foo, bar'
+ do_test 'foo, bar' false 'amd64-linux-glibc' 'dev' 'foo, bar'
+ do_test 'foo, bar' true 'amd64-linux-glibc' 'dev' 'foo, bar'
+ do_test 'foo,bar' true 'amd64-linux-glibc' 'dev' 'foo, bar'
+ do_test 'foo, bar' true 'amd64-linux-glibc' 'dev' 'foo, bar'
+
+ # Normal and union OR-lists.
+ do_test 'foo | bar' false 'amd64-linux-glibc' 'dev' 'foo | bar'
+ do_test 'foo|bar' false 'amd64-linux-glibc' 'dev' 'foo | bar'
+ do_test 'foo | bar' false 'amd64-linux-glibc' 'dev' 'foo | bar'
+
+ # Normal and union AND-lists with arch specs.
+ do_test 'foo [amd64-linux-glibc], bar [!amd64-linux-glibc]' false \
+ 'amd64-linux-glibc' 'dev' 'foo'
+ do_test 'foo [amd64-linux-glibc], bar [!amd64-linux-glibc]' true \
+ 'amd64-linux-glibc' 'dev' 'foo'
+
+ # Normal and union AND-lists with plat specs.
+ do_test 'foo <dev>, bar <!dev>' false 'amd64-linux-glibc' 'dev' 'foo'
+ do_test 'foo <dev>, bar <!dev>' true 'amd64-linux-glibc' 'dev' 'foo'
+
+ return 0
+}