summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-21 17:18:58 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-21 17:18:58 (EDT)
commit90ead31784addf03e2ae46a0eaffba1e44964169 (patch)
tree6d8cb6ac3076b55430529967a07ecf200f972372 /tests
parent14b8fdf0c5c78482640d90469be97ff48771ebed (diff)
tests/arch_is_concerned.sh: Add more test cases
Cf. opkbuild commit 99a6fe6.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/arch_is_concerned.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/arch_is_concerned.sh b/tests/arch_is_concerned.sh
index 29bdedb..483033f 100755
--- a/tests/arch_is_concerned.sh
+++ b/tests/arch_is_concerned.sh
@@ -133,5 +133,42 @@ main()
'all' \
'amd64-linux-glibc all'
+ # Architecture: amd64-any-any
+ command_ok_ \
+ 'HOST "amd64-linux-glibc" DOES NOT MATCH ARCH "amd64-any-any"' -- \
+ arch_is_concerned \
+ 'amd64-linux-glibc' \
+ 'amd64-any-any'
+ command_ok_ \
+ 'HOST "i686-linux-glibc" DOES MATCH ARCH "amd64-any-any"' -- \
+ not arch_is_concerned \
+ 'i686-linux-glibc' \
+ 'amd64-any-any'
+ command_ok_ \
+ 'HOST "all" DOES NOT MATCH ARCH "amd64-any-any"' -- \
+ not arch_is_concerned \
+ 'all' \
+ 'amd64-any-any'
+
+ # Architecture: cortexa8-any-any i686-any-any
+ command_ok_ \
+ 'HOST "amd64-linux-glibc" DOES NOT MATCH ARCH '$(: \
+ )'"cortexa8-any-any i686-any-any"' -- \
+ not arch_is_concerned \
+ 'amd64-linux-glibc' \
+ 'cortexa8-any-any i686-any-any'
+ command_ok_ \
+ 'HOST "i686-linux-glibc" DOES MATCH ARCH '$(: \
+ )'"cortexa8-any-any i686-any-any"' -- \
+ arch_is_concerned \
+ 'i686-linux-glibc' \
+ 'cortexa8-any-any i686-any-any'
+ command_ok_ \
+ 'HOST "all" DOES NOT MATCH ARCH '$(: \
+ )'"cortexa8-any-any i686-any-any"' -- \
+ not arch_is_concerned \
+ 'all' \
+ 'cortexa8-any-any i686-any-any'
+
return 0
}