testing: Simplify line ending handling in tests

This commit is contained in:
Bjørn Erik Pedersen
2026-03-28 12:44:20 +01:00
parent ea7eac6558
commit b55d452e46
10 changed files with 1 additions and 37 deletions
+1
View File
@@ -0,0 +1 @@
* text=auto eol=lf
-3
View File
@@ -1,8 +1,5 @@
# Test the hugo mod commands.
dostounix golden/vendor.txt
dostounix golden/go.mod.testsubmod
hugo mod graph
stdout 'empty-hugo'
hugo mod verify
-1
View File
@@ -1,5 +1,4 @@
# Test the hugo init command.
dostounix golden/go.mod.testsubmod
hugo mod init testsubmod
cmpenv go.mod $WORK/golden/go.mod.testsubmod
-8
View File
@@ -1,13 +1,5 @@
# Test mod npm pack.
dostounix golden1/package.json
dostounix golden1/packages/hugoautogen/package.json
dostounix golden1/packages/hugoautogen/hugo_packagemeta.json
dostounix golden2/packages/hugoautogen/package.json
dostounix golden3/packages/hugoautogen/package.json
dostounix golden4/packages/hugoautogen/package.json
dostounix golden5/packages/hugoautogen/package.json
hugo mod npm pack
cmp packages/hugoautogen/package.json golden1/packages/hugoautogen/package.json
cmp package.json golden1/package.json
@@ -1,9 +1,5 @@
# Test mod npm pack with shuffled modules.
dostounix golden1/package.json
dostounix golden1/packages/hugoautogen/package.json
dostounix golden1/packages/hugoautogen/hugo_packagemeta.json
hugo mod npm pack
cmp packages/hugoautogen/package.json golden1/packages/hugoautogen/package.json
cmp package.json golden1/package.json
@@ -3,9 +3,6 @@
# See https://github.com/gohugoio/hugo/issues/13465
[windows] skip
dostounix golden/packages/hugoautogen/package.json
dostounix golden/package.json
hugo mod npm pack
cmp packages/hugoautogen/package.json golden/packages/hugoautogen/package.json
cmp package.json golden/package.json
-2
View File
@@ -1,7 +1,5 @@
# Test hugo mod tidy.
dostounix golden/go.mod.cleaned
hugo mod tidy
cmp go.mod golden/go.mod.cleaned
-2
View File
@@ -1,5 +1,3 @@
dostounix golden/vendor.txt
hugo mod vendor
cmp _vendor/modules.txt golden/vendor.txt
ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml
@@ -1,5 +1,3 @@
dostounix golden/vendor.txt
hugo mod vendor
cmp _vendor/modules.txt golden/vendor.txt
lsr _vendor