Makefile/tests: use return values to communicate errors

This commit is contained in:
David Adam 2014-01-13 17:14:24 +08:00
parent 7874cdf52a
commit 3106cffb65
2 changed files with 4 additions and 3 deletions

View file

@ -302,7 +302,8 @@ doc/refman.pdf: doc
#
test: $(PROGRAMS) fish_tests
./fish_tests; cd tests; ../fish <test.fish;
./fish_tests
cd tests; ../fish <test.fish;
.PHONY: test

View file

@ -40,11 +40,11 @@ if [ "$argv" != '-n' ]
if test $res = ok;
echo File test.fish tested ok
exit 0
else
echo File test.fish failed tests
exit 1
end;
exit
end
echo Testing high level script functionality