add tests, initial protobuf and rabbitmq support, ...

This commit is contained in:
dragonmuffin 2025-03-04 22:03:00 +05:00
parent 54adfcee2a
commit 7510c2a7b3
13 changed files with 421 additions and 39 deletions

11
tests/Makefile Normal file
View file

@ -0,0 +1,11 @@
.PHONY: test_all
test: tests/resource_handler_test tests/transport_test
tests/resource_handler_test: resource_handler/resource_handler.h resource_handler/resource_handler.c tests/resource_handler_test.c
$(CC) -o $@ resource_handler/resource_handler.c tests/resource_handler_test.c -I . -g -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer
tests/transport_test: transport/transport.c transport/transport.h transport/utils.c tests/transport_test.c
$(CC) -o $@ gen/runner/v1/runner.pb-c.c tests/transport_test.c -I . -I gen -g -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -lrabbitmq -lprotobuf-c
test_all:
echo 1