summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-07 10:53:13 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-07 10:53:13 (EST)
commit6562c52fade8cd1833ce4e977a9ad951bd0912ef (patch)
tree148ff56ed18f6ee33199f0f021caebef17406461 /tests
parent5232904865f807ac45435830c7b7482e06b284d2 (diff)
tests/match_arch.sh: Define main()
Diffstat (limited to 'tests')
-rwxr-xr-xtests/match_arch.sh29
1 files changed, 17 insertions, 12 deletions
diff --git a/tests/match_arch.sh b/tests/match_arch.sh
index 3e9d5fc..35f943b 100755
--- a/tests/match_arch.sh
+++ b/tests/match_arch.sh
@@ -43,26 +43,31 @@ do_test()
fi
}
-do_test all 'all' true
+main()
+{
+ do_test all 'all' true
+
+ do_test foo-bar-baz 'any' true
-do_test foo-bar-baz 'any' true
+ do_test foo-bar-baz 'any all' true
-do_test foo-bar-baz 'any all' true
+ do_test all 'any all' true
-do_test all 'any all' true
+ do_test foo-bar-baz 'foo-bar-baz' true
-do_test foo-bar-baz 'foo-bar-baz' true
+ do_test foo-bar-baz 'foo-any-any' true
-do_test foo-bar-baz 'foo-any-any' true
+ do_test foo-bar-baz 'foo-bar-qux' false
-do_test foo-bar-baz 'foo-bar-qux' false
+ do_test foo-bar-baz 'any-qux-any any-bar-any' true
-do_test foo-bar-baz 'any-qux-any any-bar-any' true
+ do_test foo-bar-baz 'any-qux-any any-quux-any' false
-do_test foo-bar-baz 'any-qux-any any-quux-any' false
+ do_test all 'any' false
-do_test all 'any' false
+ do_test any 'all' false
-do_test any 'all' false
+ do_test all 'foo-any-any' false
-do_test all 'foo-any-any' false
+ return 0
+}