From 240ad5ce4a82c47dabb1707e564244ae0aa580cf Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 23 May 2018 03:49:44 -0500 Subject: Add rudimentary test suite for abuild and newapkbuild --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 52fa9e5..9595696 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,8 @@ all: $(USR_BIN_FILES) functions.sh clean: @rm -f $(USR_BIN_FILES) functions.sh @rm -f abuild-tar.o abuild-gzsplit.o abuild-sudo.o abuild-fetch.o + -@rm -r tests/abuild/*/src + -@rm -r tests/newapkbuild/* %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) -o $@ -c $< @@ -118,6 +120,11 @@ install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh cp $(AUTOTOOLS_TOOLCHAIN_FILES) $(DESTDIR)/$(prefix)/share/abuild/ cp functions.sh $(DESTDIR)/$(datadir)/ +check: $(USR_BIN_FILES) functions.sh + @sh run-tests.sh + +test: check + .gitignore: Makefile echo "*.tar.bz2" > $@ for i in $(USR_BIN_FILES); do\ @@ -125,4 +132,4 @@ install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh done -.PHONY: install +.PHONY: install check test -- cgit v1.2.3-70-g09d2