mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-21 22:17:19 +03:00
17 lines
601 B
Bash
Executable File
17 lines
601 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Tests that documentation properly is merged with existent.
|
|
idris --mkdoc package_a.ipkg
|
|
[ -f test_merge_doc/IdrisDoc ] && echo "IdrisDoc file written"
|
|
idris --mkdoc package_b.ipkg
|
|
ls -1p test_merge_doc/docs
|
|
if grep -q "href\\=\"docs/A.fully.Qualified.NAME\\.html\"" test_merge_doc/index.html; then
|
|
echo A.fully.Qualified.NAME is in the index
|
|
else
|
|
echo A.fully.Qualified.NAME is NOT in the index
|
|
fi
|
|
if grep -q "href\\=\"docs/B\\.html\"" test_merge_doc/index.html; then
|
|
echo B is in the index
|
|
else
|
|
echo B is NOT in the index
|
|
fi
|
|
rm -rf *.ibc *_doc A/fully/Qualified/NAME.ibc |