]> git.stg.codes - stg.git/blobdiff - functest/build.sh
Added functional test framework.
[stg.git] / functest / build.sh
diff --git a/functest/build.sh b/functest/build.sh
new file mode 100755 (executable)
index 0000000..a84e9e0
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+BASEPATH=$1
+
+if [ "$BASEPATH" == "" ]
+then
+    printf "Usage: $0 <path>\n"
+    exit -1
+fi
+
+if [ ! -d "$BASEPATH" ]
+then
+    printf "Path '$BASEPATH' does not exist or not a directory.\n"
+    exit -1
+fi
+
+cd "$BASEPATH/stg/projects/stargazer"
+./build debug
+make clean
+make
+
+cd "$BASEPATH/stg/projects/sgconf"
+./build debug
+make clean
+make