1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Thu, 25 Sep 2025 14:52:36 +0200
Subject: Skip more TestCommands which need internet
These tests require internet access, which is not available
during Debian package build.
Forwarded: not-needed
Last-Update: 2025-09-25
---
testscripts/commands/mod__hugodirectsum.txt | 15 ---
testscripts/commands/mod__hugodirectsum_tamper.txt | 16 ----
testscripts/commands/mod__tamper_gosum.txt | 22 -----
testscripts/commands/mod_vendor__versions.txt | 102 ---------------------
4 files changed, 155 deletions(-)
delete mode 100644 testscripts/commands/mod__hugodirectsum.txt
delete mode 100644 testscripts/commands/mod__hugodirectsum_tamper.txt
delete mode 100644 testscripts/commands/mod__tamper_gosum.txt
delete mode 100644 testscripts/commands/mod_vendor__versions.txt
diff --git a/testscripts/commands/mod__hugodirectsum.txt b/testscripts/commands/mod__hugodirectsum.txt
deleted file mode 100644
index ce3d3e4..0000000
--- a/testscripts/commands/mod__hugodirectsum.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-hugo mod graph
-stdout 'foo'
-grep 'github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD\+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4II=' hugo.direct.sum
-
--- hugo.toml --
-baseURL = "https://example.org"
-[[module.imports]]
-path = "github.com/bep/hugo-mod-nop"
-version = "v1.0.0"
--- layouts/all.html --
-All.
--- go.mod --
-module foo
-
-go 1.24.0
\ No newline at end of file
diff --git a/testscripts/commands/mod__hugodirectsum_tamper.txt b/testscripts/commands/mod__hugodirectsum_tamper.txt
deleted file mode 100644
index e07676d..0000000
--- a/testscripts/commands/mod__hugodirectsum_tamper.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-! hugo
-stderr 'checksum mismatch'
-
--- hugo.toml --
-baseURL = "https://example.org"
-[[module.imports]]
-path = "github.com/bep/hugo-mod-nop"
-version = "v1.0.0"
--- layouts/all.html --
-All.
--- go.mod --
-module foo
-
-go 1.24.0
--- hugo.direct.sum --
-github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4Ix=
\ No newline at end of file
diff --git a/testscripts/commands/mod__tamper_gosum.txt b/testscripts/commands/mod__tamper_gosum.txt
deleted file mode 100644
index 8aabba9..0000000
--- a/testscripts/commands/mod__tamper_gosum.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-
-# We're not testing Go's security here, so we just edit the go.sum and verifies that the build fails.
-
-! hugo
-stderr 'checksum mismatch'
-
-
--- hugo.toml --
-baseURL = "https://example.org"
-[[module.imports]]
-path = "github.com/bep/hugo-mod-nop"
--- layouts/all.html --
-All.
--- go.mod --
-module foo
-
-go 1.24.0
-
-require github.com/bep/hugo-mod-nop v1.0.0 // indirect
--- go.sum --
-github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4II=
-github.com/bep/hugo-mod-nop v1.0.0/go.mod h1:6cqjOCVJHP6+aQ+5IYvaS9j8BfIVksAct4xzl9OnmIX=
\ No newline at end of file
diff --git a/testscripts/commands/mod_vendor__versions.txt b/testscripts/commands/mod_vendor__versions.txt
deleted file mode 100644
index 10a8a03..0000000
--- a/testscripts/commands/mod_vendor__versions.txt
+++ /dev/null
@@ -1,102 +0,0 @@
-dostounix golden/vendor.txt
-
-hugo mod vendor
-cmp _vendor/modules.txt golden/vendor.txt
-lsr _vendor
-stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/config.toml'
-stdout 'github.com/bep/hugo-mod-misc/dummy-content@v0.2.0/config.toml'
-stdout 'github.com/bep/hugo-mod-misc/dummy-content@v0.2.0/content/blog/music/all-of-me/index.md'
-stdout 'github.com/bep/hugo-mod-misc/dummy-content@v0.2.0/content/blog/music/blue-bossa/index.md'
-stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/content/blog/music/all-of-me/index.md'
-! stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/content/blog/music/blue-bossa/index.md' # not mounted
-
-hugo mod graph
-stdout 'project github.com/bep/hugo-mod-misc/dummy-content@v0.2.0'
-stdout 'project github.com/bep/hugo-mod-misc/dummy-content@v0.1.0'
-
-hugo config mounts
-[unix] cmpenv stdout golden/mounts.json
-
--- hugo.toml --
-baseURL = "https://example.org"
-[[module.imports]]
-path = "github.com/bep/hugo-mod-misc/dummy-content"
-version = "v0.2.0"
-[[module.imports]]
-path = "github.com/bep/hugo-mod-misc/dummy-content"
-version = "<=v0.1.0"
-[[module.imports.mounts]]
-source = "content/blog/music/all-of-me"
-target = "content/all"
--- layouts/all.html --
-Title: {{ .Title }}|Summary: {{ .Summary }}|
-Deps: {{ range hugo.Deps}}{{ printf "%s@%s" .Path .Version }}|{{ end }}$
-
-
--- golden/vendor.txt --
-# github.com/bep/hugo-mod-misc/dummy-content@v0.2.0 v0.2.0
-# github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0 v0.1.0
--- golden/mounts.json --
-{
- "path": "project",
- "version": "",
- "time": "0001-01-01T00:00:00Z",
- "owner": "",
- "dir": "$WORK",
- "mounts": [
- {
- "source": "content",
- "target": "content"
- },
- {
- "source": "data",
- "target": "data"
- },
- {
- "source": "layouts",
- "target": "layouts"
- },
- {
- "source": "i18n",
- "target": "i18n"
- },
- {
- "source": "archetypes",
- "target": "archetypes"
- },
- {
- "source": "assets",
- "target": "assets"
- },
- {
- "source": "static",
- "target": "static"
- }
- ]
-}
-{
- "path": "github.com/bep/hugo-mod-misc/dummy-content",
- "version": "v0.2.0",
- "time": "0001-01-01T00:00:00Z",
- "owner": "project",
- "dir": "$WORK/_vendor/github.com/bep/hugo-mod-misc/dummy-content@v0.2.0/",
- "mounts": [
- {
- "source": "content",
- "target": "content"
- }
- ]
-}
-{
- "path": "github.com/bep/hugo-mod-misc/dummy-content",
- "version": "v0.1.0",
- "time": "0001-01-01T00:00:00Z",
- "owner": "project",
- "dir": "$WORK/_vendor/github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/",
- "mounts": [
- {
- "source": "content/blog/music/all-of-me",
- "target": "content/all"
- }
- ]
-}
|