From 245f268ee4818198f9db76fd809942ece9fa0fc3 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Sun, 7 Dec 2014 20:32:36 +0100 Subject: [PATCH] Adjusted tests/new/test-basic to mmh. --- test/tests/new/test-basic | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/test/tests/new/test-basic b/test/tests/new/test-basic index 772b72f..96bb9e1 100644 --- a/test/tests/new/test-basic +++ b/test/tests/new/test-basic @@ -23,13 +23,6 @@ inbox foo2 EOF -# test with no sequence -cat > $expected < $actual 2>&1 -check - # test with no desired messages cat > $expected < $actual 2>&1 check # set aseq bseq as unseen -echo 'Unseen-Sequence: aseq bseq' >> $MH +echo 'Unseen-Sequence: aseq bseq' >>"$MMH/profile" new > $actual 2>&1 check @@ -94,61 +87,61 @@ check cat > $expected <> - 3 09/29 Test3 Testing message 3<> - 4 09/29 Test4 Testing message 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 - 1 09/29 Test1 Testing message 1<> - 3 09/29 Test3 Testing message 3<> - 4 09/29 Test4 Testing message 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) - 1 09/29 Test1 Testing message 1<> - 3 09/29 Test3 Testing message 3<> - 4 09/29 Test4 Testing message 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 -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 '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 '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 '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 '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 '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 -rm $MH_TEST_DIR/Mail/context +rm "$MMH/context" echo 'foo1 1 3-4' > $expected fnext > $actual 2>&1 check -- 1.7.10.4