Skip to content

Commit

Permalink
Test hocr-merge-dc, #22 (#23)
Browse files Browse the repository at this point in the history
* test hocr-merge-dc

* pass not fail the skipped test
  • Loading branch information
kba authored and zuphilip committed May 21, 2016
1 parent dacb6e4 commit e8a2bd3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions test/hocr-merge-dc/hocr-merge-dc.tsht
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env tsht

plan 4

hocr_file='../legacy/sample.html'

output=$(hocr-merge-dc dcsample2.xml "$hocr_file")
not_ok "$?" "Command succeeded"
# ok "$output" "Output produced"
match "name='DC.title' value='Nomad'" "$(cat "$hocr_file")"
not_match "name='DC.title' value='UKOLN'" "$(cat "$hocr_file")"
match 'name="DC.title" value="UKOLN"' "$output"
# match "
2 changes: 1 addition & 1 deletion test/hocr-pdf/test-hocr-pdf.tsht
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ work="445442158_0126"

which pdfgrep wget >/dev/null
if [[ "$?" != 0 ]];then
fail "Test requires 'pdfgrep' and 'wget' installed"
pass "Test requires 'pdfgrep' and 'wget' installed"
exit
fi
exec_ok wget --quiet "http://digi.bib.uni-mannheim.de/fileadmin/digi/445442158/hocr/${work}.hocr"
Expand Down

0 comments on commit e8a2bd3

Please sign in to comment.