mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
bench: add assemble --dry-run parse scenario and fixture
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[bench-alpha]
|
||||
image=docker.io/library/alpine:latest
|
||||
additional_packages="git curl"
|
||||
init_hooks="echo hello"
|
||||
home=~/.local/share/bench-alpha
|
||||
volume="/tmp:/tmp"
|
||||
|
||||
[bench-beta]
|
||||
image=docker.io/library/alpine:latest
|
||||
additional_packages="bash sudo"
|
||||
pre_init_hooks="echo pre"
|
||||
volume="/var/tmp:/var/tmp"
|
||||
volume="/home:/home"
|
||||
|
||||
[bench-gamma]
|
||||
image=docker.io/library/alpine:latest
|
||||
init=true
|
||||
nvidia=false
|
||||
pull=false
|
||||
unshare_groups=true
|
||||
@@ -0,0 +1,15 @@
|
||||
SCENARIO_DESCRIPTION="distrobox assemble create --dry-run on a 3-section ini"
|
||||
SCENARIO_WARMUP=3
|
||||
SCENARIO_RUNS=30
|
||||
|
||||
FIXTURE_PATH="${SCRIPT_DIR}/fixtures/assemble.ini"
|
||||
|
||||
scenario_supported() {
|
||||
"$EXEC" assemble --help 2>&1 | grep -q -- '--dry-run'
|
||||
}
|
||||
|
||||
scenario_setup() { :; }
|
||||
scenario_command() {
|
||||
printf '%s assemble create --file %s --dry-run\n' "$EXEC" "$FIXTURE_PATH"
|
||||
}
|
||||
scenario_cleanup() { :; }
|
||||
Reference in New Issue
Block a user