summaryrefslogtreecommitdiffstats
path: root/tests/version
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/version13
-rw-r--r--tests/version.mini13
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/version b/tests/version
new file mode 100644
index 0000000..9ad08f7
--- /dev/null
+++ b/tests/version
@@ -0,0 +1,13 @@
+if (( $UID == 0 )); then
+ echo "${THIS_SH}: the test suite should not be run as root" >&2
+ echo
+fi
+
+echo Testing ${THIS_SH}
+
+echo version: $BASH_VERSION
+echo versinfo: ${BASH_VERSINFO[@]}
+
+echo HOSTTYPE = $HOSTTYPE
+echo OSTYPE = $OSTYPE
+echo MACHTYPE = $MACHTYPE
diff --git a/tests/version.mini b/tests/version.mini
new file mode 100644
index 0000000..637565e
--- /dev/null
+++ b/tests/version.mini
@@ -0,0 +1,13 @@
+if (( $UID == 0 )); then
+ echo "${THIS_SH}: the test suite should not be run as root" >&2
+ echo
+fi
+
+echo Testing ${THIS_SH}
+
+echo version: $BASH_VERSION
+#echo versinfo: ${BASH_VERSINFO[@]}
+
+echo HOSTTYPE = $HOSTTYPE
+echo OSTYPE = $OSTYPE
+echo MACHTYPE = $MACHTYPE