]> Cypherpunks.ru repositories - goredo.git/blob - t/goredo-default.do.t
default.do-s must not depend on themselves
[goredo.git] / t / goredo-default.do.t
1 #!/bin/sh
2
3 testname=`basename "$0"`
4 test_description="Building of default.do must not depend on itself"
5 . $SHARNESS_TEST_SRCDIR/sharness.sh
6 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
7
8 mkdir foo
9 echo echo echo ok > default.do
10 redo foo/default.do
11 test_expect_success "repeated" "redo foo/default.do"
12 test_expect_success "repeated again" "redo foo/default.do"
13 redo foo/bar
14 bar=`cat foo/bar`
15 test_expect_success "default is fine" '[ "$bar" = "ok" ]'
16
17 test_done