1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-18 23:16:03 +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

23
tests/testdata/custom_base_image.txt vendored Normal file
View file

@ -0,0 +1,23 @@
# Test build with custom base image
-- Cargo.toml --
[package]
name = "test-app"
version = "0.1.0"
edition = "2021"
[dependencies]
[package.metadata.krust]
base-image = "alpine:latest"
-- src/main.rs --
fn main() {
println!("Hello from Alpine!");
}
# Build with custom base image
[linux] exec ./krust build --no-push --platform linux/amd64 --image test.local/alpine-app:latest .
[darwin] exec ./krust build --no-push --platform linux/amd64 --image test.local/alpine-app:latest .
stderr 'Building Rust project'
stderr 'base-image.*alpine'
stderr 'Successfully built image'