mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 14:30:39 +01:00
test-exe.mk: Fix exe name and error handling
- Fix exe name ("test" made it recurse forever)
- Make it fail in case of an error
This commit is contained in:
parent
c48cf357d2
commit
e8972ce56a
1 changed files with 3 additions and 4 deletions
|
|
@ -3,9 +3,7 @@
|
||||||
# contact@jannet.de
|
# contact@jannet.de
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
ifeq ($(EXE),)
|
EXE = test_$(notdir $(shell pwd))
|
||||||
EXE = $(notdir $(shell pwd))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MODDIR)/make/exe.mk
|
include $(MODDIR)/make/exe.mk
|
||||||
|
|
||||||
|
|
@ -13,8 +11,9 @@ test: test.done
|
||||||
clean: testclean
|
clean: testclean
|
||||||
|
|
||||||
test.done:
|
test.done:
|
||||||
if ! 2>&1 make run > test.out 2>&1 ; then \
|
if ! 2>&1 make run > test.out 2>&1; then \
|
||||||
cat test.out; \
|
cat test.out; \
|
||||||
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue