| 1 | #!/bin/sh |
| 2 | # Build the forked CommandLineConvertTest against the installed |
| 3 | # libopencc-dev/opencc/libopencc-data packages and run it via ctest. |
| 4 | |
| 5 | set -eu |
| 6 | |
| 7 | srcdir="$(pwd)" |
| 8 | builddir="${AUTOPKGTEST_TMP:-$(mktemp -d)}/integration-build" |
| 9 | |
| 10 | cmake -S "$srcdir/debian/tests" -B "$builddir" |
| 11 | cmake --build "$builddir" |
| 12 | ctest --test-dir "$builddir" --output-on-failure |