1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-03 07:24:58 +03:00
inform7/indoc/Tests/indoc.intest
2019-02-09 09:56:43 +00:00

30 lines
808 B
Plaintext

-cases indoc/Tests/Targets
-recipe
mkdir: indoc/Tests/Targets
set: $I = indoc/Tests/Targets/$CASE-Ideal
set: $A = indoc/Tests/Targets/$CASE-Actual
mkdir: $I
mkdir: $A
step: rm -f $A/.DS_Store
step: rm -f $I/.DS_Store
step: indoc/Tangled/indoc -from indoc/Tests/Basic -to $A -fixtime $CASE >$WORK/indoc_report.txt 2>&1
or: 'indoc failed' $WORK/indoc_report.txt
if: $CASE ebook
match folder: $A/ePub $I/ePub
or: 'Actual output did not match blessed output'
step: java -jar indoc/Tests/Assistants/epubcheck-4.0.1/epubcheck.jar 'indoc/Tests/Targets/ebook-Actual/The Indoc Test Case Book.epub' >$WORK/epub_report.txt 2>&1
or: 'The ebook failed to verify through epubcheck' $WORK/epub_report.txt
else
match folder: $A $I
or: 'Actual output did not match blessed output'
endif
-end