| ... | ... | @@ -10,38 +10,21 @@ migrated from https://git.ligo.org/CW/software/lalsuite/-/wikis/manually-run-tes |
|
|
|
With the special LALPulsar "test harness", it's not possible to just do for example "./testComputeFstatistic_v2.sh" in the source directory. But don't worry, the special way isn't actually any more difficult, but more general and cleaner!
|
|
|
|
|
|
|
|
Here's a first example of how to run a single test:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ cd lalpulsar/bin/Fstatistic/
|
|
|
|
$ make check TESTS=testComputeFstatistic_v2
|
|
|
|
...
|
|
|
|
make[3]: Entering directory '/home/karl/Software/lalsuite/lalapps/src/pulsar/Fstatistic'
|
|
|
|
PASS: testComputeFstatistic_v2.sh
|
|
|
|
============================================================================
|
|
|
|
Testsuite summary for LALApps 6.25.1.1
|
|
|
|
============================================================================
|
|
|
|
# TOTAL: 1
|
|
|
|
# PASS: 1
|
|
|
|
...
|
|
|
|
cd lalpulsar/bin/Fstatistic/
|
|
|
|
make check TESTS=testComputeFstatistic_v2
|
|
|
|
```
|
|
|
|
|
|
|
|
## run multiple tests
|
|
|
|
|
|
|
|
You can do the same thing to run multiple tests:
|
|
|
|
```
|
|
|
|
cd lalpulsar/bin/Fstatistic/
|
|
|
|
$ make check TESTS='testComputeFstatistic_v2 testComputeFstatistic_v2_resamp'
|
|
|
|
...
|
|
|
|
make[3]: Entering directory '/home/karl/Software/lalsuite/lalapps/src/pulsar/Fstatistic'
|
|
|
|
PASS: testComputeFstatistic_v2.sh
|
|
|
|
PASS: testComputeFstatistic_v2_resamp.sh
|
|
|
|
============================================================================
|
|
|
|
Testsuite summary for LALApps 6.25.1.1
|
|
|
|
============================================================================
|
|
|
|
# TOTAL: 2
|
|
|
|
# PASS: 2
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that you **have** to do it like this: `cd` into the directory containing the test first. If you run from a different directory, you will get a "`failed to create`
|
|
|
|
|
|
|
|
## verbose output
|
|
|
|
|
|
|
|
Useful flags include:
|
| ... | ... | |
| ... | ... | |