forked from ganelson/inform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
indoc.intest
34 lines (25 loc) · 892 Bytes
/
indoc.intest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-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