From 7a01d4616cec1831ec025e62bc64b4ec5d6ed600 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 10 Jun 2018 11:15:47 +0200 Subject: make: disable post listings if {atom_,}posts_per_page is 0 --- tests/blogc-make/check_blogc_make.sh.in | 47 +-------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) (limited to 'tests/blogc-make') diff --git a/tests/blogc-make/check_blogc_make.sh.in b/tests/blogc-make/check_blogc_make.sh.in index fcf47a9..064c801 100755 --- a/tests/blogc-make/check_blogc_make.sh.in +++ b/tests/blogc-make/check_blogc_make.sh.in @@ -448,6 +448,7 @@ BASE_DOMAIN = http://example.org [settings] atom_posts_per_page = 0 +posts_per_page = 0 [posts] post01 @@ -464,8 +465,6 @@ post11 EOF ${TESTS_ENVIRONMENT} @abs_top_builddir@/blogc-make -f "${TEMP}/proj/blogcfile" 2>&1 | tee "${TEMP}/output.txt" -grep "_build/index\\.html" "${TEMP}/output.txt" -grep "_build/atom\\.xml" "${TEMP}/output.txt" grep "_build/post/post01/index\\.html" "${TEMP}/output.txt" grep "_build/post/post02/index\\.html" "${TEMP}/output.txt" grep "_build/post/post03/index\\.html" "${TEMP}/output.txt" @@ -480,50 +479,6 @@ grep "_build/post/post11/index\\.html" "${TEMP}/output.txt" rm "${TEMP}/output.txt" -cat > "${TEMP}/expected-index.html" < "${TEMP}/expected-atom.xml" < - - Lol's Website - /atom.xml - - - - - Lol - author@example.com - - WAT?! - - -EOF -diff -uN "${TEMP}/proj/_build/atom.xml" "${TEMP}/expected-atom.xml" - cat > "${TEMP}/expected-post-post01.html" <