aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-04-26 16:36:19 -0500
committerRob Landley <rob@landley.net>2017-04-26 16:36:19 -0500
commit083c9bca70a327c7ca452310b6a3e047d446ca59 (patch)
tree42490d9cf4992fcea9d7416b63e119701dcc7895
parent2d06767f568495d57e43c30b02c22851da9b15db (diff)
downloadtoybox-083c9bca70a327c7ca452310b6a3e047d446ca59.tar.gz
Elliott wants to run the toybox tests on android host and there's an sh but
it isn't toysh, so test for a bash alias.
-rwxr-xr-xtests/sh.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sh.test b/tests/sh.test
index 2d6128c8..1d228dcf 100755
--- a/tests/sh.test
+++ b/tests/sh.test
@@ -4,6 +4,13 @@
#testing "name" "command" "result" "infile" "stdin"
+if [ -z "$(which bash)" ]
+then
+ echo "$SHOWSKIP: no bash alias"
+ continue 2>/dev/null
+ exit
+fi
+
shellit()
{
EVAL="bash -c" testing "$2" "$1 printf %s $2" "$3" "$4" "$5"