Files
ds4/tests/ds4_agent_test.c
T
antirez 7624c68795 Add ds4-agent edit regression tests
Add a small ds4-agent unit-test harness for anchored [upto] edits and include it in make test so regressions in old-text matching are caught by default.
2026-06-10 00:08:36 +02:00

15 lines
332 B
C

#define DS4_AGENT_TEST
#define DS4_AGENT_TEST_NO_MAIN
#include "../ds4_agent.c"
int main(void) {
ds4_agent_unit_tests_run();
if (agent_test_failures) {
fprintf(stderr, "ds4-agent tests: %d failure(s)\n",
agent_test_failures);
return 1;
}
puts("ds4-agent tests: ok");
return 0;
}