aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-08 02:32:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-08 02:32:38 +0000
commitfc06c987699d025b6828bc07b9ece67d4c610e5e (patch)
treeccd14d606c15002f5f1b0313142750c1827322dc /src/Makefile.am
parent4c476459a63129a45844e9e37a29241028d0440a (diff)
downloadpaludis-fc06c987699d025b6828bc07b9ece67d4c610e5e.tar.gz
paludis-fc06c987699d025b6828bc07b9ece67d4c610e5e.tar.xz
Add PAULDIS_NO_GLOBAL_HOOKS env var, for test cases. Do a full package install as part of the test cases.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am30
1 files changed, 23 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 6734acf92..2eabf8db3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,27 +28,43 @@ paludis_LDADD = \
TESTS_ENVIRONMENT = env \
TEST_SCRIPT_DIR="$(srcdir)/" \
- PALUDIS_SKIP_CONFIG="yes" \
+ PALUDIS_NO_GLOBAL_HOOKS="yes" \
+ PALUDIS_EBUILD_DIR="`$(top_srcdir)/ebuild/utils/canonicalise $(top_srcdir)/ebuild/`" \
+ SYSCONFDIR="$(sysconfdir)" \
bash $(top_srcdir)/test/run_test.sh bash
TESTS = version_TEST help_TEST list_sync_formats_TEST \
- list_repository_formats_TEST list_dep_tag_categories_TEST
+ list_repository_formats_TEST list_dep_tag_categories_TEST \
+ exception_TEST install_TEST
+
+EXTRA_DIST = install_TEST_setup.sh install_TEST_cleanup.sh
CLEANFILES = *~ $(TESTS) gmon.out *.gcov *.gcno *.gcda
MAINTAINERCLEANFILES = Makefile.in
version_TEST : paludis
- echo -e "#!/bin/sh\n./paludis --version" > $@
+ echo -e "#!/bin/sh\nenv PALUDIS_SKIP_CONFIG=yes ./paludis --version" > $@
help_TEST : paludis
- echo -e "#!/bin/sh\n./paludis --help" > $@
+ echo -e "#!/bin/sh\nenv PALUDIS_SKIP_CONFIG=yes ./paludis --help" > $@
+
+exception_TEST : paludis
+ echo -e "#!/bin/sh\nenv PALUDIS_HOME=./ \\" > $@
+ echo -e " ./paludis --config-suffix paludis-build-test -pi asdf 2>&1 \\" >> $@
+ echo -e " | grep 'Default configuration error' >/dev/null" >> $@
list_sync_formats_TEST : paludis
- echo -e "#!/bin/sh\n./paludis --list-sync-protocols" > $@
+ echo -e "#!/bin/sh\nenv PALUDIS_SKIP_CONFIG=yes ./paludis --list-sync-protocols" > $@
list_repository_formats_TEST : paludis
- echo -e "#!/bin/sh\n./paludis --list-repository-formats" > $@
+ echo -e "#!/bin/sh\nenv PALUDIS_SKIP_CONFIG=yes ./paludis --list-repository-formats" > $@
list_dep_tag_categories_TEST : paludis
- echo -e "#!/bin/sh\n./paludis --list-dep-tag-categories" > $@
+ echo -e "#!/bin/sh\nenv PALUDIS_SKIP_CONFIG=yes ./paludis --list-dep-tag-categories" > $@
+
+install_TEST : paludis
+ echo -e "#!/bin/sh\nenv \\" > $@
+ echo -e " PALUDIS_HOME=./install_TEST_dir/config/ \\" >> $@
+ echo -e " ./paludis --config-suffix install-test --install target" >> $@
+ echo -e "./install_TEST_dir/root/usr/bin/testbin | grep success >/dev/null" >> $@