]> diplodocus.org Git - nmh/blobdiff - test/mhparam/test-mhparam
test-nocreate: Don't use run_test and run_prog together.
[nmh] / test / mhparam / test-mhparam
index a7e76bf2afcd2bac8703d554cf2f41edbfa3d5ea..6bb0fa06febe5a26c7443fd170c32aff64d0459d 100755 (executable)
@@ -16,6 +16,9 @@ fi
 
 setup_test
 
+! mhparam - >/dev/null 2>&1 # gcov
+! mhparam localmbox >/dev/null 2>&1 # gcov
+
 expected=$MH_TEST_DIR/$$.expected
 expected_err=$MH_TEST_DIR/$$.expected_err
 actual=$MH_TEST_DIR/$$.actual
@@ -49,8 +52,9 @@ run_test 'mhparam -nonexistent' 'mhparam: -nonexistent unknown'
 
 # check -all
 cp "$MH" $expected
-# -all adds current folder
+# -all adds current folder and Version
 echo 'Current-Folder: '`folder -f` >>$expected
+echo "Version: nmh-$MH_VERSION" >>$expected
 run_prog mhparam -all >$actual
 check $expected $actual 'keep first'
 
@@ -94,7 +98,7 @@ $MH_INST_DIR$nmhlibexecdir/post
 $MH_INST_DIR$bindir/send
 $MH_INST_DIR$bindir/mhshow
 $MH_INST_DIR$nmhlibexecdir/mhl
-nmh-`cat ${srcdir}/VERSION`
+nmh-$MH_VERSION
 $MH_INST_DIR$bindir/whatnow
 $MH_INST_DIR$bindir/whom
 $nmhetcdirinst