Skip to content
Commits on Source (7)
Notes on how this package can be tested.
────────────────────────────────────────
This package can be tested by running the provided test:
sh run-unit-test
in order to confirm its integrity.
glam2 (1064-6) UNRELEASED; urgency=medium
* Team upload.
* Add autopkgtest
Closes: #909715
-- Saira Hussain <saira.h0213@zoho.com> Sat, 16 Mar 2019 22:56:33 +0100
glam2 (1064-5) unstable; urgency=medium
[ Steffen Moeller ]
......
......@@ -2,3 +2,5 @@ README
doc/*.html
doc/*.css
doc/*.pdf
debian/README.test
debian/tests/run-unit-test
#/bin/sh -e
TMP="$(mktemp)"
# run glam2 with no arguments
STDOUT="$(glam2 2> ${TMP})"
# check for exit status of 1
[ "$?" -eq 1 ]
# save help text
HELP_TEXT="$(glam2 -h)"
# now diff them
grep -q "{HELP_TEXT}" "${TMP}"
echo "SUCCESS: Help text is there!"
# clean-up
rm ${TMP}
\ No newline at end of file
Tests: check-no-args
Tests: run-unit-test
Depends: @
Restrictions: allow-stderr
#!/bin/bash
set -e
pkg="glam2"
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi
cp -a /usr/share/doc/${pkg}/examples/* ${AUTOPKGTEST_TMP}
cd ${AUTOPKGTEST_TMP}
glam2 p lipocalin.s
glam2 -r 1 -n 1000 p crp0.s
echo "PASS"