-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve testing framework #286
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
9efbb91
Convert two_keys_minimal to use criterion
rinon d4449db
Remove function_allowlist test
rinon 91eba1f
Convert should_segfault to Criterion
sim-immunant 809316a
Convert ro_sharing test to Criterion
sim-immunant 85ea82d
Convert global_fn_ptr to Criterion
sim-immunant 49fbe87
Convert minimal
sim-immunant 5418287
Convert mmap_loop
sim-immunant 1e38c48
Convert permissive_mode
sim-immunant 1737964
Convert protected_threads
sim-immunant 474f3e8
Convert recursion
sim-immunant 510cd2b
Convert rewrite_fn_ptr_eq
sim-immunant d4663ff
Convert rewrite_macros to Criterion
sim-immunant d167336
PR feedback
sim-immunant f648db4
Convert shared_data
sim-immunant 7f82f6e
Fix sighandler test
sim-immunant 8f5282b
Convert simple1
sim-immunant c36b904
Structs test
sim-immunant 96a352d
Convert threads test to Criterion
sim-immunant 90d1251
Convert tls_protected to Criterion
sim-immunant 6f137c5
trusted_direct
sim-immunant 2a2f37d
trusted_indirect
sim-immunant 7cc669e
two_shared_ranged
sim-immunant b56daec
untrusted_indirect
sim-immunant 0c3f151
read_config
sim-immunant 1fc0e8a
header_includes
sim-immunant 247eb2e
heap_two_keys
sim-immunant 40f076b
macro_attr
sim-immunant 3fe7a35
Replace some error and quit with cr_fatal
sim-immunant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
rewriter/tests/function_allowlist/Output/function_allowlist.out
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ define_shared_lib( | |
define_test( | ||
SRCS main.c | ||
NEEDS_LD_WRAP | ||
CRITERION_TEST | ||
) | ||
|
||
# Build the wrapper lib | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ define_shared_lib( | |
define_test( | ||
SRCS main.c | ||
NEEDS_LD_WRAP | ||
CRITERION_TEST | ||
) | ||
|
||
# Build the wrapper lib | ||
|
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ define_test( | |
PKEY 1 | ||
NEEDS_LD_WRAP | ||
INCLUDE_DIR include/plugin | ||
CRITERION_TEST | ||
) | ||
|
||
define_ia2_wrapper() |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ define_shared_lib( | |
define_test( | ||
SRCS main.c | ||
NEEDS_LD_WRAP | ||
CRITERION_TEST | ||
) | ||
|
||
# Build the wrapper lib | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think we can remove the comment on the printf and the TODO We previously treated the
.rodata
sections (where string literals are placed) as secret, but we have since moved on to only treating writable sections that way.