Added a "check" target to run the testsuite.
This commit is contained in:
parent
d4e720978f
commit
eac1246a90
13
Makefile
13
Makefile
@ -10,7 +10,6 @@ ifdef BUILD_TESTS
|
|||||||
SUBDIRS += tests
|
SUBDIRS += tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all:
|
all:
|
||||||
@if test ! -e config.mk; then \
|
@if test ! -e config.mk; then \
|
||||||
echo "You didn't run ./configure ... exiting."; \
|
echo "You didn't run ./configure ... exiting."; \
|
||||||
@ -20,7 +19,6 @@ all:
|
|||||||
$(MAKE) -C $$dir || exit 1; \
|
$(MAKE) -C $$dir || exit 1; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
install:
|
||||||
@for dir in $(SUBDIRS); do \
|
@for dir in $(SUBDIRS); do \
|
||||||
$(MAKE) -C $$dir install || exit 1; \
|
$(MAKE) -C $$dir install || exit 1; \
|
||||||
@ -34,15 +32,22 @@ install:
|
|||||||
@echo "WARNING: in your ld.so.conf by default."
|
@echo "WARNING: in your ld.so.conf by default."
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
.PHONY: uninstall
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@for dir in $(SUBDIRS); do \
|
@for dir in $(SUBDIRS); do \
|
||||||
$(MAKE) -C $$dir uninstall || exit 1; \
|
$(MAKE) -C $$dir uninstall || exit 1; \
|
||||||
done
|
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:
|
clean:
|
||||||
@for dir in $(SUBDIRS); do \
|
@for dir in $(SUBDIRS); do \
|
||||||
$(MAKE) -C $$dir clean || exit 1; \
|
$(MAKE) -C $$dir clean || exit 1; \
|
||||||
done
|
done
|
||||||
-rm -f config.mk _ccflag.{,c,err}
|
-rm -f config.mk _ccflag.{,c,err}
|
||||||
|
|
||||||
|
.PHONY: all install uninstall check clean
|
||||||
|
@ -68,7 +68,7 @@ To run the test suite make sure *kyua* is installed and run the following:
|
|||||||
```
|
```
|
||||||
$ ./configure --enable-tests --enable-debug
|
$ ./configure --enable-tests --enable-debug
|
||||||
$ make
|
$ make
|
||||||
$ LD_PRELOAD=$PWD/lib/libxbps.so kyua test -k tests/xbps/Kyuafile
|
$ make check
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build instructions
|
### Build instructions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user