harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dc9b0da47ac31c64a57be973f78c786b93ba06f1
parent 3599f87d9560f71fd3abcd1b08058d4a4830abaa
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Tue, 10 Aug 2021 06:38:37 +0000

Re-enable some of the old test suite

Tests which don't currently pass were kept disabled.

Diffstat:
Mrt/configure | 4+---
Mtests/configure | 104++++++++++++++++++++++++++++++++++++++++---------------------------------------
2 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/rt/configure b/rt/configure @@ -1,7 +1,5 @@ #!/bin/sh -# Temporarily disabled -#all="$all rt" -all="$all" +all="$all rt" rt() { arch=$(uname -m) diff --git a/tests/configure b/tests/configure @@ -37,57 +37,59 @@ clean-tests: clean-test-$t EOF done -# # Hare tests -# for t in \ -# 00-constants \ -# 01-arrays \ -# 02-integers \ -# 03-pointers \ -# 04-strings \ -# 05-implicit-casts \ -# 06-structs \ -# 07-aliases \ -# 08-slices \ -# 09-funcs \ -# 10-binarithms \ -# 11-globals \ -# 12-loops \ -# 13-tagged \ -# 14-switch \ -# 15-enums \ -# 16-defer \ -# 17-alloc \ -# 18-match \ -# 19-append \ -# 20-if \ -# 21-tuples \ -# 22-delete \ -# 23-errors \ -# 24-imports \ -# 25-promotion \ -# 26-gen \ -# 27-rt \ -# 28-insert \ -# 29-unarithm -# do -# cat <<EOF -#tests/$t: libhart.a tests/$t.ha -# @printf 'HAREC\t%s\t$@\n' "tests/$t" -# @HARECACHE=\$(HARECACHE) ./harec -o tests/$t.ssa tests/$t.ha -# @\$(QBE) -o tests/$t.s tests/$t.ssa -# @\$(AS) -o tests/$t.o tests/$t.s -# @\$(LD) --gc-sections -T rt/hare.sc -o tests/$t $rtstart tests/$t.o libhart.a -# @rm tests/$t.s tests/$t.ssa tests/$t.o -# -#check: tests/$t -# -#clean-test-$t: -# @rm -f tests/$t -#.PHONY: clean-test-$t -# -#clean-tests: clean-test-$t -#EOF -# done + # Hare tests + for t in \ + 00-constants \ + 01-arrays \ + 02-integers \ + 03-pointers \ + 04-strings \ + 05-implicit-casts \ + 07-aliases \ + 10-binarithms \ + 14-switch \ + 20-if \ + 24-imports \ + 26-gen \ + 27-rt \ + 29-unarithm + + # Disabled tests + #06-structs \ + #08-slices \ + #09-funcs \ + #11-globals \ + #12-loops \ + #13-tagged \ + #15-enums \ + #16-defer \ + #17-alloc \ + #18-match \ + #19-append \ + #21-tuples \ + #22-delete \ + #23-errors \ + #25-promotion \ + #28-insert \ + do + cat <<EOF +tests/$t: libhart.a tests/$t.ha + @printf 'HAREC\t%s\t$@\n' "tests/$t" + @HARECACHE=\$(HARECACHE) ./harec -o tests/$t.ssa tests/$t.ha + @\$(QBE) -o tests/$t.s tests/$t.ssa + @\$(AS) -o tests/$t.o tests/$t.s + @\$(LD) --gc-sections -T rt/hare.sc -o tests/$t $rtstart tests/$t.o libhart.a + @rm tests/$t.s tests/$t.ssa tests/$t.o + +check: tests/$t + +clean-test-$t: + @rm -f tests/$t +.PHONY: clean-test-$t + +clean-tests: clean-test-$t +EOF + done # C tests for t in \