summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-03 09:44:06 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-03 09:44:06 -0500
commit99965071d2106e60c8929cca7e79be465cc228e1 (patch)
treebf3801d502ac04ee27aab031f0c8ffbbcbe2a218
parent3a12c94b738b654537a2cd830d6af668b6c74e9b (diff)
downloadroux-99965071d2106e60c8929cca7e79be465cc228e1.tar.gz
complete testing routine
-rwxr-xr-xlisc/test/go.sh17
-rw-r--r--lisc/test/mandel.ssa66
2 files changed, 83 insertions, 0 deletions
diff --git a/lisc/test/go.sh b/lisc/test/go.sh
index b65f2d2..7082db0 100755
--- a/lisc/test/go.sh
+++ b/lisc/test/go.sh
@@ -66,6 +66,23 @@ once() {
 		return 1
 	fi
 
+	if test -s $OUT
+	then
+		$BIN | diff - $OUT > /dev/null
+		RET=$?
+		REASON="output"
+	else
+		$BIN
+		RET=$?
+		REASON="return"
+	fi
+
+	if test $RET -ne 0
+	then
+		echo "[$REASON, fail]"
+		return 1
+	fi
+
 	echo "[ok]"
 }
 
diff --git a/lisc/test/mandel.ssa b/lisc/test/mandel.ssa
index 7aaf311..efefeb3 100644
--- a/lisc/test/mandel.ssa
+++ b/lisc/test/mandel.ssa
@@ -55,3 +55,69 @@ function w $main() {
 @ret
 	ret 0
 }
+
+# >>> output
+#                                                                #
+#                                                                #
+#                                                                #
+#                                                                #
+#                                *                               #
+#                               ****                             #
+#                               ****                             #
+#                               ***                              #
+#                              *****                             #
+#                             *********                          #
+#                           ************                         #
+#                        *****************                       #
+#                         ****************                       #
+#                         ***************                        #
+#                         ****************                       #
+#                         ****************                       #
+#                        *****************                       #
+#                         ****************                       #
+#                         ****************                       #
+#                          **************                        #
+#                          *************                         #
+#                           ************                         #
+#                            *********                           #
+#                              *****                             #
+#                            ***********                         #
+#                         *****************                      #
+#                      **********************                    #
+#                   * *********************** **                 #
+#                   ***************************                  #
+#                  *****************************                 #
+#               * *******************************  **            #
+#              ** ***********************************            #
+#              *********************************** *             #
+#               ***********************************              #
+#              *************************************             #
+#              *************************************             #
+#             ***************************************            #
+#             ***************************************            #
+#             ***************************************            #
+#             ****************************************           #
+#       *     ****************************************           #
+#       ********************************************** ****      #
+#       ****************************************************     #
+#     * *****************************************************    #
+#     * *****************************************************    #
+#       ***** **************************************** ****      #
+#         *   ****************************************    *      #
+#             ****************************************           #
+#             ***************************************            #
+#            ****************************************            #
+#              ***************************************           #
+#             ****************************************           #
+#               ************************************             #
+#               ***********************************              #
+#                *********************************               #
+#               ************************************             #
+#               *** ************* ************** ***             #
+#                    ***********   ************   **             #
+#                      ********      ********                    #
+#                     **                *   *                    #
+#                                                                #
+#                                                                #
+#                                                                #
+# <<<