• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

When running the unit tests on a newly installed MAIN branch, it fails due to not finding Algorithm::Diff in Merge.pm. The INC path does not show lib/CPAN but the use clause seems to require that.


Problem does not occur at rev 11778 -- TW
Problem recurred in rev 11785 or earlier -- TW

I have gotten the test cases to run again by applying the following patch, but I am not sure whether this is not supposed to work without this patch. Can somebody who understands the use of these CPAN modules comment?

Index: test/bin/TestRunner.pl
===================================================================
--- test/bin/TestRunner.pl      (revision 11785)
+++ test/bin/TestRunner.pl      (working copy)
@@ -16,6 +16,7 @@
     unshift @INC, "$root/test/unit";
     unshift @INC, "$root/bin";
     unshift @INC, "$root/lib";
+    unshift @INC, "$root/lib/CPAN/lib";
     require 'setlib.cfg';
 };

OK, I understand. Tests will work without the patch as long as LocalLib.cfg is configured to add the lib/CPAN/lib dir, and a use TWiki occurs early enough in the test. But it's a bit hit-and-miss, so what you propose is a reasonable thing to do; please go ahead and check it in.

CC


Test environment should not to be marked "Waiting for Release", Closed will do.

haj

ItemTemplate
Summary Algorithm::Diff not found by unit test
ReportedBy TWiki:Main.ThomasWeigert
Codebase ~twiki4
SVN Range TWiki-4.1, Sun, 08 Oct 2006, build 11688
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 11830
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2006-11-14 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback