From: Mitani <mi...@ry...> - 2010-06-04 04:43:44
|
Hi, I ran "mail" test in RHEL system. But "#2" test of "mail_test.sh" failed: ------------<log> mail_tests::setup 0 TINFO : INIT: Removing all mails for mail_test and root mail_tests::mail01 0 TINFO : Test #1: mail root@localhost will send mail to root mail_tests::mail01 0 TINFO : Test #1: user on local machine. mail_tests::mail01 1 TPASS : Test #1: Mail was sent to root & was received mail_tests::mail02 0 TINFO : Test #2: mail user@bad-domain will result in failure mail_tests::mail02 0 TINFO : Test #2: to deliver the mail. Mailer daemon should mail_tests::mail02 0 TINFO : Test #2: report this failure. mail_tests::mail02 2 TFAIL : Test #2: No new mail for root. Reason: No mail for root mail_tests::mail03 0 TINFO : Test #3: mail non_existent_user@localhost will fail mail_tests::mail03 0 TINFO : Test #3: to deliver the mail. Mailer daemon should mail_tests::mail03 0 TINFO : Test #3: report this failure. mail_tests::mail03 3 TPASS : Test #3: Mailer-Daemon reported delivery failure mail_tests::mail04 0 TINFO : Test #4: Test that mail -c user@domain will mail_tests::mail04 0 TINFO : Test #4: carbon copy user@domain mail_tests::mail04 4 TPASS : Test #4: Mail was carbon copied to user mail_test mail_tests::mail05 0 TINFO : Test #5: Test that mail -b user@domain will mail_tests::mail05 0 TINFO : Test #5: blind carbon copy user@domain mail_tests::mail05 5 TPASS : Test #5: Mail was carbon copied to user mail_test mail_tests::cleanup 0 TINFO : Test CLEAN: Removing temporary files from /tmp mail_tests::cleanup 0 TINFO : Test CLEAN: Removing temporary user mail_test ------------ I use RHEL5.4 and RHEL4.8 system, and use x86, x86_64 and ia64 architectures. "#2" test failed in all combinations. "#2" and "#3" tests are failure tests. "#2" sends mail to "root@thisdomaindoesnotexist" and "#3" sends mail to "non_existent_user@localhost". "#3" test passed, but "#2" test failed. After these tests, there is information of "#3" mail in "/var/spool/mail/root". But there is no information of "#2" mail. Therefore "$LTPTMP/tst_mail.res" analysis isn't possible, and "#2" failed. I simulate these tests by the method along "mail_tests.sh": ------------<log of #3> [root@RHEL4-8 ltp]# cat /var/spool/mail/root cat: /var/spool/mail/root: No such file or directory [root@RHEL4-8 ltp]# cat mail.txt This is a test email. [root@RHEL4-8 ltp]# mail -s "Test" non_existent_user@localhost < mail.txt > mail.out 2>&1 [root@RHEL4-8 ltp]# echo $? 0 [root@RHEL4-8 ltp]# tail -n 10 /var/spool/mail/root Date: Fri, 4 Jun 2010 12:42:37 +0900 From: root <root> Message-Id: <201006040342.o543gbcQ006792@RHEL4-8.localdomain> To: non_existent_user@RHEL4-8.localdomain Subject: Test This is a test email. --o543gbcR006792.1275622958/RHEL4-8.localdomain-- [root@RHEL4-8 ltp]# echo "d" | mail -u root > mail.res 2>&1 [root@RHEL4-8 ltp]# echo $? 0 [root@RHEL4-8 ltp]# cat mail.res Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 1 message 1 new >N 1 MAILER-DAEMON@RHEL4- Fri Jun 4 12:42 68/2521 "Returned mail: see tr" [root@RHEL4-8 ltp]# ------------ ------------<log of #2> # [root@RHEL4-8 ltp]# cat /var/spool/mail/root cat: /var/spool/mail/root: No such file or directory [root@RHEL4-8 ltp]# cat mail.txt This is a test email. [root@RHEL4-8 ltp]# mail -s "Test" root@thisdomaindoesnotexist < mail.txt > mail.out 2>&1 [root@RHEL4-8 ltp]# echo $? 0 [root@RHEL4-8 ltp]# tail -n 10 /var/spool/mail/root tail: cannot open `/var/spool/mail/root' for reading: No such file or directory [root@RHEL4-8 ltp]# echo "d" | mail -u root > mail.res 2>&1 [root@RHEL4-8 ltp]# echo $? 1 [root@RHEL4-8 ltp]# cat mail.res No mail for root [root@RHEL4-8 ltp]# ------------ In "#2" test, there isn't expected information. Therefore RC1, RC2 and RC3 (resolt of "$LTPTMP/tst_mail.res" analysis) are all 0, and "#2" failed. In RHEL systems, the resolts are as above. I want to revise this test to match RHEL systems. I'm glad if I can know how about the results in other systems. Regards-- -Tomonori Mitani |