1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-01 06:24:58 +03:00
inform7/indoc/Tests/indoc.intest

35 lines
892 B
Plaintext

-set RUNEPUBCHECK 0
-if macos -set RUNEPUBCHECK 1
-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'
if: $$RUNEPUBCHECK 1
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
endif
else
match folder: $A $I
or: 'Actual output did not match blessed output'
endif
-end