Test suite & MANIFEST

Julien ÉLIE julien at trigofacile.com
Thu Jul 5 07:31:01 UTC 2007


Hi,

I tried to use the test suite yesterday but some tests
are broken.  Here is how to fix them.

By the way, would it be possible to regenerate the
MANIFEST file?  At least two files are missing:
tests/data/etc/inn-bfx.conf
tests/data/etc/inntdx.conf


tests/overview/overview-t.c
---------------------------

@@ -120,7 +120,7 @@
 static bool
 overview_init(void)
 {
-    system("/bin/rm -r ov-tmp");
+    system("/bin/rm -rf ov-tmp");
     if (mkdir("ov-tmp", 0755))
         sysdie("Cannot mkdir ov-tmp");
     if (strcmp(innconf->ovmethod, "buffindexed") == 0)


tests/overview/xref-t.c
-----------------------

@@ -48,6 +48,7 @@
     system("/bin/rm -rf ov-tmp");
     if (mkdir("ov-tmp", 0755))
         sysdie("Cannot mkdir ov-tmp");
+    system("/bin/rm -rf spool");
     if (mkdir("spool", 0755))
         sysdie("Cannot mkdir spool");
     return overview_open(OV_READ | OV_WRITE);


tests/util/inndf.t
------------------

@@ -72,13 +72,14 @@
 cp articles/2 spool/example/config/1
 cp articles/3 spool/example/test/2
 cp articles/4 spool/example/test/3
+rm -f spool/example/config/2
 ln -s ../test/2 spool/example/config/2

 # First, generate a tradindexed overview to test inndf -n and make sure that
 # inndf -o returns the appropriate thing.
 INN_TESTSUITE=1; export INN_TESTSUITE
 INNCONF="etc/inn-tdx.conf"; export INNCONF
-mkdir ov-tmp tmp run
+mkdir -p ov-tmp tmp run
 if ! $makehistory -x -O > /dev/null 2>&1 ; then
     echo "makehistory failed, unable to continue" >&2
     exit 1

-- 
Julien

« Mettez-vous de profil avec les épaules de face
  et ne bougeons plus je vous prie. » (Astérix)


More information about the inn-workers mailing list