projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
768131a
)
Adjusted tests/new/test-basic to mmh.
author
markus schnalke
<meillo@marmaro.de>
Sun, 7 Dec 2014 19:32:36 +0000
(20:32 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Sun, 7 Dec 2014 19:32:36 +0000
(20:32 +0100)
test/tests/new/test-basic
patch
|
blob
|
history
diff --git
a/test/tests/new/test-basic
b/test/tests/new/test-basic
index
772b72f
..
96bb9e1
100644
(file)
--- a/
test/tests/new/test-basic
+++ b/
test/tests/new/test-basic
@@
-23,13
+23,6
@@
inbox
foo2
EOF
foo2
EOF
-# test with no sequence
-cat > $expected <<EOF
-new: must specify sequences or set Unseen-Sequence
-EOF
-new > $actual 2>&1
-check
-
# test with no desired messages
cat > $expected <<EOF
total 0.
# test with no desired messages
cat > $expected <<EOF
total 0.
@@
-86,7
+79,7
@@
new aseq bseq > $actual 2>&1
check
# set aseq bseq as unseen
check
# set aseq bseq as unseen
-echo 'Unseen-Sequence: aseq bseq' >> $MH
+echo 'Unseen-Sequence: aseq bseq' >>"$MMH/profile"
new > $actual 2>&1
check
new > $actual 2>&1
check
@@
-94,61
+87,61
@@
check
cat > $expected <<EOF
3 aseq bseq messages in foo1
cat > $expected <<EOF
3 aseq bseq messages in foo1
- 1 09/29 Test1 Testing message 1<<This is message number 1 >>
- 3 09/29 Test3 Testing message 3<<This is message number 3 >>
- 4 09/29 Test4 Testing message 4<<This is message number 4 >>
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
3 aseq bseq messages in foo2
3 aseq bseq messages in foo2
- 1 09/29 Test1 Testing message 1<<This is message number 1 >>
- 3 09/29 Test3 Testing message 3<<This is message number 3 >>
- 4 09/29 Test4 Testing message 4<<This is message number 4 >>
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
3 aseq bseq messages in inbox (*: current folder)
3 aseq bseq messages in inbox (*: current folder)
- 1 09/29 Test1 Testing message 1<<This is message number 1 >>
- 3 09/29 Test3 Testing message 3<<This is message number 3 >>
- 4 09/29 Test4 Testing message 4<<This is message number 4 >>
+ 1 2006-09-29 00:00 Test1 Testing message 1
+ 3 2006-09-29 00:00 Test3 Testing message 3
+ 4 2006-09-29 00:00 Test4 Testing message 4
EOF
unseen > $actual 2>&1
check
# test fnext with the current folder not in the list
EOF
unseen > $actual 2>&1
check
# test fnext with the current folder not in the list
-echo 'Current-Folder: foo1' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo1' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fnext -folders $folders > $actual 2>&1
check
# test fprev with the current folder not in the list
echo 'inbox 1 3-4' > $expected
fnext -folders $folders > $actual 2>&1
check
# test fprev with the current folder not in the list
-echo 'Current-Folder: foo1' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo1' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fprev -folders $folders > $actual 2>&1
check
# test fnext with current folder in the middle of the list
echo 'inbox 1 3-4' > $expected
fprev -folders $folders > $actual 2>&1
check
# test fnext with current folder in the middle of the list
-echo 'Current-Folder: foo2' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo2' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fnext > $actual 2>&1
check
# test fprev with current folder in the middle of the list
echo 'inbox 1 3-4' > $expected
fnext > $actual 2>&1
check
# test fprev with current folder in the middle of the list
-echo 'Current-Folder: foo2' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo2' >"$MMH/context"
echo 'foo1 1 3-4' > $expected
fprev > $actual 2>&1
check
# test fprev with current folder at the beginning of the list
echo 'foo1 1 3-4' > $expected
fprev > $actual 2>&1
check
# test fprev with current folder at the beginning of the list
-echo 'Current-Folder: foo1' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: foo1' >"$MMH/context"
echo 'inbox 1 3-4' > $expected
fprev > $actual 2>&1
check
# test fnext with current folder at the end of the list
echo 'inbox 1 3-4' > $expected
fprev > $actual 2>&1
check
# test fnext with current folder at the end of the list
-echo 'Current-Folder: inbox' > $MH_TEST_DIR/Mail/context
+echo 'Current-Folder: inbox' >"$MMH/context"
echo 'foo1 1 3-4' > $expected
fnext > $actual 2>&1
check
# test fnext with no current folder
echo 'foo1 1 3-4' > $expected
fnext > $actual 2>&1
check
# test fnext with no current folder
-rm $MH_TEST_DIR/Mail/context
+rm "$MMH/context"
echo 'foo1 1 3-4' > $expected
fnext > $actual 2>&1
check
echo 'foo1 1 3-4' > $expected
fnext > $actual 2>&1
check