commit - 9fecc8d045c7fbacd561ecfc5a39f8e163299496
commit + aa174d0808d7326b5ec96364cb05f21bd47e31d5
blob - 41fa5ae45bcc23ddd3f6c20844b2b898a7901bbf
blob + 5cec87c8d26920d2df174053c6479b3b60232857
--- regress/cmdline/add.sh
+++ regress/cmdline/add.sh
echo "A bar" > $testroot/stdout.expected
echo "A baz" >> $testroot/stdout.expected
echo "A foo" >> $testroot/stdout.expected
+
+ cmp -s $testroot/stdout.expected $testroot/stdout
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ diff -u $testroot/stdout.expected $testroot/stdout
+ test_done "$testroot" "$ret"
+ return 1
+ fi
+
+ echo "new file" > $testroot/wt/bax
+ (cd $testroot/wt && got add -R * > $testroot/stdout)
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ echo "got add failed unexpectedly" >&2
+ test_done "$testroot" 1
+ return 1
+ fi
+
+ echo "A bax" > $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret=$?
if [ $ret -ne 0 ]; then
diff -u $testroot/stdout.expected $testroot/stdout
fi
+
test_done "$testroot" "$ret"
}