blockFile

Save data in chunked in blocks in a file for creating databases
git clone https://noulin.net/git/blockFile.git
Log | Files | Refs | LICENSE

commit 693d7a0b7c14f8d03ad979935a690caacc398238
parent 81fd68075b5397ddd05a23d325a04e096b2ef5f9
Author: Remy Noulin <loader2x@gmail.com>
Date:   Mon, 23 Dec 2019 17:35:49 +0100

update tests

package.yml        | 6 +++++-
testBlockFile.c    | 4 ++--
testBlockFile.sh   | 4 ++--
testBlockFileMem.c | 4 ++--
4 files changed, 11 insertions(+), 7 deletions(-)

Diffstat:
Mpackage.yml | 6+++++-
MtestBlockFile.c | 4++--
MtestBlockFile.sh | 4++--
MtestBlockFileMem.c | 4++--
4 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: blockFile - version: 0.0.8 + version: 0.0.9 description: Save data in chunked in blocks in a file for creating databases bin: ./blockFile.c repository: @@ -16,5 +16,9 @@ dependencies: lz4: "" testBin: ./testBlockFile.c + testCflags: -g3 -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra + testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic memcheckBin: ./testBlockFileMem.c memcheckCmd: "valgrind --leak-check=full --show-leak-kinds=all --suppressions=valgrindSuppressions.cfg" + memcheckCflags: -g3 -std=gnu11 -fPIC -pipe + memcheckLflags: -rdynamic diff --git a/testBlockFile.c b/testBlockFile.c @@ -153,7 +153,7 @@ START_TEST(removeT) freeO(&bf); // 3 free blocks - ck_assert_int_eq(fileSize("file.dbx"), 24); + ck_assert_int_eq(fileSize("file.dbx"), 12); END_TEST @@ -180,7 +180,7 @@ START_TEST(loadT) freeO(&bf); // 3 free blocks - ck_assert_int_eq(fileSize("file.dbx"), 24); + ck_assert_int_eq(fileSize("file.dbx"), 12); END_TEST diff --git a/testBlockFile.sh b/testBlockFile.sh @@ -1,5 +1,5 @@ spm test -cd ~/.sheepy/build/home/remy/git/sw/sheepyPackages/blockFile +cd ~/.sheepy/build/home/remy/git/sw/publicGits/blockFile/ gcov -b blockFile.c cd - -cp ~/.sheepy/build/home/remy/git/sw/sheepyPackages/blockFile/blockFile.c.gcov . +cp ~/.sheepy/build/home/remy/git/sw/publicGits/blockFile/blockFile.c.gcov . diff --git a/testBlockFileMem.c b/testBlockFileMem.c @@ -157,7 +157,7 @@ void removeT(void) { freeO(&bf); // 3 free blocks - ck_assert_int_eq(fileSize("file.dbx"), 24); + ck_assert_int_eq(fileSize("file.dbx"), 12); } @@ -184,7 +184,7 @@ void loadT(void) { freeO(&bf); // 3 free blocks - ck_assert_int_eq(fileSize("file.dbx"), 24); + ck_assert_int_eq(fileSize("file.dbx"), 12); }