This patch makes the test suite work even when $PERL5LIB isn't set to the install directory.
It replaces $PERL5LIB with '..' in order to help ensure that we're loading the C4 libraries
out of the installation directory.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
TEST_FILES = database_dependent.pl
PROVE = /usr/bin/prove
PROVE_FLAGS = -v
+PERL5LIB = ..
KOHA_CONF_DIR = ../etc
CONF_FILE_TEMPLATE = $(KOHA_CONF_DIR)/koha-conf.xml
TEST_CONF_FILE = run/etc/koha-conf.xml
$(CHMOD) 755 $(TEST_SCRIPT_DIR)/$@
test :: config_file $(ZEBRA_CONF_FILES) $(SCRIPTS)
- KOHA_CONF=$(TEST_CONF_FILE) $(PROVE) $(PROVE_FLAGS) $(TEST_FILES)
+ KOHA_CONF=$(TEST_CONF_FILE) PERL5LIB=$(PERL5LIB) $(PROVE) $(PROVE_FLAGS) $(TEST_FILES)
test_run_dirs ::
$(MKPATH) run/etc
use Data::Dumper;
use Test::More;
-use lib q( . .. );
-
use Test::Class::Load qw ( . ); # run from the t directory
create_test_database();
plan skip_all => "Test::Class required for performing database tests" if $@;
# Or, maybe I should just die there.
-use lib qw(..);
use C4::Biblio;
use C4::Bookfund;
use C4::Bookseller;