File tree 1 file changed +7
-17
lines changed
1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change 5
5
# `compile-test` is special. `kcov` does not work directly on it so these files
6
6
# are compiled manually.
7
7
8
- tests=(
9
- camel_case
10
- cc_seme
11
- consts
12
- dogfood
13
- issue_825
14
- matches
15
- trim_multiline
16
- used_underscore_binding_macro
17
- versioncheck
18
- )
8
+ tests=$( find tests/ -maxdepth 1 -name ' *.rs' ! -name compile-test.rs -exec basename {} .rs \; )
19
9
tmpdir=$( mktemp -d)
20
10
21
11
cargo test --no-run --verbose
22
12
23
- for t in " ${ tests[@]} " ; do
13
+ for t in $ tests; do
24
14
kcov \
25
15
--verify \
26
- --include-path=" $( pwd) /src" , " $( pwd) /clippy_lints/src" \
16
+ --include-path=" $( pwd) /src, $( pwd) /clippy_lints/src" \
27
17
" $tmpdir /$t " \
28
18
cargo test --test " $t "
29
19
done
30
20
31
21
for t in ./tests/compile-fail/* .rs; do
32
22
kcov \
33
23
--verify \
34
- --include-path=" $( pwd) /src" , " $( pwd) /clippy_lints/src" \
35
- " $tmpdir /compile-fail-$( basename $t ) " \
24
+ --include-path=" $( pwd) /src, $( pwd) /clippy_lints/src" \
25
+ " $tmpdir /compile-fail-$( basename " $t " ) " \
36
26
cargo run -- -L target/debug -L target/debug/deps -Z no-trans " $t "
37
27
done
38
28
39
29
for t in ./tests/run-pass/* .rs; do
40
30
kcov \
41
31
--verify \
42
- --include-path=" $( pwd) /src" , " $( pwd) /clippy_lints/src" \
43
- " $tmpdir /run-pass-$( basename $t ) " \
32
+ --include-path=" $( pwd) /src, $( pwd) /clippy_lints/src" \
33
+ " $tmpdir /run-pass-$( basename " $t " ) " \
44
34
cargo run -- -L target/debug -L target/debug/deps -Z no-trans " $t "
45
35
done
46
36
You can’t perform that action at this time.
0 commit comments