Made it so that tests can be run on their own, independent of a symbolic executor. This will open up libFuzzer support, and concrete execution of solved-for test case inputs. Removed all stuff related to sections. Made tests get registered via initializers. Working on exposing the API functions to be hooked by Manticore via a special system call with addres 0x41414141. Split the Angr version out into the mctest-angr binary, and going to try to make the mctest binary use Manticore.
This commit is contained in:
@@ -18,8 +18,7 @@
|
||||
|
||||
using namespace mctest;
|
||||
|
||||
__attribute__((noinline))
|
||||
int add(int x, int y) {
|
||||
MCTEST_NOINLINE int add(int x, int y) {
|
||||
return x + y;
|
||||
}
|
||||
|
||||
@@ -28,3 +27,7 @@ McTest_EntryPoint(AdditionIsCommutative) {
|
||||
McTest_Assert(add(x, y) == add(y, x));
|
||||
});
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
return McTest_Run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user