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:
parent
cd1d52840c
commit
24685b4331
16 changed files with 299 additions and 345 deletions
22
tests/testdata/single_platform.txt
vendored
Normal file
22
tests/testdata/single_platform.txt
vendored
Normal 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue