File: README

package info (click to toggle)
snapd 2.71-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,536 kB
  • sloc: ansic: 16,114; sh: 16,105; python: 9,941; makefile: 1,890; exp: 190; awk: 40; xml: 22
file content (34 lines) | stat: -rw-r--r-- 1,163 bytes parent folder | download | duplicates (2)
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
This directory include the rules files used to determine which
tests have to be executed based on a list of changed files.

Each rules file is used depending on the system being evaluated.
This is an example of rules:

rules:
  RULE_NAME_1:
    from: [FROM_LIST]
    to: [TO_LIST]

  RULE_NAME_2:
    ...

where:
RULE_NAME_1: is a descriptive name of the specific rule
FROM_LIST: is a list of python regex used to determine if a file matches this rule
TO_LIST: is a list of spread tests to run in case a change matches a regex from the FROM_LIST

The spread-filter tool, based on the list of changes, determine which tests need to
be executed. For each changed file, the spread-filter will use the TO_LIST for the first rule
matching it. 

Finally, the spread-filter calculates the union of all the tests and prints all the tests to
be executed.

In case the FROM_LIST is [.*], this means that any change match this rule. This
can be used for example as the last rule to make sure that the changes which didn't match any
rule are matched by the last one. 

In case the TO_LIST includes the value $SELF, means that in case of a test, just
this test is executed.