Skip to content

Commit

Permalink
Support ArrayTarget as the default and only supported target, see #268.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kariiem committed Jun 12, 2024
1 parent 6cbf2b4 commit 3b391d5
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,42 +56,24 @@ TEST_HAPPY_OPTS = --strict
%.n.hs : %.ly
$(HAPPY) $(TEST_HAPPY_OPTS) $< -o $@

%.a.hs : %.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -a $< -o $@

%.g.hs : %.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -g $< -o $@

%.gc.hs : %.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -gc $< -o $@

%.ag.hs : %.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -ag $< -o $@

%.agc.hs : %.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -agc $< -o $@

%.n.hs : %.y
$(HAPPY) $(TEST_HAPPY_OPTS) $< -o $@

%.a.hs : %.y
$(HAPPY) $(TEST_HAPPY_OPTS) -a $< -o $@

%.g.hs : %.y
$(HAPPY) $(TEST_HAPPY_OPTS) -g $< -o $@

%.gc.hs : %.y
$(HAPPY) $(TEST_HAPPY_OPTS) -gc $< -o $@

%.ag.hs : %.y
$(HAPPY) $(TEST_HAPPY_OPTS) -ag $< -o $@

%.agc.hs : %.y
$(HAPPY) $(TEST_HAPPY_OPTS) -agc $< -o $@

CLEAN_FILES += *.n.hs *.a.hs *.g.hs *.gc.hs *.ag.hs *.agc.hs *.info *.hi *.bin *.exe *.o *.run.stdout *.run.stderr
CLEAN_FILES += *.n.hs *.g.hs *.gc.hs *.info *.hi *.bin *.exe *.o *.run.stdout *.run.stderr

ALL_TEST_HS = $(shell echo $(TESTS) | sed -e 's/\([^\. ]*\)\.\(l\)\{0,1\}y/\1.n.hs \1.a.hs \1.g.hs \1.gc.hs \1.ag.hs \1.agc.hs/g')
ALL_TEST_HS = $(shell echo $(TESTS) | sed -e 's/\([^\. ]*\)\.\(l\)\{0,1\}y/\1.n.hs \1.g.hs \1.gc.hs/g')

ALL_TESTS = $(patsubst %.hs, %.run, $(ALL_TEST_HS))

Expand All @@ -118,15 +100,15 @@ check.%.y : %.y
all :: $(CHECK_ERROR_TESTS) $(ALL_TESTS)

check-todo::
$(HAPPY) $(TEST_HAPPY_OPTS) -ad Test.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -d Test.ly
$(HC) Test.hs -o happy_test
./happy_test
-rm -f ./happy_test
$(HAPPY) $(TEST_HAPPY_OPTS) -agd Test.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -gd Test.ly
$(HC) Test.hs -o happy_test
./happy_test
-rm -f ./happy_test
$(HAPPY) $(TEST_HAPPY_OPTS) -agcd Test.ly
$(HAPPY) $(TEST_HAPPY_OPTS) -gcd Test.ly
$(HC) Test.hs -o happy_test
./happy_test
-rm -f ./happy_test
Expand Down

0 comments on commit 3b391d5

Please sign in to comment.