Skip to content

Commit

Permalink
WIP - C unit testing stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
justinethier committed Jan 18, 2024
1 parent 3b921e7 commit 5defc8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
7 changes: 7 additions & 0 deletions test-lib.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>
#include "include/cyclone/types.h"
#include "include/cyclone/runtime.h"

void main(){
printf("TODO %p\n", boolean_f);
}

0 comments on commit 5defc8d

Please sign in to comment.