diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-06-06 17:46:24 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-06-06 17:46:24 +0300 |
commit | 4c2e6902643219c600504688bb59881465cc5536 (patch) | |
tree | c1f3b2d37814dc99c02e0dc437eec230092c0316 | |
parent | 24333ac926f4412737d618dbff6d3ca0c70809ec (diff) | |
download | mailutils-4c2e6902643219c600504688bb59881465cc5536.tar.gz mailutils-4c2e6902643219c600504688bb59881465cc5536.tar.bz2 |
Fix comsat testsuite.
* comsat/tests/atlocal.in (MH_SUPPORT)
(MAILDIR_SUPPORT): New variables.
* comsat/tests/testsuite.at: Disable test cases if their
prerequisite features are not compiled in.
-rw-r--r-- | comsat/tests/atlocal.in | 2 | ||||
-rw-r--r-- | comsat/tests/testsuite.at | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/comsat/tests/atlocal.in b/comsat/tests/atlocal.in index 113b7fc66..32e0ef89a 100644 --- a/comsat/tests/atlocal.in +++ b/comsat/tests/atlocal.in @@ -3,4 +3,6 @@ # Copyright (C) 2004, 2010-2012 Free Software Foundation, Inc. PATH=@abs_builddir@:@abs_top_builddir@/comsat:$top_srcdir:$srcdir:$PATH +@MU_COND_SUPPORT_MH_TRUE@MH_SUPPORT=yes +@MU_COND_SUPPORT_MAILDIR_TRUE@MAILDIR_SUPPORT=yes diff --git a/comsat/tests/testsuite.at b/comsat/tests/testsuite.at index 93000c6cb..d1bf15d28 100644 --- a/comsat/tests/testsuite.at +++ b/comsat/tests/testsuite.at @@ -103,7 +103,8 @@ EOT chmod 600 biff.rc > $cwd/output ], -[comsatcmd maildir:$cwd/mailbox new/1284627340.M364969P3770Q81.Trurl +[test "$MAILDIR_SUPPORT" = yes || AT_SKIP_TEST +comsatcmd maildir:$cwd/mailbox new/1284627340.M364969P3770Q81.Trurl sed '1s/^Mail to .*/Mail to test user/' output ], [Mail to test user @@ -127,7 +128,8 @@ EOT chmod 600 biff.rc > $cwd/output ], -[comsatcmd mh:$cwd/mailbox teaparty/58 +[test "$MH_SUPPORT" = yes || AT_SKIP_TEST +comsatcmd mh:$cwd/mailbox teaparty/58 sed '1s/^Mail to .*/Mail to test user/' output ], [Mail to test user |