diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2024-03-07 11:32:03 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2024-03-07 11:32:03 +0000 |
| commit | 9eb461aa4b61ab47855b2cee9e5b626a76888b5e (patch) | |
| tree | 17240d083c051abd781ba10291171f50f411e52a /test/results_test | |
Vendor import of diff from OpenBSD's Game of Treesvendor/got/diff/2023-09-15vendor/got/diff
Repository: ssh://anonymous@got.gameoftrees.org/diff.git
Commit hash: b5a9c15f4d68c06ec3bf839529b3ed2def0a6af6
Commit date: 2023-09-15
Diffstat (limited to 'test/results_test')
| -rw-r--r-- | test/results_test/GNUmakefile | 20 | ||||
| -rw-r--r-- | test/results_test/Makefile | 11 |
2 files changed, 31 insertions, 0 deletions
diff --git a/test/results_test/GNUmakefile b/test/results_test/GNUmakefile new file mode 100644 index 000000000000..f5b14b1f6648 --- /dev/null +++ b/test/results_test/GNUmakefile @@ -0,0 +1,20 @@ +.PHONY: regress clean + +CFLAGS = -fsanitize=address -fsanitize=undefined -g -O3 +CFLAGS += -Wstrict-prototypes -Wunused-variable -Wuninitialized + +CFLAGS+= -I$(CURDIR)/../../compat/include \ + -I$(CURDIR)/../../include \ + -I$(CURDIR)/../../lib + +$(CURDIR)/results_test: $(CURDIR)/../results_test.c $(CURDIR)/../../lib/libdiff.a + gcc $(CFLAGS) -o $@ $^ + +$(CURDIR)/../../lib/libdiff.a: $(CURDIR)/../../lib/*.[hc] $(CURDIR)/../../include/*.h + $(MAKE) -C $(CURDIR)/../../lib + +regress: $(CURDIR)/results_test + $(CURDIR)/results_test + +clean: + -rm $(CURDIR)/results_test diff --git a/test/results_test/Makefile b/test/results_test/Makefile new file mode 100644 index 000000000000..4cb496ada0aa --- /dev/null +++ b/test/results_test/Makefile @@ -0,0 +1,11 @@ +.PATH:${.CURDIR}/../../lib +.PATH:${.CURDIR}/.. + +PROG = results_test +SRCS = results_test.c diff_atomize_text.c diff_main.c + +CPPFLAGS = -I${.CURDIR}/../../include -I${.CURDIR}/../../lib + +NOMAN = yes + +.include <bsd.regress.mk> |
