From 70f81bfd8197056d800dad88ba4339fc6fad9801 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 29 May 2019 10:38:39 +1000 Subject: [PATCH] Separate demos from tests. '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 --- csrc/indent_test.mdc | 2 +- csrc/oceani.mdc | 8 ++++---- csrc/parsergen.mdc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/csrc/indent_test.mdc b/csrc/indent_test.mdc index f8c929a..699b3ca 100644 --- a/csrc/indent_test.mdc +++ b/csrc/indent_test.mdc @@ -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 diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index ce70c49..a3eba94 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -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 diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index 78ff543..a236f83 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -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 -- 2.43.0