aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkg/ir_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-03 16:16:37 +0900
committerOphestra <cat@gensokyo.uk>2026-10-03 16:16:37 +0900
commit4697e493fe59a2e61b5e8e8a9d0ae4b8e338e378 (patch)
treea6e8e0c2ad875118e24da2bad5ffe13f442dea3d /pkg/ir_test.go
parentaeb0ac9a329a253baf516be6ecfbdc4a750c6df6 (diff)
pkg: rename test helper
This is less ambiguous, and more consistent with upcoming integration test suite changes. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'pkg/ir_test.go')
-rw-r--r--pkg/ir_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/ir_test.go b/pkg/ir_test.go
index 9cc024ae..7ad5a8f5 100644
--- a/pkg/ir_test.go
+++ b/pkg/ir_test.go
@@ -40,8 +40,8 @@ func TestIRRoundtrip(t *testing.T) {
"exec-offline", "", nil, 0, false, false,
pkg.AbsWork,
[]string{"HAKUREI_TEST=1"},
- check.MustAbs("/opt/bin/testtool"),
- []string{"testtool"},
+ check.MustAbs("/opt/bin/tester"),
+ []string{"tester"},
pkg.MustPath("/file", false, pkg.NewFile("file", []byte(
"stub file",
@@ -49,7 +49,7 @@ func TestIRRoundtrip(t *testing.T) {
nil, "file:///hakurei.tar",
pkg.Checksum(bytes.Repeat([]byte{0xfc}, len(pkg.Checksum{}))),
))), pkg.MustPath("/opt", false, pkg.NewTar(pkg.NewDecompress(pkg.NewHTTPGet(
- nil, "file:///testtool.tar.gz",
+ nil, "file:///test-helper.tar.gz",
pkg.Checksum(bytes.Repeat([]byte{0xfc}, len(pkg.Checksum{}))),
), pkg.Gzip))),
)},
@@ -60,8 +60,8 @@ func TestIRRoundtrip(t *testing.T) {
0, false, false,
pkg.AbsWork,
[]string{"HAKUREI_TEST=1"},
- check.MustAbs("/opt/bin/testtool"),
- []string{"testtool", "net"},
+ check.MustAbs("/opt/bin/tester"),
+ []string{"tester", "net"},
pkg.MustPath("/file", false, pkg.NewFile("file", []byte(
"stub file",
@@ -69,7 +69,7 @@ func TestIRRoundtrip(t *testing.T) {
nil, "file:///hakurei.tar",
pkg.Checksum(bytes.Repeat([]byte{0xfc}, len(pkg.Checksum{}))),
))), pkg.MustPath("/opt", false, pkg.NewTar(pkg.NewDecompress(pkg.NewHTTPGet(
- nil, "file:///testtool.tar.gz",
+ nil, "file:///test-helper.tar.gz",
pkg.Checksum(bytes.Repeat([]byte{0xfc}, len(pkg.Checksum{}))),
), pkg.Gzip))),
)},
@@ -80,8 +80,8 @@ func TestIRRoundtrip(t *testing.T) {
0, false, false,
pkg.AbsWork,
[]string{"HAKUREI_TEST=1"},
- check.MustAbs("/opt/bin/testtool"),
- []string{"testtool", "measured"},
+ check.MustAbs("/opt/bin/tester"),
+ []string{"tester", "measured"},
pkg.MustPath("/file", false, pkg.NewFile("file", []byte(
"stub file",
@@ -89,7 +89,7 @@ func TestIRRoundtrip(t *testing.T) {
nil, "file:///hakurei.tar",
pkg.Checksum(bytes.Repeat([]byte{0xfd}, len(pkg.Checksum{}))),
))), pkg.MustPath("/opt", false, pkg.NewTar(pkg.NewDecompress(pkg.NewHTTPGet(
- nil, "file:///testtool.tar.gz",
+ nil, "file:///test-helper.tar.gz",
pkg.Checksum(bytes.Repeat([]byte{0xfd}, len(pkg.Checksum{}))),
), pkg.Gzip))),
)},