mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 14:55:35 +00:00
migrate integration tests to testscript
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
cd1d52840c
commit
24685b4331
16 changed files with 299 additions and 345 deletions
22
tests/testdata/alpine_platforms.txt
vendored
Normal file
22
tests/testdata/alpine_platforms.txt
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Test Alpine base image platform detection
|
||||
|
||||
-- Cargo.toml --
|
||||
[package]
|
||||
name = "test-alpine"
|
||||
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 Alpine base - should detect many platforms
|
||||
env RUST_LOG=info
|
||||
exec ./krust build --no-push --image test.local/alpine:latest .
|
||||
stderr 'Detecting available platforms from base image: alpine:latest'
|
||||
stderr 'platforms'
|
||||
Loading…
Add table
Add a link
Reference in a new issue