-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunt.toml
39 lines (34 loc) · 986 Bytes
/
runt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Version of runt to be used with this configuration.
ver = "0.3.2"
# Configuration for each test suite. File paths are relative to the folder
# containing runt.toml.
[[tests]]
# Optional name for this test suite.
name = "Cat tests"
# Test paths can be globs or exact.
paths = [ "cat-test/*.txt" ]
# Command to run on each test file. {} is replaced with input name.
cmd = "sleep 1; cat {}"
# (Optional) Directory to store the generated .expect files.
expect_dir = "cat-out/"
# (Optional) Timeout for tests in seconds. Defaults to 1200 seconds.
timeout = 1200
[[tests]]
name = "Ls test"
paths = [ "ls-test/input.txt" ]
cmd = "sleep 4; cat {} | ls"
[[tests]]
name = "Skip test"
paths = [ "skip-test/input.txt" ]
cmd = "sleep 4; cat {} | ls"
[[tests]]
name = "Error test"
paths = ["error-test/input.txt"]
cmd = "sleep 3; echo error message 1>&2 && exit 1"
[[tests]]
name = "Timeout test"
cmd = """
sleep 100
"""
paths = ["timeout-test/input.txt"]
timeout = 2 # Timeout of two seconds