#!/bin/sh

test_description="Building of default.do must not depend on itself"
. $SHARNESS_TEST_SRCDIR/sharness.sh
export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1

mkdir foo
echo echo echo ok >default.do
redo foo/default.do
test_expect_success "repeated" "redo foo/default.do"
test_expect_success "repeated again" "redo foo/default.do"
redo foo/bar
bar=`cat foo/bar`
test_expect_success "default is fine" '[ "$bar" = "ok" ]'

test_done
