-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[runtime tests] add support for multiple expects
This extends the runtime test functionality to allow for multiple expects (EXPECT, EXPECT_NOT, EXPECT_JSON, etc...) and requires that they ALL pass for the test to pass. Example single expect failure: ``` [ FAILED ] basic.it only lists probes in the program Command: /home/parallels/Desktop/shared/repos/bpftrace/build/src/bpftrace -l -e 'kfunc:vmlinux:vfs_read { exit(); }' Expected no REGEX: kfunc:vmlinux:vfs_read Found: kfunc:vmlinux:vfs_read\n ``` Example multiple expect failures: ``` [ FAILED ] basic.it only lists probes in the program Command: /home/parallels/Desktop/shared/repos/bpftrace/build/src/bpftrace -l -e 'kfunc:vmlinux:vfs_read { exit(); }' Expected no REGEX: kfunc:vmlinux:vfs_read Found: kfunc:vmlinux:vfs_read\n Expected REGEX: kfunc:vmlinux:vfs_write Found: kfunc:vmlinux:vfs_read\n ```
- Loading branch information
Showing
4 changed files
with
69 additions
and
51 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
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