| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 21-Aug-2025 | - | ||||
| tools/pty-server/ | 21-Aug-2025 | - | ||||
| README.md | A D | 21-Aug-2025 | 962 | 30 | 22 | |
| config.json | A D | 21-Aug-2025 | 2.6 KiB | 171 | 170 | |
| console.bats | A D | 21-Aug-2025 | 1 KiB | 44 | 35 | |
| create.bats | A D | 21-Aug-2025 | 2.4 KiB | 82 | 69 | |
| exec.bats | A D | 21-Aug-2025 | 796 | 32 | 24 | |
| helpers.bash | A D | 21-Aug-2025 | 1.4 KiB | 50 | 36 | |
| mount.bats | A D | 21-Aug-2025 | 3.4 KiB | 107 | 91 | |
| namespace.bats | A D | 21-Aug-2025 | 1.4 KiB | 51 | 42 |
README.md
1# Integration Tests 2 3ozonec uses [bats (Bash Automated Testing System)](https://github.com/bats-core/bats-core) framework to run 4integration tests written in *bash*. 5 6## Before running tests 7 8Install [bats (Bash Automated Testing System)](https://github.com/bats-core/bats-core#installing-bats-from-source) from source: 9``` 10$ git clone https://github.com/bats-core/bats-core.git 11$ cd bats-core 12$ ./install.sh /usr/local 13``` 14 15*bundle* directory which includes *config.json* and *rootfs* directory may be required to archived to bundle.tar.gz under the directory the test script belongs to. And *jq* may also be needed to modify json file in tests. 16 17## Running tests 18 19You can run tests using bats directly. For example: 20``` 21bats ./ 22``` 23Or you can just run a single test file. For example: 24``` 25bats create.bats 26``` 27 28## Writing tests 29 30Please refer to [bats (Writing tests)](https://bats-core.readthedocs.io/en/stable/writing-tests.html).