diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/tests/control | 6 | ||||
-rwxr-xr-x | debian/tests/examples-superficial-tests.sh | 25 |
3 files changed, 31 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 550266a..06856f1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ lbfgsb (3.0+dfsg.3-7) UNRELEASED; urgency=medium * Man page stub for -examples package. + * Add superficial test that just checks that the upstream examples run. -- Gard Spreemann <gspr@nonempty.org> Mon, 26 Aug 2019 16:21:51 +0200 diff --git a/debian/tests/control b/debian/tests/control index 6e49353..05b8cfd 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,3 +1,7 @@ Tests: tests.sh Depends: gfortran, libblas-dev, liblapack-dev, liblbfgsb-dev, shunit2 -Restrictions: allow-stderr
\ No newline at end of file +Restrictions: allow-stderr + +Tests: examples-superficial-tests.sh +Depends: liblbfgsb-examples, shunit2 +Restrictions: allow-stderr, superficial
\ No newline at end of file diff --git a/debian/tests/examples-superficial-tests.sh b/debian/tests/examples-superficial-tests.sh new file mode 100755 index 0000000..a420715 --- /dev/null +++ b/debian/tests/examples-superficial-tests.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +names="/usr/bin/lbfgsb-examples_driver1_77 \ + /usr/bin/lbfgsb-examples_driver1_90 \ + /usr/bin/lbfgsb-examples_driver2_77 \ + /usr/bin/lbfgsb-examples_driver2_90 \ + /usr/bin/lbfgsb-examples_driver3_77 \ + /usr/bin/lbfgsb-examples_driver3_90" + +testExamplesSuperficially() { + set -u + + cd $AUTOPKGTEST_TMP + + for name in $names + do + set -x + $name + ret=$? + set +x + assertEquals 0 $ret + done +} + +. shunit2 |