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:
Peter Goodman
2017-10-28 19:13:59 -04:00
parent 0d336bd4d6
commit 89da3e8e94
9 changed files with 525 additions and 258 deletions

View File

@@ -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();
}