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
20
tests/testdata/build_with_env.txt
vendored
Normal file
20
tests/testdata/build_with_env.txt
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Test build with KRUST_REPO environment variable
|
||||
|
||||
-- Cargo.toml --
|
||||
[package]
|
||||
name = "test-app"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
-- src/main.rs --
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
|
||||
# Build with KRUST_REPO should succeed
|
||||
env KRUST_REPO=test.local
|
||||
[linux] exec ./krust build --no-push --platform linux/amd64 .
|
||||
[darwin] exec ./krust build --no-push --platform linux/amd64 .
|
||||
stderr 'Building Rust project'
|
||||
stderr 'Successfully built image'
|
||||
Loading…
Add table
Add a link
Reference in a new issue