on master help sign in
Changed test implementation
commitab6de0edcda70a5cc4d3f17ff2368438e1b5fc17 authorPhilip Rasmussen <pjor@itu.dk> dateWed 23 Apr 2014, 10:01 (13 years ago) parent31c4938
2 files changed+2−2
test/idrisdoc007/do_not_delete_doc/dummy.txt−1 test/idrisdoc007/run+2−1
test/idrisdoc007/do_not_delete_doc/dummy.txtdeleted−1
@@ -1 +0,0 @@
1−Only here to ensure that the parent directory exists.
test/idrisdoc007/run+2−1
@@ -1,5 +1,6 @@
11#!/usr/bin/env bash
22# Tests that documentation only is written when safe
3+mkdir do_not_delete_doc
34idris --mkdoc package.ipkg > lines
45echo Expects exit status 1: $?
56echo Expects 2 lines of output:
@@ -7,4 +8,4 @@ wc -l lines
78echo Expects the first line to be type checking:
89grep "Type checking \\./A\\.idr" lines
910echo Cannot check the second line as it contains a host-dependent string.
10−rm -f *.ibc lines
11+rm -rf do_not_delete_doc *.ibc lines