Commit 9a8db52
committed
Merge #1582: cmake, test: Add
87384f5 cmake, test: Add `secp256k1_` prefix to test names (Hennadii Stepanov)
Pull request description:
This PR improves regex matching options when using `ctest` in downstream projects, such as Bitcoin Core.
For instance, a downstream project users can filter their tests like that:
```
ctest --tests-regex "secp256k1"
```
or
```
ctest --exclude-regex "secp256k1"
```
A `ctest` log with this PR:
```
$ ctest --test-dir build -j 16
Internal ctest changing into directory: /home/hebasto/git/secp256k1/secp256k1/build
Test project /home/hebasto/git/secp256k1/secp256k1/build
Start 1: secp256k1_noverify_tests
Start 2: secp256k1_tests
Start 3: secp256k1_exhaustive_tests
Start 4: secp256k1_ecdsa_example
Start 5: secp256k1_ecdh_example
Start 6: secp256k1_schnorr_example
Start 7: secp256k1_ellswift_example
Start 8: secp256k1_musig_example
1/8 Test #4: secp256k1_ecdsa_example .......... Passed 0.00 sec
2/8 Test #5: secp256k1_ecdh_example ........... Passed 0.00 sec
3/8 Test #6: secp256k1_schnorr_example ........ Passed 0.00 sec
4/8 Test #7: secp256k1_ellswift_example ....... Passed 0.00 sec
5/8 Test #8: secp256k1_musig_example .......... Passed 0.00 sec
6/8 Test #3: secp256k1_exhaustive_tests ....... Passed 6.19 sec
7/8 Test #1: secp256k1_noverify_tests ......... Passed 38.83 sec
8/8 Test #2: secp256k1_tests .................. Passed 91.66 sec
100% tests passed, 0 tests failed out of 8
Total Test time (real) = 91.67 sec
```
ACKs for top commit:
theuni:
utACK 87384f5
real-or-random:
utACK 87384f5
Tree-SHA512: d8e46558cf58c9c660544b7bdfed24c991eb3e120b6511aa3968f509190130e498749a3c4dbabc87a7f22f0aa0056c6bcd3fc6c44f5eb131588945d593546840secp256k1_ prefix to test names2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments