~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a test for the 'mail --attach' command
[stgit]
/
t
/
t0002-status.sh
diff --git
a/t/t0002-status.sh
b/t/t0002-status.sh
index
d0c31b2
..
43e1ca0
100755
(executable)
--- a/
t/t0002-status.sh
+++ b/
t/t0002-status.sh
@@
-127,6
+127,7
@@
test_expect_success 'Status of file' '
'
cat > expected.txt <<EOF
'
cat > expected.txt <<EOF
+C foo/bar
EOF
test_expect_success 'Status of dir' '
stg status foo > output.txt &&
EOF
test_expect_success 'Status of dir' '
stg status foo > output.txt &&
@@
-158,4
+159,16
@@
test_expect_success 'Status after deleting a file' '
diff -u expected.txt output.txt
'
diff -u expected.txt output.txt
'
+cat > expected.txt <<EOF
+D foo/bar
+EOF
+test_expect_success 'Status of disappeared newborn' '
+ stg refresh &&
+ touch foo/bar &&
+ stg add foo/bar &&
+ rm foo/bar &&
+ stg status > output.txt &&
+ diff -u expected.txt output.txt
+'
+
test_done
test_done