# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1685479884 -3600 # Tue May 30 21:51:24 2023 +0100 # Node ID e0c17e5ab4b01dd58b9bfcf3e6ca152dfcf9517d # Parent 47d60ed784a7a88cb420746b7f63c2525fc9592e setup-base-dir: add a test for setup-base-dir diff --git a/tests/test-setup-base-dir.t b/tests/test-setup-base-dir.t new file mode 100644 --- /dev/null +++ b/tests/test-setup-base-dir.t @@ -0,0 +1,64 @@ +============================================ +Check the script that setup a base directory +============================================ + + $ SRC_DIR=$TESTDIR/.. + +Run the script +-------------- + + $ $PYTHON $SRC_DIR/bin/setup-base-dir benchmark-home + Creating folders + Installing poulpe (editable) into a new venv + Creating a "bin/" directory with some utility + Create symlinks to development Poulpe for suites + +Check the resulting dir +======================= + + $ ls -1F benchmark-home + benchmarks/ + bin/ + bin-envs/ + data-envs/ + results/ + suites@ + +check `bin/` content +-------------------- + + +The poulpe executable works + + $ benchmark-home/bin/poulpe + Usage: poulpe [OPTIONS] SUBCOMMAND [SUBCOMMAND_ARGS]... + + Wrapper around Poulpe binaries for ease of calling. + + Available Poulpe commands: + + bin-env-util, diff-result, env-desc, result-compare, result-search, run-util + + Options: + --help Show this message and exit. + +The shell works + + $ benchmark-home/bin/shell poulpe + Usage: poulpe [OPTIONS] SUBCOMMAND [SUBCOMMAND_ARGS]... + + Wrapper around Poulpe binaries for ease of calling. + + Available Poulpe commands: + + bin-env-util, diff-result, env-desc, result-compare, result-search, run-util + + Options: + --help Show this message and exit. + +We can activate the env + + $ . benchmark-home/bin/activate + $ which poulpe + $TESTTMP/benchmark-home/.venv/bin/poulpe + $ deactivate