blob: e7b568cfa217463129eb80a87a6fbb7504c5e556 (
plain)
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
|
# Test documentation
### Test parsing
All the tests templates within [releng-scripts-folder]/templates/tests/ are parsed by the tool and can be added to a test plan.
### Generate test plans
Use the create-jobs.py script to generate test plans. Use the `--test` parameter with the
test name or `--test all` to run all tests.
To get the list of test names use: ```$ ./utils/create-jobs.py --help```
_Example output:_
```
--test [{smoke,health-test,yocto-ptest,all} [{smoke,health-test,yocto-ptest,all} ...]]
add these test to the job (default: [])
```
_Example command:_
```
./utils/create-jobs.py --machine raspberrypi3 --test all
./utils/create-jobs.py --machine raspberrypi3 --test {smoke,health-test}
```
### Add test definition
To create new tests create a new jinja2 template file within the tests folder containing the tests definitions.\
A test example is provided in the doc/ folder pointing to the remote
test definition repository: [https://git.automotivelinux.org/src/qa-testdefinitions/tree/](qa-testdefinitions).
_Example:_\
Add new test definition:\
`$ cp doc/test_remote_scripts.jinja2 templates/tests/`\
Generate test job from the new test definition:\
`$ ./utils/create-jobs.py raspberrypi3 --test test_remote_scripts`
|