summaryrefslogtreecommitdiffstats
path: root/testscripts
diff options
context:
space:
mode:
Diffstat (limited to 'testscripts')
-rw-r--r--testscripts/commands/hugo.txt2
-rw-r--r--testscripts/commands/mod.txt3
-rw-r--r--testscripts/commands/mod_npm.txt2
-rw-r--r--testscripts/commands/mod_npm_withexisting.txt1
-rw-r--r--testscripts/commands/server.txt2
5 files changed, 7 insertions, 3 deletions
diff --git a/testscripts/commands/hugo.txt b/testscripts/commands/hugo.txt
index 60f7ffe71..bf0f5cf0d 100644
--- a/testscripts/commands/hugo.txt
+++ b/testscripts/commands/hugo.txt
@@ -11,7 +11,7 @@ grep 'IsServer: false;IsProduction: true' public/index.html
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-Home|IsServer: {{ .Site.IsServer }};IsProduction: {{ hugo.IsProduction }}|
+Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
-- layouts/_default/single.html --
Title: {{ .Title }}
-- content/p1.md --
diff --git a/testscripts/commands/mod.txt b/testscripts/commands/mod.txt
index 56cea2c00..2fa17dbbe 100644
--- a/testscripts/commands/mod.txt
+++ b/testscripts/commands/mod.txt
@@ -18,7 +18,8 @@ hugo mod clean
! stderr .
stdout 'hugo: removed 1 dirs in module cache for \"github.com/bep/empty-hugo-module\"'
hugo mod clean --all
-stdout 'Deleted 2\d{2} files from module cache\.'
+# Currently this is 299 on MacOS and 301 on Linux.
+stdout 'Deleted (2|3)\d{2} files from module cache\.'
cd submod
hugo mod init testsubmod
cmpenv go.mod $WORK/golden/go.mod.testsubmod
diff --git a/testscripts/commands/mod_npm.txt b/testscripts/commands/mod_npm.txt
index 32cc37f06..3d8903e6a 100644
--- a/testscripts/commands/mod_npm.txt
+++ b/testscripts/commands/mod_npm.txt
@@ -2,6 +2,7 @@
dostounix golden/package.json
+
hugo mod npm pack
cmp package.json golden/package.json
@@ -41,3 +42,4 @@ path="github.com/gohugoio/hugoTestModule2"
}
-- go.mod --
module github.com/gohugoio/hugoTestModule
+go 1.20
diff --git a/testscripts/commands/mod_npm_withexisting.txt b/testscripts/commands/mod_npm_withexisting.txt
index e92eba3fd..073af0f07 100644
--- a/testscripts/commands/mod_npm_withexisting.txt
+++ b/testscripts/commands/mod_npm_withexisting.txt
@@ -55,3 +55,4 @@ path="github.com/gohugoio/hugoTestModule2"
}
-- go.mod --
module github.com/gohugoio/hugoTestModule
+go 1.20
diff --git a/testscripts/commands/server.txt b/testscripts/commands/server.txt
index a28e4d698..7f6afd8fd 100644
--- a/testscripts/commands/server.txt
+++ b/testscripts/commands/server.txt
@@ -25,7 +25,7 @@ myenv = "theproduction"
myenv = "thedevelopment"
-- layouts/index.html --
<body>
-Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ site.IsServer }}|
+Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}|
</body>
-- layouts/404.html --
custom 404