bctest changes for Ultrix (don't return 1 from bctest, otherwise make aborts)
This commit is contained in:
parent
3c836ff0f8
commit
c8913d8e8a
2 changed files with 5 additions and 2 deletions
|
@ -191,7 +191,7 @@ test_bn:
|
|||
@./$(BNTEST) >tmp.bntest
|
||||
@echo quit >>tmp.bntest
|
||||
@echo "running bc"
|
||||
@<tmp.bntest sh -c "`sh ./bctest; true`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"'
|
||||
@<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"'
|
||||
@echo 'test a^b%c implementations'
|
||||
./$(EXPTEST)
|
||||
|
||||
|
|
|
@ -104,5 +104,8 @@ EOF
|
|||
done
|
||||
|
||||
echo "No working bc found. Consider installing GNU bc." >&2
|
||||
echo "cat >/dev/null"
|
||||
if [ "$1" = ignore ]; then
|
||||
echo "cat >/dev/null"
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue