Truncated -help test in test-whom because its output depends on whether
authorDavid Levine <levinedl@acm.org>
Thu, 21 Jun 2012 00:16:18 +0000 (19:16 -0500)
committerDavid Levine <levinedl@acm.org>
Thu, 21 Jun 2012 00:16:18 +0000 (19:16 -0500)
sasl support was configured in.  It's not configured in by distcheck.

test/whom/test-whom

index b3f20eb..b53bb08 100755 (executable)
@@ -33,6 +33,8 @@ This is a draft message.
 EOF
 
 # check -help
+# Only look at first 10 lines because the rest depend on
+# whether sasl support was configured in.
 cat >$expected <<EOF
 Usage: whom [switches] [file]
   switches are:
@@ -44,13 +46,9 @@ Usage: whom [switches] [file]
   -nodraftfolder
   -version
   -help
-  -sasl
-  -saslmech mechanism
-  -user username
-  -(port) server port name/number
 EOF
 
-whom -help >$actual 2>&1
+whom -help | head -10 >$actual 2>&1
 check $expected $actual
 
 # check -version