/usr/share/doc/libhts-dev/run-unit-test is in htslib-test 1.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash
set -e
pkg="htslib"
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cp -aL /usr/share/${pkg}-test/* $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP
sed -i 's#\$(HTSPREFIX)#/usr/include/#g' htslib_vars.mk
sed -i 's#\$(HTSLIB)#/usr/include/#g' htslib.mk
CFLAGS="-O2 -fno-strict-aliasing -fno-code-hoisting" make -e check
echo "PASS"
|