diff options
author | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2006-09-29 15:15:04 +0000 |
---|---|---|
committer | Hans Ulrich Niedermann <gp@n-dimensional.de> | 2006-09-29 15:15:04 +0000 |
commit | 4b8a7c75147d80186a4b28805bafd17152962bfc (patch) | |
tree | 5902e402cc376bc930d1d87a56353bb7b5ba3c78 /installcheck.mk | |
parent | 0b313c94f2f00dd1858692c786220dd6d5778cb5 (diff) | |
download | libgphoto2-4b8a7c75147d80186a4b28805bafd17152962bfc.tar.gz |
configure/make cleanup removing about 60 lines of make/check/config code
* generate check- scripts from config.status
* use libexecdir for print-* utilities
* let utilsdir be defined from configure
* require libexif >= 0.6.13; automatically update libgphoto2.pc with that.
* get rid of "make check" local installation
* moved some tests from "make check" to "make installcheck"
* use one common rule file for "make installcheck"
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9231 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'installcheck.mk')
-rw-r--r-- | installcheck.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/installcheck.mk b/installcheck.mk new file mode 100644 index 000000000..93a8fea35 --- /dev/null +++ b/installcheck.mk @@ -0,0 +1,27 @@ +# FIXME: Only run this if not cross-compiling +installcheck-local: $(INSTALL_TESTS) + @total=0; failed=0; success=0; ignored=0; \ + echo "Running \"installcheck\" test cases..."; \ + for script in $(INSTALL_TESTS); do \ + echo "Test case: $$script"; \ + total="$$(expr $$total + 1)"; \ + if "./$$script"; then \ + echo "SUCCEEDED: $$script"; \ + success="$$(expr $$success + 1)"; \ + else \ + s="$$?"; \ + if test "$$s" = "77"; then \ + echo "FAILURE IGNORED (return code $$s): $$script"; \ + ignored="$$(expr $$ignored + 1)"; \ + else \ + echo "FAILED (return code $$s): $$script"; \ + failed="$$(expr $$failed + 1)"; \ + fi; \ + fi; \ + done; \ + echo "Test summary: $$success succeeded, $$failed failed, $$ignored failures ignored, $$total tests in total."; \ + if test "$$failed" -gt 0; then \ + echo "Error: One or more \"installcheck\" testcases have failed."; \ + exit 1; \ + fi + |