• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

tools/pty-server/21-Aug-2025-

README.md A D21-Aug-2025962 3022

config.json A D21-Aug-20252.6 KiB171170

console.bats A D21-Aug-20251 KiB4435

create.bats A D21-Aug-20252.4 KiB8269

exec.bats A D21-Aug-2025796 3224

helpers.bash A D21-Aug-20251.4 KiB5036

mount.bats A D21-Aug-20253.4 KiB10791

namespace.bats A D21-Aug-20251.4 KiB5142

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).