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 r...@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 u...@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_u...@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 u...@domain
will
mail_tests::mail04    0  TINFO  :  Test #4: carbon copy u...@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 u...@domain
will
mail_tests::mail05    0  TINFO  :  Test #5: blind carbon copy u...@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 "r...@thisdomaindoesnotexist" and 
"#3" sends mail to "non_existent_u...@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>
[r...@rhel4-8 ltp]# cat /var/spool/mail/root
cat: /var/spool/mail/root: No such file or directory
[r...@rhel4-8 ltp]# cat mail.txt
This is a test email.
[r...@rhel4-8 ltp]# mail -s "Test" non_existent_u...@localhost < mail.txt >
mail.out 2>&1
[r...@rhel4-8 ltp]# echo $?
0
[r...@rhel4-8 ltp]# tail -n 10 /var/spool/mail/root
Date: Fri, 4 Jun 2010 12:42:37 +0900
From: root <root>
Message-Id: <[email protected]>
To: [email protected]
Subject: Test

This is a test email.

--o543gbcR006792.1275622958/RHEL4-8.localdomain--

[r...@rhel4-8 ltp]# echo "d" | mail -u root > mail.res 2>&1
[r...@rhel4-8 ltp]# echo $?
0
[r...@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-dae...@rhel4-  Fri Jun  4 12:42  68/2521  "Returned mail: see
tr"
[r...@rhel4-8 ltp]#
------------

------------<log of #2>
#
[r...@rhel4-8 ltp]# cat /var/spool/mail/root
cat: /var/spool/mail/root: No such file or directory
[r...@rhel4-8 ltp]# cat mail.txt
This is a test email.
[r...@rhel4-8 ltp]# mail -s "Test" r...@thisdomaindoesnotexist < mail.txt >
mail.out 2>&1
[r...@rhel4-8 ltp]# echo $?
0
[r...@rhel4-8 ltp]# tail -n 10 /var/spool/mail/root
tail: cannot open `/var/spool/mail/root' for reading: No such file or
directory
[r...@rhel4-8 ltp]# echo "d" | mail -u root > mail.res 2>&1
[r...@rhel4-8 ltp]# echo $?
1
[r...@rhel4-8 ltp]# cat mail.res
No mail for root
[r...@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



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to