pkgsrc/security/netpgpverify/files/testit.sh
agc 0cfaed6376 forcibly disable tools build when running the testing script - found when
testing the src/ version, benign for pkgsrc. ride previous version bump.
2015-02-05 01:28:25 +00:00

21 lines
464 B
Bash
Executable file

#! /bin/sh
tmp=$(mktemp -d ../netpgpverify-test.XXXXXX)
pax -rwpp . ${tmp}
cat > ${tmp}/config.h <<EOF
#ifndef CONFIG_H_
#define CONFIG_H_ 20141204
#ifndef __UNCONST
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
#endif /* __UNCONST */
#ifndef USE_ARG
#define USE_ARG(x) /*LINTED*/(void)&(x)
#endif /* USE_ARG */
#endif /* CONFIG_H_ */
EOF
(cd ${tmp} && env USETOOLS=no make -f Makefile.bsd && make -f Makefile.bsd tst)
rm -rf ${tmp}