mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +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
|
||||
# $Id$
|
||||
|
||||
ifeq ($(EXE),)
|
||||
EXE = $(notdir $(shell pwd))
|
||||
endif
|
||||
EXE = test_$(notdir $(shell pwd))
|
||||
|
||||
include $(MODDIR)/make/exe.mk
|
||||
|
||||
|
|
@ -13,8 +11,9 @@ test: test.done
|
|||
clean: testclean
|
||||
|
||||
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; \
|
||||
exit 1; \
|
||||
fi
|
||||
touch $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue