Coerce the weird test env for MFHD into working inside buildbot
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2011 03:51:42 +0000 (03:51 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 2 Mar 2011 03:51:42 +0000 (03:51 +0000)
'use testlib.pm' throws the standard "prove --lib lib -r t" recipe for testing
Perl packages out the window, so we have to override the Perl testing class
and point to the known location of testlib.pm

This may still fail for Evergreen branches prior to rel_2_1, but it's
_something_. Throw me a bone, here, will ya?

Ultimately, the best thing to do is probably to make MFHD tests conform.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2188 9efc2488-bf62-4759-914b-345cdb29e865

examples/buildbot.cfg

index 2961080..24e4a10 100644 (file)
@@ -186,8 +186,13 @@ eg_factory.addStep(shell.Configure())
 # compile the code
 eg_factory.addStep(shell.Compile(command=["make"]))
 
+class PerlModuleTestMFHDMadness(shell.PerlModuleTest):
+    'Override PerlModuleTest with nonstandard library location for testlib.pm'
+    command = ['prove', '--lib', 'lib', '-I', 'lib/OpenILS/Utils/MFHD/test', '-r', 't']
+    total = 0
+
 # run the Perl unit tests
-eg_factory.addStep(shell.PerlModuleTest(workdir="build/Open-ILS/src/perlmods"))
+eg_factory.addStep(PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods"))
 
 # report on the Python code
 eg_factory.addStep(python.PyLint(