debian/tests/test-outputs
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | cp -R test "$AUTOPKGTEST_TMP"/ |
| 4 | cd "$AUTOPKGTEST_TMP"/test || exit 1 |
| 5 | sed -i 's!\.\./dctrl2xml!/usr/bin/dctrl2xml!' Makefile |
| 6 | |
| 7 | make clean |
| 8 | make |
| 9 | retcode=$? |
| 10 | |
| 11 | if [ $retcode -ne 0 ]; then |
| 12 | echo "Test failed. Copying artifacts to $AUTOPKGTEST_ARTIFACTS" |
| 13 | cp ./*_ "$AUTOPKGTEST_ARTIFACTS"/ |
| 14 | fi |
| 15 | |
| 16 | exit $retcode |