#!/bin/bash oneTimeSetUp() { set -u cp debian/tests/test*.f90 $AUTOPKGTEST_TMP } test() { cwd=$(pwd) cd $AUTOPKGTEST_TMP names="test1 test2" for name in $names do echo "Building." set -x gfortran -O3 -march=native -llbfgsb -o $name $name.f90 ret=$? set +x assertEquals 0 $ret echo "Running." set -x ./$name ret=$? set +x assertEquals 0 $ret done cd $cwd } . shunit2