summaryrefslogtreecommitdiffstats
path: root/testscripts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-28 11:35:00 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-28 12:55:44 +0200
commitfd099331ec82c21e1fd7ee1cdb9630b820714643 (patch)
treeb4280f2b8dac094f6b0d6c9099df571b1241b0e6 /testscripts
parent43f1282e734f5a27f99ff6efb29190a234b3447a (diff)
Fix Processed images count regression for multiple languages
Fixes #11002
Diffstat (limited to 'testscripts')
-rw-r--r--testscripts/commands/hugo__processingstats.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/testscripts/commands/hugo__processingstats.txt b/testscripts/commands/hugo__processingstats.txt
new file mode 100644
index 000000000..0e700b607
--- /dev/null
+++ b/testscripts/commands/hugo__processingstats.txt
@@ -0,0 +1,34 @@
+cp $SOURCE/resources/testdata/pix.gif content/en/bundle1/pix.gif
+cp $SOURCE/resources/testdata/pix.gif content/en/bundle2/pix.gif
+cp $SOURCE/resources/testdata/pix.gif content/fr/bundle1/pix.gif
+
+hugo
+
+stdout 'Pages.*3.*2'
+stdout 'Processed images.*2.*1'
+
+-- content/en/bundle1/index.md --
+-- content/en/bundle2/index.md --
+-- content/fr/bundle1/index.md --
+-- hugo.toml --
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"]
+baseURL = "https://example.com/"
+[languages]
+ [languages.en]
+ languageName = "English"
+ weight = 1
+ title = "English Title"
+ contentDir = "content/en"
+ [languages.fr]
+ languageName = "French"
+ weight = 2
+ title = "French Title"
+ contentDir = "content/fr"
+-- layouts/index.html --
+Home.
+-- layouts/_default/single.html --
+Single.
+{{ range .Resources }}
+{{ $img := .Resize "3x" }}
+Resized: {{ $img.RelPermalink }}
+{{ end }}