Commit a2717bc5 authored by Shayan Doust's avatar Shayan Doust
Browse files

autopkgtest

Not sure if this works fully yet due to lack of resources
parent 377d1121
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,3 +23,4 @@ debian/tmp/usr/fast/bin/qtInteroperability usr/lib/fast
debian/tmp/usr/fast/bin/seededRegionGrowingSegmentation usr/lib/fast
debian/tmp/usr/fast/bin/simpleGUI usr/lib/fast
debian/tmp/usr/fast/bin/streamImagesFromDisk usr/lib/fast
debian/tmp/usr/fast/bin/testFAST usr/lib/fast
+1 −1
Original line number Diff line number Diff line
debian/missing-sources/FAST_Test_Data.zip
debian/missing-sources/FAST_Test_Data.xz
+6 −6
Original line number Diff line number Diff line
#!/bin/bash
set -e

pkg=#PACKAGENAME#
pkg=fast

if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  # Double quote below to expand the temporary directory variable now versus
  # later is on purpose.
  # shellcheck disable=SC2064
  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi

cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
cp -a /usr/lib/fast/* "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
echo "Unpacking test data"
tar xf FAST_Test_Data.xz

#do_stuff_to_test_package#
echo "Invoking testFAST"
./testFAST