internal/rosa/cmake: run tests

This uses the standard CMake test target.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-01 02:02:00 +09:00
parent 09a216c6ec
commit 2cd6b35bee
4 changed files with 33 additions and 5 deletions

View File

@@ -13,12 +13,23 @@ func (t Toolchain) newZstd() (pkg.Artifact, string) {
"zstd-"+version+".tar.gz",
checksum,
pkg.TarGzip,
), nil, &CMakeHelper{
), &PackageAttr{
// tests Makefile assumes writable source
Writable: true,
Chmod: true,
}, &CMakeHelper{
Append: []string{"build", "cmake"},
Cache: []KV{
{"CMAKE_BUILD_TYPE", "Release"},
},
}), version
Test: `
make -C /usr/src/zstd/tests datagen
ZSTD_BIN=/cure/programs/zstd /usr/src/zstd/tests/playTests.sh
`,
},
Make,
Diffutils,
), version
}
func init() {
artifactsM[Zstd] = Metadata{