Convert the DFG tests to use filecheck.

This commit is contained in:
Jakob Stoklund Olesen
2016-09-09 11:09:54 -07:00
parent c95c23dbbe
commit e41853cab0
4 changed files with 15 additions and 11 deletions

View File

@@ -16,9 +16,7 @@ fi
declare -a fails
for testcase in $(find cfg -name '*.cton'); do
annotations=$(cat $testcase | awk /';;;;'/ | awk -F ";;;;" '{print $2}' | sort)
connections=$("${CTONUTIL}" print-cfg "$testcase" | awk /"->"/ | sort)
if diff -u <(echo $annotations) <(echo $connections); then
if "${CTONUTIL}" print-cfg "$testcase" | "${CTONUTIL}" filecheck "$testcase"; then
echo OK $testcase
else
fails=(${fails[@]} "$testcase")