Convert parser tests to filetests.

Create a new directory hierarchy under 'filetests' for all the tests
that are run by 'cton-util test'.

Convert the parser tests under 'tests/parser' to use 'test cat' and
filecheck directives.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-15 15:27:37 -07:00
parent d221249e7f
commit 0b7f87b14c
13 changed files with 193 additions and 248 deletions

View File

@@ -58,10 +58,12 @@ cargo build --release
export CTONUTIL="$topdir/src/tools/target/release/cton-util"
cd "$topdir"
banner "File tests"
"$CTONUTIL" test filetests
# Run the parser tests.
cd "$topdir/tests"
banner "Parser tests"
parser/run.sh
banner "CFG tests"
cfg/run.sh