@@ -1,19 +1,17 @@
1#!/usr/bin/env bash
1#!/usr/bin/env bash
2−# Tests that documentation properly is merged with existent
2+# Tests that documentation properly is merged with existent.
3−# Also tests that an IdrisDoc is written
4idris --mkdoc package_a.ipkg
3idris --mkdoc package_a.ipkg
5[ -f test_merge_doc/IdrisDoc ] && echo "IdrisDoc file written"
4[ -f test_merge_doc/IdrisDoc ] && echo "IdrisDoc file written"
6idris --mkdoc package_b.ipkg
5idris --mkdoc package_b.ipkg
7−[ -f test_merge_doc/docs/A.html ] && echo "A: Check"
8−[ -f test_merge_doc/docs/B.html ] && echo "B: Check"
6+ls -1p test_merge_doc/docs
9−if grep -q "href\\=\"docs/A\\.html\"" test_merge_doc/index.html; then
7+if grep -q "href\\=\"docs/A.fully.Qualified.NAME\\.html\"" test_merge_doc/index.html; then
10− echo A
8+ echo A.fully.Qualified.NAME is in the index
12− echo A is not in the index
10+ echo A.fully.Qualified.NAME is NOT in the index
14if grep -q "href\\=\"docs/B\\.html\"" test_merge_doc/index.html; then
12if grep -q "href\\=\"docs/B\\.html\"" test_merge_doc/index.html; then
15− echo B
13+ echo B is in the index
17− echo B is not in the index
15+ echo B is NOT in the index
19−rm -rf *.ibc *_doc
17+rm -rf *.ibc *_doc A/fully/Qualified/NAME.ibc