Add Glulxe and Git. They compile but don't work yet.
[rodin/chimara.git] / interpreters / git / test / test.sh
diff --git a/interpreters/git/test/test.sh b/interpreters/git/test/test.sh
new file mode 100644 (file)
index 0000000..e33dbf7
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+TEST_DIR=`dirname $0`
+
+echo "Running Alabaster.glorb..."
+${TEST_DIR}/../git ${TEST_DIR}/Alabaster.gblorb \
+    < ${TEST_DIR}/Alabaster.walk > ${TEST_DIR}/Alabaster.tmp
+
+echo "Comparing output against Alabaster.golden..."
+if diff -q ${TEST_DIR}/Alabaster.tmp ${TEST_DIR}/Alabaster.golden; then
+  echo "TEST PASSED"
+else
+  echo
+  echo "*** TEST FAILED ***"
+  echo
+  echo "The Alabaster walkthrough is not producing the same output as before."
+  echo "Please check Alabaster.tmp manually."
+fi