diff --git a/tests/test-setup-base-dir.t b/tests/test-setup-base-dir.t new file mode 100644 index 0000000000000000000000000000000000000000..e0c17e5ab4b01dd58b9bfcf3e6ca152dfcf9517d_dGVzdHMvdGVzdC1zZXR1cC1iYXNlLWRpci50 --- /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