mirror of
https://github.com/imjasonh/krust
synced 2026-07-18 15:06:03 +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
19
tests/testdata/platform_detection.txt
vendored
Normal file
19
tests/testdata/platform_detection.txt
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Test platform detection from base image
|
||||
|
||||
-- Cargo.toml --
|
||||
[package]
|
||||
name = "test-app"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
-- src/main.rs --
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
|
||||
# Build without explicit platform - should detect from base image
|
||||
env RUST_LOG=info
|
||||
exec ./krust build --no-push --image test.local/detection:latest .
|
||||
stderr 'Detecting available platforms'
|
||||
stderr 'Detected platforms'
|
||||
Loading…
Add table
Add a link
Reference in a new issue