forked from rosa/hakurei
internal/rosa/cmake: run tests
This uses the standard CMake test target. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user