summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/ob_arch_is_concerned.sh44
1 files changed, 43 insertions, 1 deletions
diff --git a/tests/ob_arch_is_concerned.sh b/tests/ob_arch_is_concerned.sh
index 41c57d2..f88abef 100755
--- a/tests/ob_arch_is_concerned.sh
+++ b/tests/ob_arch_is_concerned.sh
@@ -22,7 +22,7 @@ set -e
. "${TOP_SRCDIR}/tests/aux/tap-functions.sh"
. "${TOP_BUILDDIR}/lib/libopkbuild.${SHSOEXT}.${LIBOPKBUILD_SHSOVERSION}"
-plan_ 12
+plan_ 18
# Architecture: all
@@ -103,3 +103,45 @@ command_ok_ \
not ob_arch_is_concerned \
'all' \
'!amd64-linux-glibc'
+
+# Architecture: amd64-any-any
+
+command_ok_ \
+ 'HOST "amd64-linux-glibc" DOES NOT MATCH ARCH "amd64-any-any"' -- \
+ ob_arch_is_concerned \
+ 'amd64-linux-glibc' \
+ 'amd64-any-any'
+
+command_ok_ \
+ 'HOST "i686-linux-glibc" DOES MATCH ARCH "amd64-any-any"' -- \
+ not ob_arch_is_concerned \
+ 'i686-linux-glibc' \
+ 'amd64-any-any'
+
+command_ok_ \
+ 'HOST "all" DOES NOT MATCH ARCH "amd64-any-any"' -- \
+ not ob_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 ob_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"' -- \
+ ob_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 ob_arch_is_concerned \
+ 'all' \
+ 'cortexa8-any-any i686-any-any'