debian/tests/simple
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # This is just running the upstream tests against the installed |
| 4 | # package. |
| 5 | |
| 6 | set -eu |
| 7 | |
| 8 | # Copy tests |
| 9 | echo Copying tests |
| 10 | cp -a tests stinit.def.examples Makefile "$AUTOPKGTEST_TMP/" |
| 11 | |
| 12 | # Symlink the installed binaries |
| 13 | echo Symlinking the package binaries |
| 14 | ln -s /usr/bin/mt-st "$AUTOPKGTEST_TMP/mt" |
| 15 | ln -s /usr/sbin/stinit "$AUTOPKGTEST_TMP/stinit" |
| 16 | |
| 17 | # And then run tests |
| 18 | echo Running tests |
| 19 | cd "$AUTOPKGTEST_TMP" |
| 20 | make check |