Codebase list libntlm / 8fb7138
Improve autopkgtests, use upstream self-tests. Simon Josefsson 2 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
33
44 WORKDIR=$(mktemp -d)
55 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
6
7 touch $WORKDIR/config.h
8 for f in $(ls test*.c); do
9 gcc -I$WORKDIR -Igl -o $WORKDIR/foo $f -DNTLM_SRCDIR='"."' gl/des.c gl/md4.c `pkg-config --cflags --libs libntlm`
10 echo PASS: gcc $f
11 $WORKDIR/foo
12 echo PASS: $f
13 done
14
615 cd $WORKDIR
716 cat <<EOF > libntlmtest.c
817 #include <ntlm.h>
1827
1928 gcc -o libntlmtest libntlmtest.c `pkg-config --cflags --libs libntlm`
2029 echo "PASS: gcc"
30
2131 [ -x libntlmtest ]
2232 ./libntlmtest
2333 echo "PASS: run"