From 5defc8d8a1c56f2e3e97c5647ff414cba20c39e1 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 17 Jan 2024 19:55:02 -0800 Subject: [PATCH] WIP - C unit testing stubs --- Makefile | 4 ++++ test-lib.c | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 test-lib.c diff --git a/Makefile b/Makefile index 61bac1a1..c66c643b 100644 --- a/Makefile +++ b/Makefile @@ -342,3 +342,7 @@ install-bin : cyclone icyc $(MKDIR) $(DESTDIR)$(BINDIR) $(INSTALL) -m0755 cyclone $(DESTDIR)$(BINDIR)/ $(INSTALL) -m0755 icyc $(DESTDIR)$(BINDIR)/ + +# TODO: is this linking in local lcyclone or the system one???? +test-lib: test-lib.c + $(CC) test-lib.c -o test-lib -L . $(LIBS) diff --git a/test-lib.c b/test-lib.c new file mode 100644 index 00000000..7173254e --- /dev/null +++ b/test-lib.c @@ -0,0 +1,7 @@ +#include +#include "include/cyclone/types.h" +#include "include/cyclone/runtime.h" + +void main(){ + printf("TODO %p\n", boolean_f); +}