File: smoke-test-gcc

package info (click to toggle)
aflplusplus 4.21c-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,496 kB
  • sloc: ansic: 110,361; cpp: 16,725; sh: 4,855; python: 3,793; makefile: 963; javascript: 515; java: 43; sql: 3; xml: 1
file content (18 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e -u
cpu=$(dpkg-architecture -q DEB_HOST_ARCH_CPU)
if [ $cpu != i386 ] && [ $cpu != amd64 ]
then
    exit 0
fi
cp 'test-instr.c' "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
for CC in afl-gcc 'afl-g++ -x c++'
do
    make -B 'test-instr' CC="$CC"
	echo 0 | afl-showmap -q -o out0 ./test-instr
	echo 1 | afl-showmap -q -o out1 ./test-instr
	! diff -u out0 out1
done

# vim:ts=4 sts=4 sw=4 et