diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rwxr-xr-x | run_tests.sh | 8 | ||||
-rw-r--r-- | tests/compile_error.bth (renamed from tests/compile_error.bþ) | 0 | ||||
-rw-r--r-- | tests/fizzbuzz.bth (renamed from tests/fizzbuzz.bþ) | 0 | ||||
-rw-r--r-- | tests/four.bth (renamed from tests/four.bþ) | 0 | ||||
-rw-r--r-- | tests/vars.bth (renamed from tests/vars.bþ) | 0 |
7 files changed, 9 insertions, 9 deletions
@@ -1,5 +1,5 @@ prs.c prs.h -bþ +bth vm gmon.out @@ -2,16 +2,16 @@ CS=ast.c com.c dis.c ht.c mem.c prs.c read.c state.c val.c vm.c HS=ast.h dis.h ht.h mem.h prs.h read.h state.h val.h vm.h CFLAGS=$(EXTRA_CFLAGS) -O3 -lm -Wall -Wpedantic -Werror=implicit-function-declaration -bþ: $(CS) $(HS) Makefile - $(CC) $(CFLAGS) -o bþ $(CS) +bth: $(CS) $(HS) Makefile + $(CC) $(CFLAGS) -o bth $(CS) prs.c: g.peg packcc -o prs g.peg -test: bþ +test: bth ./run_tests.sh clean: - rm bþ prs.c prs.h + rm bth prs.c prs.h .PHONY: clean test diff --git a/run_tests.sh b/run_tests.sh index 3c561a7..ffa1a22 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -3,14 +3,14 @@ pass=0 fail=0 -for testfile in tests/*.bþ; do - outfile=${testfile%.bþ}.out - output="$(./bþ <$testfile 2>&1)" +for testfile in tests/*.bth; do + outfile=${testfile%.bth}.out + output="$(./bth <$testfile 2>&1)" run_res=$? echo "$output" | diff $outfile - >/dev/null diff_res=$? testname=${testfile#tests/} - testname=${testname%.bþ} + testname=${testname%.bth} case $diff_res in 0) printf '\033[32m\033[1mPASS\033[0m %s\n' "$testname" pass=$((pass + 1)) ;; diff --git a/tests/compile_error.bþ b/tests/compile_error.bth index b151c2f..b151c2f 100644 --- a/tests/compile_error.bþ +++ b/tests/compile_error.bth diff --git a/tests/fizzbuzz.bþ b/tests/fizzbuzz.bth index e70c2c1..e70c2c1 100644 --- a/tests/fizzbuzz.bþ +++ b/tests/fizzbuzz.bth diff --git a/tests/four.bþ b/tests/four.bth index 8804fe4..8804fe4 100644 --- a/tests/four.bþ +++ b/tests/four.bth diff --git a/tests/vars.bþ b/tests/vars.bth index 7799acf..7799acf 100644 --- a/tests/vars.bþ +++ b/tests/vars.bth |