diff options
author | Gard Spreemann <gspr@nonempty.org> | 2019-08-26 16:46:26 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2019-08-26 17:20:28 +0200 |
commit | 2e1f6460e7adcec86549591ce344ee901ba15cd0 (patch) | |
tree | ea9ca8d3d1d2aff63f20c42cf1edd84eff891109 /debian/tests | |
parent | 0ee99ab765360ac69c762239b4eec87b75fdb674 (diff) |
Add some new superficial tests.
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 6 | ||||
-rwxr-xr-x | debian/tests/examples-superficial-tests.sh | 25 |
2 files changed, 30 insertions, 1 deletions
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 |