From: markus schnalke Date: Sun, 7 Dec 2014 19:32:36 +0000 (+0100) Subject: Adjusted tests/new/test-basic to mmh. X-Git-Tag: mmh-0.2-RC1~85 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=245f268ee4818198f9db76fd809942ece9fa0fc3;p=mmh Adjusted tests/new/test-basic to mmh. --- 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