bunpen: integration tests: fix naming/ordering of test_06*

This commit is contained in:
2024-12-26 05:36:00 +00:00
parent 2e139c56d5
commit 949d7af62a

View File

@@ -77,38 +77,38 @@ test_04_logs_02_enabled() {
test -n "$stdout"
}
test_05_path_01_minimal() {
test_05_keep_01_path_minimal() {
bunpen --bunpen-path "$env" --bunpen-path /nix/store "$env"
}
test_05_path_02_no_extra_in_sandbox() {
test_05_keep_02_path_no_extra_in_sandbox() {
touch test_file0
bunpen --bunpen-path "$test" --bunpen-path /nix/store "$test" ! -f test_file0
}
test_05_path_03_added_to_sandbox() {
test_05_keep_03_path_added_to_sandbox() {
touch test_file0
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path test_file0 "$test" -f test_file0
}
test_06_path_04_handles_non_existent() {
test_06_keep_04_path_handles_non_existent() {
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path test_file0 "$test" ! -f test_file0
}
test_06_path_05_absolute() {
test_06_keep_05_path_absolute() {
touch test_file0
local p=$(realpath test_file0)
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path "$p" "$test" -f "$p"
}
test_06_path_06_home() {
test_06_keep_06_path_home() {
mkdir test_dir0
touch test_dir0/test_file0
export HOME=$PWD/test_dir0
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path '$HOME/test_file0' "$test" -f "$HOME/test_file0"
}
test_06_path_07_xdg_runtime_dir() {
test_06_keep_07_path_xdg_runtime_dir() {
mkdir test_dir0
touch test_dir0/test_file0
mkdir test_dir1
@@ -118,14 +118,14 @@ test_06_path_07_xdg_runtime_dir() {
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path '$XDG_RUNTIME_DIR/test_file1' "$test" -f "$XDG_RUNTIME_DIR/test_file1"
}
test_06_path_08_symlink_1_layer() {
test_06_keep_08_path_symlink_1_layer() {
touch test_file0
ln -s test_file0 test_symlink0
touch test_file1
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path test_symlink0 "$test" -f test_file0 -a -f test_symlink0 -a ! -f test_file1
}
test_06_path_08_symlink_2_layers() {
test_06_keep_09_path_symlink_2_layers() {
touch test_file0
ln -s test_file0 test_symlink0
ln -s test_symlink0 test_symlink1
@@ -133,7 +133,7 @@ test_06_path_08_symlink_2_layers() {
bunpen --bunpen-path "$test" --bunpen-path /nix/store --bunpen-path test_symlink1 "$test" -f test_file0 -a -f test_symlink1 -a -f test_symlink0 -a ! -f test_file1
}
test_06_keep_net() {
test_06_keep_10_net() {
# new namespaces get a loopback device, however bunpen doesn't auto-up the loopback.
# most containers (e.g. nix build environment) do up the lo.
# it wouldn't necessarily be _bad_ if bunpen changed behavior here,