GreyBox-Test: Add Possibility to implement greybox tests directly in c
Add functionality to write GreyBox-Tests directly in C
to make testing of more complex data structures easier.
- Load the student solution as
.so
- Load expected functions in c and test them there. Test function expects no argument and returns empty string in case no errors occur and nonempty string otherwise.
- Load the test functions in python and run them from there and print error messages. all python functionality could happen automatically in case the expected function names and such are standardized e.g.
test_
+function name from structural tests requireed functions,.argtypes = None
and.restypes = char *
or a struct containing an array of errors and the size of the array.