Commit 410c23ab authored by Nicolas Boulenguez's avatar Nicolas Boulenguez Committed by Rafael Laboissière
Browse files

Delegate temporary directory to autopkgtests.

Autopkgtest already creates and cleans a temporary directory.
parent 365cd6cc
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
#!/bin/sh
set -e

test_dir=$(mktemp -d)

cleanup() {
    rm -rf $test_dir ;
}
trap cleanup 1 2 3 13 15

cd "$test_dir"
cd "$AUTOPKGTEST_TMP"

cat > proj.gpr <<EOF
with "plplotada";
@@ -28,5 +22,3 @@ EOF

gprbuild -v proj.gpr
./proc

cleanup
+4 −11
Original line number Diff line number Diff line
#!/bin/sh
set -e

test_dir=$(mktemp -d)

cleanup() {
    rm -rf $test_dir ;
}
trap cleanup 1 2 3 13 15

cp -r /usr/share/doc/plplot-doc/examples $test_dir
QT_QPA_PLATFORM=offscreen xvfb-run make -C $test_dir/examples test_noninteractive

cleanup
cd "$AUTOPKGTEST_TMP"
cp -r /usr/share/doc/plplot-doc/examples/* .
QT_QPA_PLATFORM=offscreen xvfb-run make test_noninteractive