From 1213e8e8f359c8a1abb05ee8a220d9c56bc36051 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sat, 10 Oct 2026 12:07:28 -0700 Subject: First cut clinit tracking for cycles --- chapter25/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chapter25/Makefile') diff --git a/chapter25/Makefile b/chapter25/Makefile index aa7f0a17..954a22a5 100644 --- a/chapter25/Makefile +++ b/chapter25/Makefile @@ -15,6 +15,7 @@ # run the tests # # make tests +# make test CLASS=Chapter25Test METHOD=testHelloWorldNoInline ####################################################### # @@ -197,6 +198,13 @@ tests_sys: $(CLZDIR)/main/.mtag $(CLZDIR)/test/.ttag $(TEST_SYS) $(RELEASE_CRT) @[ -d $(OBJS) ] || mkdir -p $(OBJS) @$(JVM) org.junit.runner.JUnitCore $(test_sys) +# One test method (or the whole class when METHOD is omitted). +CLASS ?= Chapter25Test +METHOD ?= +.PHONY: test +test: $(CLZDIR)/main/.mtag $(CLZDIR)/test/.ttag $(TEST_SYS) $(RELEASE_CRT) + @$(JVM) com.seaofnodes.simple.TestRunner "$(CLASS)" "$(METHOD)" + fuzzer: $(CLZDIR)/main/.mtag $(CLZDIR)/test/.ttag @echo "fuzzing " @$(JVM) org.junit.runner.JUnitCore com.seaofnodes.simple.FuzzerWrap -- cgit v1.2.3