Added a "check" target to run the testsuite.

This commit is contained in:
Juan RP 2014-10-06 12:28:26 +02:00
parent d4e720978f
commit eac1246a90
2 changed files with 10 additions and 5 deletions

View File

@ -10,7 +10,6 @@ ifdef BUILD_TESTS
SUBDIRS += tests
endif
.PHONY: all
all:
@if test ! -e config.mk; then \
echo "You didn't run ./configure ... exiting."; \
@ -20,7 +19,6 @@ all:
$(MAKE) -C $$dir || exit 1; \
done
.PHONY: install
install:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install || exit 1; \
@ -34,15 +32,22 @@ install:
@echo "WARNING: in your ld.so.conf by default."
@echo
.PHONY: uninstall
uninstall:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir uninstall || exit 1; \
done
.PHONY: clean
check:
@for f in bin/*; do \
export PATH=$$f:$$PATH; \
done
@export LD_PRELOAD=$$PWD/lib/libxbps.so
@kyua test -k tests/xbps/Kyuafile
clean:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean || exit 1; \
done
-rm -f config.mk _ccflag.{,c,err}
.PHONY: all install uninstall check clean

View File

@ -68,7 +68,7 @@ To run the test suite make sure *kyua* is installed and run the following:
```
$ ./configure --enable-tests --enable-debug
$ make
$ LD_PRELOAD=$PWD/lib/libxbps.so kyua test -k tests/xbps/Kyuafile
$ make check
```
### Build instructions