From 66a2ddce1a56a4a6a402b126b7759626aa4ffd67 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 2 Oct 2021 22:56:19 -0300 Subject: tests/: Copy files to temp directory to avoid messing with existing generated files As the tests do a "make clean", which would erase the existing generated files. --- tests/cli-opts.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/cli-opts.sh') diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh index a583845..ebf1ae6 100755 --- a/tests/cli-opts.sh +++ b/tests/cli-opts.sh @@ -3,8 +3,13 @@ set -u . tests/lib.sh +TESTDIR="$(mkdtemp)" +cp -R . "$TESTDIR" +cd "$TESTDIR" || exit 1 + TEST_PREFIX="$PWD/tests/prefix/$(uuid)" -make PREFIX="$TEST_PREFIX" clean install 1>/dev/null +make clean >/dev/null +make PREFIX="$TEST_PREFIX" install >/dev/null PATH="$TEST_PREFIX/bin:$PATH" test_langs() { -- cgit v1.2.3