aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2013-05-16 20:37:46 -0600
committerRob Savoye <rob@welcomehome.org>2013-05-16 20:37:46 -0600
commit73d49968524d1f53491a442ebe5a7c00c713deef (patch)
tree02363ef8672215eda1694b75af59462241e91099 /test.sh
initial version of minimal scripts.
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh65
1 files changed, 65 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..427f0b8
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+pass()
+{
+ echo "PASS: $1"
+}
+
+fail()
+{
+ echo "FAIL: $1"
+}
+
+test()
+{
+ case "$1" in
+ *$2*)
+ pass $2
+ ;;
+ *)
+ fail $2
+ ;;
+ esac
+}
+
+out="`./cbuild2.sh --build XXX`"
+test "${out}" "build"
+
+out="`./cbuild2.sh --target XXX`"
+test "${out}" "target"
+
+out="`./cbuild2.sh --snapshots XXX`"
+test "${out}" "snapshot"
+
+out="`./cbuild2.sh --libc XXX`"
+test "${out}" "libc"
+
+out="`./cbuild2.sh --list XXX`"
+test "${out}" "list"
+
+#out="`./cbuild2.sh --set {gcc,binutils,libc,latest}=XXX`"
+#test "${out}" "set"
+
+out="`./cbuild2.sh --binutils XXX`"
+test "${out}" "binutils"
+
+out="`./cbuild2.sh --gcc XXX`"
+test "${out}" "gcc"
+
+out="`./cbuild2.sh --config XXX`"
+test "${out}" "config"
+
+out="`./cbuild2.sh --clean`"
+test "${out}" "Cleaning"
+
+out="`./cbuild2.sh --dispatch XXX`"
+test "${out}" "Dispatch"
+
+out="`./cbuild2.sh --sysroot XXX`"
+test "${out}" "sysroot"
+
+out="`./cbuild2.sh --db-user XXX`"
+test "${out}" "user"
+
+out="`./cbuild2.sh --db-passwd XXX`"
+test "${out}" "password"