Commit 4c2e6902 4c2e6902643219c600504688bb59881465cc5536 by Sergey Poznyakoff

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.
1 parent 24333ac9
......@@ -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
......
......@@ -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
......