tests/test-dispatch
author Simon Heimberg <simohe@besonet.ch>
Tue, 19 May 2009 09:36:20 +0200
changeset 8592 cc22b4168879
parent 8167 6c82beaaa11a
child 8637 c88c8d59979f
permissions -rwxr-xr-x
runtest: do not start testing when there is no test

#!/bin/sh
# test command parsing and dispatch

"$TESTDIR/hghave" no-outer-repo || exit 80

hg init a
cd a
echo a > a
hg ci -Ama

echo "# missing arg"
hg cat

echo '% [defaults]'
hg cat a
cat >> $HGRCPATH <<EOF
[defaults]
cat = -v
EOF
hg cat a

echo '% no repo'
cd ..
hg cat

exit 0