2022-04-11 00:19:40 +03:00
|
|
|
-set RUNEPUBCHECK 0
|
|
|
|
-if macos -set RUNEPUBCHECK 1
|
|
|
|
|
2019-02-05 02:44:07 +02:00
|
|
|
-cases indoc/Tests/Targets
|
|
|
|
|
|
|
|
-recipe
|
2019-02-09 11:56:43 +02:00
|
|
|
mkdir: indoc/Tests/Targets
|
2019-02-05 02:44:07 +02:00
|
|
|
|
|
|
|
set: $I = indoc/Tests/Targets/$CASE-Ideal
|
|
|
|
set: $A = indoc/Tests/Targets/$CASE-Actual
|
2019-02-09 11:56:43 +02:00
|
|
|
mkdir: $I
|
|
|
|
mkdir: $A
|
2019-02-05 02:44:07 +02:00
|
|
|
|
|
|
|
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'
|
|
|
|
|
2022-04-11 00:19:40 +03:00
|
|
|
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
|
2019-02-05 02:44:07 +02:00
|
|
|
else
|
|
|
|
match folder: $A $I
|
|
|
|
or: 'Actual output did not match blessed output'
|
|
|
|
endif
|
|
|
|
|
|
|
|
-end
|