on master help sign in
Made test resistant to differences among command implementations
commite202cfd65ba8d8bbffa70a2cc0f8672652d982e5 authorPhilip Rasmussen <pjor@itu.dk> dateWed 23 Apr 2014, 10:20 (13 years ago) parentab6de0e
2 files changed+4−14
test/idrisdoc007/expected+1−6 test/idrisdoc007/run+3−8
test/idrisdoc007/expected+1−6
@@ -1,6 +1 @@
1−Expects exit status 1: 1
2−Expects 2 lines of output:
3− 2 lines
4−Expects the first line to be type checking:
5−Type checking ./A.idr
6−Cannot check the second line as it contains a host-dependent string.
1+Exit status (expects 1): 1
test/idrisdoc007/run+3−8
@@ -1,11 +1,6 @@
11#!/usr/bin/env bash
22# Tests that documentation only is written when safe
33mkdir do_not_delete_doc
4−idris --mkdoc package.ipkg > lines
5−echo Expects exit status 1: $?
6−echo Expects 2 lines of output:
7−wc -l lines
8−echo Expects the first line to be type checking:
9−grep "Type checking \\./A\\.idr" lines
10−echo Cannot check the second line as it contains a host-dependent string.
11−rm -rf do_not_delete_doc *.ibc lines
4+idris --mkdoc package.ipkg > nowhere
5+echo Exit status \(expects 1\): $?
6+rm -rf do_not_delete_doc *.ibc nowhere