πŸ”¬Radikant-Probe-C

simple and generic testing

PROBE

Radikant Probe is a simple batch testing tool that i wrote to be used accros Radikant Libraries specifically to perform regression and batch testing. It executes isolated child processes on POSIX systems, to safely detect and report fatal crashes like segmentation faults without terminating the main test runner. It has a rudimentary memory leak indicator that can hint if the software under test might leak memory. You can define and register multiple test suites and run them in aggregation with runtime verbosity control. Tests are passed and registered with function pointers.

FileEditViewProject
β–Ά
β– 
test_x448.c β€” X448 Cryptography Test Suite
int main(void) {
r_set_global_verbosity(R_VERBOSE);
enable_memleak_detection(&x448_suite);
add_test(&x448_suite, test_x448_keygen_exchange, "Keygen & Exchange", "RFC 7748");
add_test(&x448_suite, test_x448_interop_openssl, "OpenSSL Interop", "Interop");
add_test(&x448_suite, test_x448_rfc7748_vectors, "RFC 7748 Vectors", "RFC 7748");
add_test(&x448_suite, test_x448_monte_carlo_1k, "Monte Carlo 1k", "RFC 7748");
register_suite(&x448_suite);
bool success = run_all_suites();
free_suite(&x448_suite);
return success ? 0 : 1;
}
RADIKANT TEST RUNNER | Network Performance Suite | RFC-2544 ---------------------------------------------------------------- RUNNING TEST: Latency Check Name: Latency Check ID: 0 Group: 0 Standard: RFC-2544 ---------------------------------------------------------------- mem: 917504 : [DEBUG] Pinging loopback interface... [INFO] Latency: 0.04ms mem: 983040 : RUNNING TEST: Throughput Analysis ---------------------------------------------------------------- Name: Throughput Analysis ID: 1 Group: 0 Standard: RFC-2544 ---------------------------------------------------------------- mem: 884736 : [DEBUG] Measuring throughput... [INFO] 10 Gbps link detected mem: 950272 : RUNNING TEST: Packet Loss Ratio ---------------------------------------------------------------- Name: Packet Loss Ratio ID: 2 Group: 0 Standard: RFC-2544 ---------------------------------------------------------------- mem: 884736 : [DEBUG] Injecting packet loss... [INFO] 0.001% loss rate observed mem: 950272 : FINAL SUMMARY REPORT | Network Performance Suite | RFC-2544 |------------------------------------------------------------------------------| | S | M | Ξ¨ | ID | Status | Name | Standard | |---+---+---+------+--------+--------------------------------+-----------------| | βœ“ | βœ“ | βœ“ | 0 | PASS | Latency Check | RFC-2544 | | βœ“ | βœ“ | βœ“ | 1 | PASS | Throughput Analysis | RFC-2544 | | βœ“ | βœ“ | βœ“ | 2 | PASS | Packet Loss Ratio | RFC-2544 | ================================================================================ SUMMARY: 3 Tests Run | 3 Passed | 0 Failed ================================================================================