Skip to content

Commit

Permalink
start to introduce DHQueue and most importantly introduce a minimal f…
Browse files Browse the repository at this point in the history
…ramework for C-level tests
  • Loading branch information
antocuni committed Feb 26, 2021
1 parent e2fb0ec commit 72c3b52
Show file tree
Hide file tree
Showing 7 changed files with 1,845 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -16,6 +16,8 @@ __pycache__/

# C extensions
*.so
*.o
c_test/test_debug_handles

# Distribution / packaging
.Python
Expand Down
13 changes: 13 additions & 0 deletions c_test/Makefile
@@ -0,0 +1,13 @@
CC = gcc
INCLUDE=-I.. -I../hpy/devel/include -I../hpy/debug/src/include
CFLAGS = -O0 -UNDEBUG -g -Wall -Werror -Wfatal-errors $(INCLUDE) -DHPY_UNIVERSAL_ABI

test: test_debug_handles
./test_debug_handles

test_debug_handles: test_debug_handles.o ../hpy/debug/src/dhqueue.o
$(CC) -o $@ $^

%.o : %.c
$(CC) -c $(CFLAGS) $< -o $@

0 comments on commit 72c3b52

Please sign in to comment.