Skip to content
Snippets Groups Projects
Commit b4740b07 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

zscanner: fix unittests

parent 9090bcf2
Branches
Tags
No related merge requests found
......@@ -19,10 +19,10 @@ $INCLUDE \./includes/include2 _a_.-b-c-./d/. ; Slashed character in file name,
$INCLUDE ./includes/include2 \0320\ \\\"\.\@\*.tld. ; Origin with special chars
5. NS @
$INCLUDE @BUILD@/includes/include2 ; Absolute path without origin
$INCLUDE @TMPDIR@/includes/include2 ; Absolute path without origin
6. NS @
$INCLUDE @BUILD@/includes/include2 tld. ; Absolute path with origin
$INCLUDE @TMPDIR@/includes/include2 tld. ; Absolute path with origin
7. NS @
; KO
......
......@@ -2,4 +2,4 @@ $ORIGIN .
$TTL 1
; KO
$INCLUDE @BUILD@/ ; Given file is a directory
$INCLUDE @TMPDIR@/ ; Given file is a directory
......@@ -2,4 +2,4 @@ $ORIGIN .
$TTL 1
; KO
$INCLUDE @BUILD@/zscanner_tests/file-doesnt-exist ; File doesn't exist
$INCLUDE @TMPDIR@/file-doesnt-exist ; File doesn't exist
......@@ -7,7 +7,7 @@ TMPDIR=$(test_tmpdir)
TESTS_DIR="$SOURCE"/data
ZSCANNER_TOOL="$BUILD"/zscanner-tool
plan 65
plan 68
mkdir -p "$TMPDIR"/includes/
for a in 1 2 3 4 5 6; do
......@@ -20,7 +20,7 @@ for case in $(cat "$SOURCE"/zscanner-TESTS); do
filein="$TMPDIR"/"$case".in
fileout="$TMPDIR"/"$case".out
sed -e "s|@BUILD@|$BUILD|;s|@SOURCE@|$SOURCE|;" < "$casein" > "$filein"
sed -e "s|@TMPDIR@|$TMPDIR|;s|@SOURCE@|$SOURCE|;" < "$casein" > "$filein"
diag $(ls "$filein")
"$ZSCANNER_TOOL" -m 2 . "$filein" > "$fileout"
......
......@@ -18,8 +18,11 @@
05-2_TTL
05-3_TTL
05-4_TTL
06-0_INCLUDE
06-1_INCLUDE
06-2_INCLUDE
06-3_INCLUDE
06-4_INCLUDE
06-5_INCLUDE
06-6_INCLUDE
06-7_INCLUDE
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment