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