jailmaker/test/test.sh

13 lines
639 B
Bash
Raw Permalink Normal View History

2024-06-29 15:20:08 +00:00
#!/usr/bin/env bash
set -euo pipefail
# TODO: create a path and/or zfs pool with a space in it to test if jlmkr.py still works properly when ran from inside
# mkdir -p "/tmp/path with space/jailmaker"
# TODO: many more test cases and checking if actual output (text, files on disk etc.) is correct instead of just a 0 exit code
2024-06-29 15:20:08 +00:00
# TODO: test jlmkr.py from inside another working directory, with a relative path to a config file to test if it uses the config file (and doesn't look for it relative to the jlmkr.py file itself)
2024-07-09 11:43:19 +00:00
./jlmkr.py create --start --config=./templates/docker/config test
./jlmkr.py exec test docker run hello-world