diff options
author | Thomas Oltmann <thomas.oltmann.hhg@gmail.com> | 2022-01-09 15:25:15 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-18 22:12:50 +0100 |
commit | b424a2eebbbbf19e253d9098317de378f3dc7d4b (patch) | |
tree | 38431af1269434da1cd3242664dfbaf1955526f8 /Makefile | |
parent | Fixed line continuation checks. (diff) | |
download | makel-b424a2eebbbbf19e253d9098317de378f3dc7d4b.tar.gz makel-b424a2eebbbbf19e253d9098317de378f3dc7d4b.tar.bz2 makel-b424a2eebbbbf19e253d9098317de378f3dc7d4b.tar.xz |
Implemented a simple test suite
The test suite simply runs makel in turn on all Makefiles in tests/,
and compares makel's exit codes with the expected exit codes that are
written in the Makefiles themselves.
This system could be improved by comparing warning classes instead,
and using text identifiers instead of numerical codes which might be subject to change.
Revision 2 of this patch:
Make target to run the test suite is now called 'check' to avoid confusion.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -14,7 +14,7 @@ HDR =\ arg.h\ common.h -all: makel +all: makel check $(OBJ): $(HDR) .c.o: @@ -23,6 +23,9 @@ $(OBJ): $(HDR) makel: $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) +check: makel + ./test + install: makel mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" @@ -40,4 +43,4 @@ clean: .SUFFIXES: .SUFFIXES: .o .c -.PHONY: all install uninstall clean +.PHONY: all check install uninstall clean |