commit 99965071d2106e60c8929cca7e79be465cc228e1 parent 3a12c94b738b654537a2cd830d6af668b6c74e9b Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Thu, 3 Mar 2016 09:44:06 -0500 complete testing routine Diffstat:
| M | lisc/test/go.sh | | | 17 | +++++++++++++++++ |
| M | lisc/test/mandel.ssa | | | 66 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 83 insertions(+), 0 deletions(-)
diff --git 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 @@ -55,3 +55,69 @@ function w $main() { @ret ret 0 } + +# >>> output +# # +# # +# # +# # +# * # +# **** # +# **** # +# *** # +# ***** # +# ********* # +# ************ # +# ***************** # +# **************** # +# *************** # +# **************** # +# **************** # +# ***************** # +# **************** # +# **************** # +# ************** # +# ************* # +# ************ # +# ********* # +# ***** # +# *********** # +# ***************** # +# ********************** # +# * *********************** ** # +# *************************** # +# ***************************** # +# * ******************************* ** # +# ** *********************************** # +# *********************************** * # +# *********************************** # +# ************************************* # +# ************************************* # +# *************************************** # +# *************************************** # +# *************************************** # +# **************************************** # +# * **************************************** # +# ********************************************** **** # +# **************************************************** # +# * ***************************************************** # +# * ***************************************************** # +# ***** **************************************** **** # +# * **************************************** * # +# **************************************** # +# *************************************** # +# **************************************** # +# *************************************** # +# **************************************** # +# ************************************ # +# *********************************** # +# ********************************* # +# ************************************ # +# *** ************* ************** *** # +# *********** ************ ** # +# ******** ******** # +# ** * * # +# # +# # +# # +# <<<