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