]> ocean-lang.org Git - ocean/commitdiff
Separate demos from tests.
authorNeilBrown <neil@brown.name>
Wed, 29 May 2019 00:38:39 +0000 (10:38 +1000)
committerNeilBrown <neil@brown.name>
Wed, 29 May 2019 00:38:39 +0000 (10:38 +1000)
'tests' check that the code is working, and fail if the results
aren't what was expected.
'demos' simply run the code and show what it can do.  The don't provide
any immediate assurance that it is doing the right thing.

Separate these into "make tests" and "make demos"

Signed-off-by: NeilBrown <neil@brown.name>
csrc/indent_test.mdc
csrc/oceani.mdc
csrc/parsergen.mdc

index f8c929a1d98ce2e410c24d1c681e21d7a371b00d..699b3ca1b08c5502889526a547675579cbd05b51 100644 (file)
@@ -16,7 +16,7 @@ with complete bracketing and indenting.
                ./md2c indent_test.mdc
        itest: itest.c
 
-       tests:: itest itest.code
+       demos:: itest itest.code
                ./itest itest.code
 
 # indent: header
index ce70c49e2b6231240905d843456be054ef10ab3d..a3eba942acbd3cd92e407ee61b83446e1893bbf0 100644 (file)
@@ -4183,12 +4183,12 @@ Fibonacci, performs a binary search for a number, and a few other
 things which will likely grow as the languages grows.
 
 ###### File: oceani.mk
-       tests :: sayhello
+       demos :: sayhello
        sayhello : oceani
-               @echo "===== TEST ====="
-               ./oceani --section "test: hello" oceani.mdc 55 33
+               @echo "===== DEMO ====="
+               ./oceani --section "demo: hello" oceani.mdc 55 33
 
-###### test: hello
+###### demo: hello
 
        const:
                pi ::= 3.1415926
index 78ff5435b8086fcd720674cfcb72c13b3a99d919..a236f83b6843337058ad097612e94b4a52feb432 100644 (file)
@@ -2991,7 +2991,7 @@ an error.
                $(CC) $(CFLAGS) -o calc calc.o libparser.o libscanner.o libmdcode.o libnumber.o -licuuc -lgmp
        calctest : calc
                ./calc parsergen.mdc
-       tests :: calctest
+       demos :: calctest
 
 # calc: header