]>
Commit | Line | Data |
---|---|---|
fdef7c5e MV |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
7c317e9e JAK |
5 | if [ ! -e build/CMakeCache.txt ]; then |
6 | mkdir build || true | |
7 | ( cd build && cmake .. ) | |
5c0dd6fc | 8 | fi |
7c317e9e JAK |
9 | |
10 | make -C build/test/interactive-helper | |
5c0dd6fc | 11 | |
74c3db65 MV |
12 | # run tests against the installed apt, use "env -i" to ensure |
13 | # the host env does not pollute our environment | |
14 | env -i \ | |
e8fb1cdf | 15 | APT_INTEGRATION_TESTS_SOURCE_DIR=$(pwd) \ |
34b491e7 | 16 | APT_INTEGRATION_TESTS_HELPERS_BIN_DIR=$(pwd)/build/test/interactive-helper \ |
5c0dd6fc | 17 | APT_INTEGRATION_TESTS_METHODS_DIR=/usr/lib/apt/methods \ |
ed9665ae | 18 | APT_INTEGRATION_TESTS_LIBEXEC_DIR=/usr/lib/apt/ \ |
3082603f | 19 | APT_INTEGRATION_TESTS_INTERNAL_SOLVER=/usr/lib/apt/solvers/apt \ |
ad7e0941 | 20 | APT_INTEGRATION_TESTS_DUMP_SOLVER=/usr/lib/apt/solvers/dump \ |
8e99b22c | 21 | APT_INTEGRATION_TESTS_INTERNAL_PLANNER=/usr/lib/apt/planners/apt \ |
5c0dd6fc | 22 | APT_INTEGRATION_TESTS_BUILD_DIR=/usr/bin \ |
e825742b | 23 | APT_INTEGRATION_TESTS_FTPARCHIVE_BIN_DIR=/usr/bin \ |
3b8eb3bc | 24 | APT_INTEGRATION_TESTS_LIBRARY_PATH=/dev/null/does/not/exist \ |
052a7f48 | 25 | ./test/integration/run-tests -q |