summaryrefslogtreecommitdiff
path: root/tests/cli.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-11 10:43:19 +0300
committerPaul Buetow <paul@buetow.org>2026-06-11 10:43:19 +0300
commit1e7b394e56085a9cc33b8b8b64b094d5223e8853 (patch)
treed716db2d332904bb66f34572ec066d19170cd9cc /tests/cli.sh
parentcbd3cf2be4ce50092ec4eb3f4b28d77c0aa044e4 (diff)
Add shuriken logo and generated favicon
Diffstat (limited to 'tests/cli.sh')
-rwxr-xr-xtests/cli.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cli.sh b/tests/cli.sh
index 53acecf..2a71dba 100755
--- a/tests/cli.sh
+++ b/tests/cli.sh
@@ -239,6 +239,7 @@ test_just_install_and_deinstall_with_destdir() {
test::assert_file_exists "$stage_dir/etc/default/photoalbum"
test::assert_file_exists \
"$stage_dir/usr/share/photoalbum/templates/default/view.tmpl"
+ test::assert_file_exists "$stage_dir/usr/share/photoalbum/assets/favicon.ico"
(
cd "$TEST_REPO_ROOT"
@@ -1657,6 +1658,7 @@ test_dry_run_reports_cli_overrides_without_writes() {
test::assert_contains \
" $dist_dir/index.html (1 album index redirect)" \
"$output"
+ test::assert_contains " $dist_dir/favicon.ico" "$output"
test::assert_contains " $dist_dir/photoalbum.json" "$output"
test::assert_contains " $dist_dir/photos/* (6 image files)" "$output"
test::assert_contains " $dist_dir/thumbs/* (6 image files)" "$output"
@@ -2131,6 +2133,7 @@ test_integration_generates_album_outputs_and_cleans() {
test::assert_file_exists "$TEST_TMPDIR/dist/3-2.html"
test::assert_file_exists "$TEST_TMPDIR/dist/3-2-details.html"
test::assert_file_exists "$TEST_TMPDIR/dist/index.html"
+ test::assert_file_exists "$TEST_TMPDIR/dist/favicon.ico"
test::assert_file_exists "$TEST_TMPDIR/dist/photoalbum.json"
test::assert_no_html_subdir_output "$TEST_TMPDIR/dist"
@@ -2161,6 +2164,12 @@ test_integration_generates_album_outputs_and_cleans() {
test::assert_not_contains 'class="details-photo-link" href="1-2.html"' \
"$details_html"
test::assert_contains '<title>Integration album</title>' "$top_index_html"
+ test::assert_contains \
+ '<link rel="icon" href="./favicon.ico" type="image/x-icon">' \
+ "$top_index_html"
+ test::assert_contains \
+ '<link rel="icon" href="./favicon.ico" type="image/x-icon">' \
+ "$page_html"
test::assert_contains 'Enter album' "$top_index_html"
test::assert_contains 'href="page-1.html"' "$top_index_html"
test::assert_contains \
@@ -2335,6 +2344,9 @@ test_generate_config_no_splash_keeps_index_redirect() {
top_index_html=$(<"$TEST_TMPDIR/dist/index.html")
test::assert_contains 'url=page-1.html' "$top_index_html"
+ test::assert_contains \
+ '<link rel="icon" href="./favicon.ico" type="image/x-icon">' \
+ "$top_index_html"
test::assert_not_contains 'Enter album' "$top_index_html"
test::assert_not_contains '<script' "$top_index_html"
test::assert_not_contains 'javascript:' "$top_index_html"