tools: test rules capitalisation

This commit is contained in:
Simon Michael 2010-09-05 23:24:34 +00:00
parent 2d51ab1a2d
commit 0c2c35a222

View File

@ -173,39 +173,39 @@ unittest: unittest-builtin
unittest-builtin: hledger unittest-builtin: hledger
@(bin/hledger test \ @(bin/hledger test \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# XXX doesn't rebuild on hledger source changes # XXX doesn't rebuild on hledger source changes
unittest-standalone: tools/unittest unittest-standalone: tools/unittest
@(tools/unittest \ @(tools/unittest \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# run unit tests without waiting for compilation # run unit tests without waiting for compilation
unittesths: unittesths:
@(runghc hledger.hs test \ @(runghc hledger.hs test \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# run functional tests, requires shelltestrunner from hackage # run functional tests, requires shelltestrunner from hackage
functest: hledger functest: hledger
(shelltest tests --implicit=none --plain --threads=16 \ (shelltest tests --implicit=none --plain --threads=16 \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# run doc tests # run doc tests
doctest: tools/doctest hledger doctest: tools/doctest hledger
@(tools/doctest Commands/Add.hs \ @(tools/doctest Commands/Add.hs \
&& tools/doctest Tests.hs \ && tools/doctest Tests.hs \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# make sure we have no haddock errors # make sure we have no haddock errors
haddocktest: haddocktest:
@(make --quiet haddock \ @(make --quiet haddock \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# make sure the normal build has no warnings # make sure the normal build has no warnings
warningstest: warningstest:
@(make -s clean \ @(make -s clean \
&& make --no-print-directory -s hledgernowarnings \ && make --no-print-directory -s hledgernowarnings \
&& echo $@ passed) || echo $@ FAILED && echo $@ PASSED) || echo $@ FAILED
# make sure cabal is reasonably happy # make sure cabal is reasonably happy
quickcabaltest: setversion quickcabaltest: setversion
@ -235,7 +235,7 @@ fullcabaltest: setversion
&& dist/build/hledger/hledger test 2>&1 | tail -1 | grep -q 'Errors: 0 Failures: 0' \ && dist/build/hledger/hledger test 2>&1 | tail -1 | grep -q 'Errors: 0 Failures: 0' \
&& cabal sdist \ && cabal sdist \
&& cabal upload dist/hledger-$(VERSION).tar.gz --check -v3 \ && cabal upload dist/hledger-$(VERSION).tar.gz --check -v3 \
&& echo $@ passed \ && echo $@ PASSED \
) || echo $@ FAILED ) || echo $@ FAILED
# run performance benchmarks without saving results. # run performance benchmarks without saving results.