3 testname=`basename "$0"`
4 test_description="Check that dashed targets are not treated as options"
5 . $SHARNESS_TEST_SRCDIR/sharness.sh
6 export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
8 echo echo \$1 > default.do
10 test_expect_success "redo skips dashes" '[ ! -e ./-- ]'
11 test_expect_success "redo mades ok" '[ -s ok ]'
13 echo "redo-ifchange -- ok" > foo.do
16 test_expect_success "dashes made" '[ -s ./-- ]'
17 test_expect_success "ok is also made" '[ -e ok ]'