jailmaker/test/test.sh

15 lines
717 B
Bash
Raw 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 03:05:53 +00:00
./jlmkr.py create --start --config=./templates/docker/config test
2024-07-09 11:00:34 +00:00
./jlmkr.py exec test journalctl
./jlmkr.py exec test systemctl status dockerd
2024-07-09 03:05:53 +00:00
./jlmkr.py exec test docker run hello-world