aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/eselect_env_update_TEST4
-rwxr-xr-xhooks/news_TEST10
2 files changed, 7 insertions, 7 deletions
diff --git a/hooks/eselect_env_update_TEST b/hooks/eselect_env_update_TEST
index f28516bcd..f908e10d6 100755
--- a/hooks/eselect_env_update_TEST
+++ b/hooks/eselect_env_update_TEST
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
-# Copyright (c) 2007 Ciaran McCreesh
+# Copyright (c) 2007, 2008 Ciaran McCreesh
#
# This file is part of the Paludis package manager. Paludis is free software;
# you can redistribute it and/or modify it under the terms of the GNU General
@@ -23,7 +23,7 @@ eselect_env_update_TEST()
mkdir -p eselect_env_update_TEST_dir/{etc,lib,var/run}
touch eselect_env_update_TEST_dir/etc/ld.so.conf
- ${TOP_SRCDIR}/hooks/eselect_env_update.bash >/dev/null ; test_return_code
+ ${TOP_BUILDDIR}/hooks/eselect_env_update.bash >/dev/null ; test_return_code
[[ -f eselect_env_update_TEST_dir/etc/ld.so.cache ]] \
|| [[ -f eselect_env_update_TEST/var/run/ld-elf.so.hints ]] ; test_return_code
diff --git a/hooks/news_TEST b/hooks/news_TEST
index 9abaf6e1f..54c609887 100755
--- a/hooks/news_TEST
+++ b/hooks/news_TEST
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
-# Copyright (c) 2007 Ciaran McCreesh
+# Copyright (c) 2007, 2008 Ciaran McCreesh
#
# This file is part of the Paludis package manager. Paludis is free software;
# you can redistribute it and/or modify it under the terms of the GNU General
@@ -23,8 +23,8 @@ news_none_TEST()
export HOOK=sync_all_post
export PALUDIS_HOME=`pwd`/news_TEST_dir/one
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post >/dev/null ; test_return_code
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post \
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_BUILDDIR}/hooks/news.hook hook_run_sync_all_post >/dev/null ; test_return_code
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_BUILDDIR}/hooks/news.hook hook_run_sync_all_post \
| grep "No unread news items found" >/dev/null ; test_return_code
}
@@ -35,8 +35,8 @@ news_one_TEST()
export HOOK=sync_all_post
export PALUDIS_HOME=`pwd`/news_TEST_dir/two
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post 2>/dev/null ; test_return_code
- bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_SRCDIR}/hooks/news.hook hook_run_sync_all_post 2>&1 \
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_BUILDDIR}/hooks/news.hook hook_run_sync_all_post 2>/dev/null ; test_return_code
+ bash ${PALUDIS_HOOKER_DIR}/hooker.bash ${TOP_BUILDDIR}/hooks/news.hook hook_run_sync_all_post 2>&1 \
| grep "You have 1 unread news item" >/dev/null ; test_return_code
}