-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to read lists of tests from file.
``` -i FILE, --tests-file=FILE Loads the list of tests to execute from a file. Each line in the file is interpreted as the name of a test, or a group of tests, to execute, just like the tests would be specified on the command line. Empty lines and lines starting with ``#`` are ignored. (This format is compatible with that of the ``btest`` `StateFile <state_file_>`_.) ```
- Loading branch information
Showing
4 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
t1 ... ok | ||
t2 ... failed | ||
t3 ... ok | ||
1 of 3 tests failed | ||
t1 ... ok | ||
t3 ... ok | ||
all 2 tests successful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# %TEST-EXEC-FAIL: btest t1 t2 t3 >>output 2>&1 | ||
# %TEST-EXEC: btest -i my-tests >>output 2>&1 | ||
# %TEST-EXEC: btest-diff output | ||
|
||
%TEST-START-FILE t1 | ||
@TEST-EXEC: exit 0 | ||
%TEST-END-FILE | ||
|
||
%TEST-START-FILE t2 | ||
@TEST-EXEC: exit 1 | ||
%TEST-END-FILE | ||
|
||
%TEST-START-FILE t3 | ||
@TEST-EXEC: exit 0 | ||
%TEST-END-FILE | ||
|
||
%TEST-START-FILE my-tests | ||
t1 | ||
t3 | ||
%TEST-END-FILE |