From 84c1df59c4857eeaa0d209ab08f983fac20d38db Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Wed, 16 Apr 2025 20:12:57 +0200 Subject: Testing --- run_tests.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 run_tests.c (limited to 'run_tests.c') diff --git a/run_tests.c b/run_tests.c new file mode 100755 index 0000000..38f6461 --- /dev/null +++ b/run_tests.c @@ -0,0 +1,37 @@ +#if 0 /* +SRC=${0##*./} +BIN=${SRC%.*} +gcc \ + -Wall -Wextra -Werror -pedantic \ + -Wno-missing-braces \ + -Wno-old-style-declaration \ + -Wno-overlength-strings \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-unused-but-set-variable \ + -Wno-unused-function \ + -O3 -D NDEBUG \ + -fsanitize=undefined,address,leak \ + -lm \ + -o $BIN $SRC && \ + ./$BIN $@ +STATUS=$? +rm -f $BIN +exit $STATUS # */ +#endif + +#ifndef EVERY_TEST_SUITE +#define EVERY_TEST_SUITE +#endif + +#define ENABLE_X11 0 +#define ENABLE_WAYLAND 0 +#define ENABLE_ALSA 0 + +#include "reduced_system_layer.c" +#include "graphics.c" +#include "stackless_coroutine.c" + +i32 main(i32 argc, c8 **argv) { + return run_tests(argc, argv); +} -- cgit v1.2.3