Skip to content

Commit

Permalink
cleaning: remove bench/
Browse files Browse the repository at this point in the history
move usable files to tests/
remove some
move the rest to old/
move bugs/ inside old/ too
  • Loading branch information
Antonin Reitz committed Oct 20, 2023
1 parent f258eaa commit 6bc8915
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 92 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,27 +89,27 @@ c/fatal_error.c \
c/memory.c

# test the allocator with a static binary
test-alloc0: verify extract
test-alloc: verify extract
$(CC) -O0 -g -DKRML_VERIFIED_UINT126 \
-I $(KRML_HOME)/include \
-I $(KRML_LIB)/dist/minimal -I dist \
-I $(STEEL_HOME)/include/steel \
-o bench/a.out \
-o a.out \
$(FILES) \
bench/test-alloc.c \
tests/test-alloc.c \
c/lib-alloc.c
./bench/a.out
test-alloc0bis: verify extract
./a.out
test-alloc2: verify extract
$(CC) -O0 -g -DKRML_VERIFIED_UINT128 \
-I $(KRML_HOME)/include \
-I $(KRML_LIB)/dist/minimal -I dist \
-I $(STEEL_HOME)/include/steel \
-pthread \
-o bench/a.out \
-o a.out \
$(FILES) \
bench/test-alloc2.c \
tests/test-alloc2.c \
c/lib-alloc.c
./bench/a.out
./a.out

lib: verify extract
mkdir -p out
Expand Down
23 changes: 0 additions & 23 deletions bench/bench.ml

This file was deleted.

6 changes: 0 additions & 6 deletions bench/bench.sh

This file was deleted.

41 changes: 0 additions & 41 deletions bench/main.cpp

This file was deleted.

13 changes: 0 additions & 13 deletions minibench.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/mimalloc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void calloc_overflow(void) {

void calloc0(void) {
char* ptr = calloc(0, 1000);
assert (ptr[15] == 0);
assert (ptr[13] == 0);
free(ptr);
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6bc8915

Please sign in to comment.