1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 06:45:32 +00:00

migrate integration tests to testscript

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-10-14 22:18:53 -04:00
parent cd1d52840c
commit 24685b4331
16 changed files with 299 additions and 345 deletions

22
tests/testdata/single_platform.txt vendored Normal file
View file

@ -0,0 +1,22 @@
# Test single platform build
-- Cargo.toml --
[package]
name = "test-app"
version = "0.1.0"
edition = "2021"
[dependencies]
-- src/main.rs --
fn main() {
println!("Hello, world!");
}
# Build for single platform
[linux] exec ./krust build --no-push --platform linux/amd64 --image test.local/single:latest .
[linux] stderr 'Building for platform: linux/amd64'
[linux] stderr 'Successfully built image for 1 platform'
[darwin] exec ./krust build --no-push --platform linux/amd64 --image test.local/single:latest .
[darwin] stderr 'Building for platform: linux/amd64'
[darwin] stderr 'Successfully built image for 1 platform'