4 if [ "$1" = "--valgrind" ]
7 valgrind='valgrind --leak-check=full --error-exitcode=1'
10 parser="@abs_builddir@/parse-url"
13 url=$(head -n1 $testfile)
18 $valgrind $parser $url > $tmp
21 echo "Error running $parser on $testfile"
25 cmp --silent $testfile $tmp
30 echo "FAIL: URL parse results differ:"
31 diff -u $testfile $tmp