debian/tests/test-freeimageplus
raw| 1 | #!/bin/sh |
| 2 | # Build and execute the upstream's testsuite for FreeImagePlus against the |
| 3 | # installed binaries. |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | # Fetch the upstream testsuite. |
| 8 | cp -a Wrapper/FreeImagePlus/test "$AUTOPKGTEST_TMP" |
| 9 | |
| 10 | # Build using the installed FreeImagePlus package. |
| 11 | cd "$AUTOPKGTEST_TMP/test" && \ |
| 12 | g++ *.cpp -lfreeimageplus -lfreeimage -o test-freeimageplus && \ |
| 13 | ./test-freeimageplus |