From 8a4e6248052ff32e02dcec3dd6850d4582836fb5 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 24 Jul 2019 18:04:28 +0200 Subject: make: fixed filename generation for pagination_tags --- tests/blogc-make/check_blogc_make.sh.in | 182 ++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) (limited to 'tests/blogc-make/check_blogc_make.sh.in') diff --git a/tests/blogc-make/check_blogc_make.sh.in b/tests/blogc-make/check_blogc_make.sh.in index 36dfceb..423b83e 100755 --- a/tests/blogc-make/check_blogc_make.sh.in +++ b/tests/blogc-make/check_blogc_make.sh.in @@ -38,6 +38,7 @@ ${TESTS_ENVIRONMENT} @abs_top_builddir@/blogc-make -f "${TEMP}/proj/blogcfile" 2 cat > "${TEMP}/proj/content/post/foo.txt" < "${TEMP}/proj/content/post/bar.txt" < "${TEMP}/proj/content/post/post${i}.txt" < "${TEMP}/proj/blogcfile" <&1 | tee "${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" +grep "_build/post/post04/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post05/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post06/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post07/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post08/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post09/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post10/index\\.html" "${TEMP}/output.txt" +grep "_build/post/post11/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/asd/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/asd/page/1/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/asd/page/2/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/asd/page/3/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/asd/page/4/index\\.html" "${TEMP}/output.txt" +grep -v "_build/tag/asd/page/5/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/qwe/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/qwe/page/1/index\\.html" "${TEMP}/output.txt" +grep -v "_build/tag/qwe/page/2/index\\.html" "${TEMP}/output.txt" + +rm "${TEMP}/output.txt" + +cat > "${TEMP}/expected-tag-asd1.html" < "${TEMP}/expected-tag-asd2.html" < "${TEMP}/expected-tag-asd3.html" < "${TEMP}/expected-tag-asd4.html" < "${TEMP}/expected-tag-qwe1.html" < "${TEMP}/proj/blogcfile" < "${TEMP}/expected-tag2.html" <This is hue.

@@ -1292,6 +1424,7 @@ Listing: tag2 - Baz - Aug 01, 2016, 12:00 AM GMT EOF diff -uN "${TEMP}/proj/_build/tag/tag2/index.html" "${TEMP}/expected-tag2.html" +diff -uN "${TEMP}/proj/_build/tag/tag2/page/1/index.html" "${TEMP}/expected-tag2.html" rm -rf "${TEMP}/proj/_build" @@ -1322,11 +1455,16 @@ grep "_build/atom\\.xml" "${TEMP}/output.txt" grep "_build/atom/tag1\\.xml" "${TEMP}/output.txt" grep "_build/atom/tag2\\.xml" "${TEMP}/output.txt" grep "_build/page/1/index\\.html" "${TEMP}/output.txt" +grep -v "_build/page/2/index\\.html" "${TEMP}/output.txt" grep "_build/post/foo/index\\.html" "${TEMP}/output.txt" grep "_build/post/bar/index\\.html" "${TEMP}/output.txt" grep "_build/post/baz/index\\.html" "${TEMP}/output.txt" grep "_build/tag/tag1/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/tag1/page/1/index\\.html" "${TEMP}/output.txt" +grep -v "_build/tag/tag1/page/2/index\\.html" "${TEMP}/output.txt" grep "_build/tag/tag2/index\\.html" "${TEMP}/output.txt" +grep "_build/tag/tag2/page/1/index\\.html" "${TEMP}/output.txt" +grep -v "_build/tag/tag2/page/2/index\\.html" "${TEMP}/output.txt" grep "_build/page1/index\\.html" "${TEMP}/output.txt" grep "_build/page2/index\\.html" "${TEMP}/output.txt" @@ -1345,7 +1483,9 @@ diff -uN "${TEMP}/proj/_build/post/bar/index.html" "${TEMP}/expected-post-bar.ht diff -uN "${TEMP}/proj/_build/post/baz/index.html" "${TEMP}/expected-post-baz.html" diff -uN "${TEMP}/proj/_build/tag/tag1/index.html" "${TEMP}/expected-tag1.html" +diff -uN "${TEMP}/proj/_build/tag/tag1/page/1/index.html" "${TEMP}/expected-tag1.html" diff -uN "${TEMP}/proj/_build/tag/tag2/index.html" "${TEMP}/expected-tag2.html" +diff -uN "${TEMP}/proj/_build/tag/tag2/page/1/index.html" "${TEMP}/expected-tag2.html" cat > "${TEMP}/expected-page1.html" < "${TEMP}/expected-tag2.html" < "${TEMP}/expected-page1.html" <