From ace39197e5b4f75d212f858f764988d327278ee6 Mon Sep 17 00:00:00 2001 From: Bob Andrews Date: Fri, 11 Nov 2022 21:22:20 +0100 Subject: [PATCH] move test to test/ref --- test/misc/Makefile | 5 ----- test/ref/Makefile | 3 ++- test/{misc => ref}/bug1889-missing-identifier.c | 0 .../bug1889-missing-identifier.cref} | 0 4 files changed, 2 insertions(+), 6 deletions(-) rename test/{misc => ref}/bug1889-missing-identifier.c (100%) rename test/{misc/bug1889-missing-identifier.ref => ref/bug1889-missing-identifier.cref} (100%) diff --git a/test/misc/Makefile b/test/misc/Makefile index 6b715f221..f18f40da6 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -161,11 +161,6 @@ $(WORKDIR)/goto.$1.$2.prg: goto.c $(ISEQUAL) | $(WORKDIR) $(CC65) -t sim$2 -$1 -o $$@ $$< 2>$(WORKDIR)/goto.$1.$2.out $(ISEQUAL) $(WORKDIR)/goto.$1.$2.out goto.ref -$(WORKDIR)/bug1889-missing-identifier.$1.$2.prg: bug1889-missing-identifier.c $(ISEQUAL) | $(WORKDIR) - $(if $(QUIET),echo misc/bug1889-missing-identifier.$1.$2.error.prg) - -$(CC65) -t sim$2 -$1 -o $$(@:.error.prg=.s) $$< 2> $(WORKDIR)/bug1889-missing-identifier.$1.$2.out - $(ISEQUAL) $(WORKDIR)/bug1889-missing-identifier.$1.$2.out bug1889-missing-identifier.ref - # the rest are tests that fail currently for one reason or another $(WORKDIR)/sitest.$1.$2.prg: sitest.c | $(WORKDIR) @echo "FIXME: " $$@ "currently does not compile." diff --git a/test/ref/Makefile b/test/ref/Makefile index e30d3324c..abd3e9bc0 100644 --- a/test/ref/Makefile +++ b/test/ref/Makefile @@ -52,7 +52,8 @@ CUSTOMSOURCES = \ # list of sources that produce a compiler error. a .cref files containing the # exact error output is required ERRORSOURCES = \ - custom-reference-error.c + custom-reference-error.c \ + bug1889-missing-identifier.c SOURCES := $(filter-out $(CUSTOMSOURCES) $(ERRORSOURCES),$(wildcard *.c)) diff --git a/test/misc/bug1889-missing-identifier.c b/test/ref/bug1889-missing-identifier.c similarity index 100% rename from test/misc/bug1889-missing-identifier.c rename to test/ref/bug1889-missing-identifier.c diff --git a/test/misc/bug1889-missing-identifier.ref b/test/ref/bug1889-missing-identifier.cref similarity index 100% rename from test/misc/bug1889-missing-identifier.ref rename to test/ref/bug1889-missing-identifier.cref