]> git.saurik.com Git - apt.git/blame - debian/tests/run-tests
Avoid wedging the entire system if recoverable :/.
[apt.git] / debian / tests / run-tests
CommitLineData
fdef7c5e
MV
1#!/bin/sh
2
3set -e
4
7c317e9e
JAK
5if [ ! -e build/CMakeCache.txt ]; then
6 mkdir build || true
7 ( cd build && cmake .. )
5c0dd6fc 8fi
7c317e9e
JAK
9
10make -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
14env -i \
e8fb1cdf 15APT_INTEGRATION_TESTS_SOURCE_DIR=$(pwd) \
34b491e7 16APT_INTEGRATION_TESTS_HELPERS_BIN_DIR=$(pwd)/build/test/interactive-helper \
5c0dd6fc 17APT_INTEGRATION_TESTS_METHODS_DIR=/usr/lib/apt/methods \
ed9665ae 18APT_INTEGRATION_TESTS_LIBEXEC_DIR=/usr/lib/apt/ \
3082603f 19APT_INTEGRATION_TESTS_INTERNAL_SOLVER=/usr/lib/apt/solvers/apt \
ad7e0941 20APT_INTEGRATION_TESTS_DUMP_SOLVER=/usr/lib/apt/solvers/dump \
8e99b22c 21APT_INTEGRATION_TESTS_INTERNAL_PLANNER=/usr/lib/apt/planners/apt \
5c0dd6fc 22APT_INTEGRATION_TESTS_BUILD_DIR=/usr/bin \
e825742b 23APT_INTEGRATION_TESTS_FTPARCHIVE_BIN_DIR=/usr/bin \
3b8eb3bc 24APT_INTEGRATION_TESTS_LIBRARY_PATH=/dev/null/does/not/exist \
052a7f48 25./test/integration/run-tests -q