aboutsummaryrefslogtreecommitdiff
path: root/hooks/news_TEST
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/news_TEST')
-rwxr-xr-xhooks/news_TEST10
1 files changed, 5 insertions, 5 deletions
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
}