build_coverage.sh - sfeed_tests - sfeed tests and RSS and Atom files
 (HTM) git clone git://git.codemadness.org/sfeed_tests
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       build_coverage.sh (494B)
       ---
            1 #!/bin/sh
            2 # NOTE: make sure to disable pledge on OpenBSD, gcov needs rpath.
            3 
            4 XMLO="$HOME/p/sfeed/xml.o"
            5 SFEEDDIR="$HOME/p/sfeed"
            6 
            7 header="$(readlink -f "$0")"
            8 header="$(dirname "$header")/../gcov_dump.h"
            9 
           10 CC="gcc"
           11 CFLAGS="-include $header -fprofile-arcs -ftest-coverage -Wall"
           12 LDFLAGS="-fprofile-arcs"
           13 
           14 BIN="${SFEEDDIR}/test_xml_entities"
           15 
           16 rm -f *.gcda *.gcno *.o
           17 rm -f main
           18 
           19 ${CC} -o main.o -c main.c ${CFLAGS} ${LDFLAGS} "-I${SFEEDDIR}"
           20 
           21 ${CC} -o "${BIN}" "$XMLO" main.o ${CFLAGS} ${LDFLAGS}