From 99965071d2106e60c8929cca7e79be465cc228e1 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 3 Mar 2016 09:44:06 -0500 Subject: complete testing routine --- lisc/test/go.sh | 17 ++++++++++++++ lisc/test/mandel.ssa | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) (limited to 'lisc') 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 +# # +# # +# # +# # +# * # +# **** # +# **** # +# *** # +# ***** # +# ********* # +# ************ # +# ***************** # +# **************** # +# *************** # +# **************** # +# **************** # +# ***************** # +# **************** # +# **************** # +# ************** # +# ************* # +# ************ # +# ********* # +# ***** # +# *********** # +# ***************** # +# ********************** # +# * *********************** ** # +# *************************** # +# ***************************** # +# * ******************************* ** # +# ** *********************************** # +# *********************************** * # +# *********************************** # +# ************************************* # +# ************************************* # +# *************************************** # +# *************************************** # +# *************************************** # +# **************************************** # +# * **************************************** # +# ********************************************** **** # +# **************************************************** # +# * ***************************************************** # +# * ***************************************************** # +# ***** **************************************** **** # +# * **************************************** * # +# **************************************** # +# *************************************** # +# **************************************** # +# *************************************** # +# **************************************** # +# ************************************ # +# *********************************** # +# ********************************* # +# ************************************ # +# *** ************* ************** *** # +# *********** ************ ** # +# ******** ******** # +# ** * * # +# # +# # +# # +# <<< -- cgit 1.4.1