Skip to content

Commit

Permalink
Merge pull request #34 from jeromekelleher/malloc-tests
Browse files Browse the repository at this point in the history
Tests for malloc failures.
  • Loading branch information
jeromekelleher authored May 6, 2018
2 parents 1430f25 + faffa89 commit 9616825
Show file tree
Hide file tree
Showing 6 changed files with 817 additions and 10 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,21 @@ jobs:
name: Run C tests
command: |
./build-gcc/tests
./build-gcc/malloc_tests
./build-gcc/io_tests
- run:
name: Valgrind for C tests.
command: |
valgrind --leak-check=full --error-exitcode=1 ./build-gcc/tests
valgrind --leak-check=full --error-exitcode=1 ./build-gcc/malloc_tests
valgrind --leak-check=full --error-exitcode=1 ./build-gcc/io_tests
- run:
name: Run gcov & upload coverage.
command: |
gcov -pb -o ./python/build/temp.linux*/ python/_kastoremodule.c
find ./build-gcc -type f -name '*.gcno' -exec gcov -pb -o ./build-gcc/tests@exe {} +
gcov -pb ./build-gcc/tests@exe/kastore.c.gcno \
./build-gcc/malloc_tests@exe/kastore.c.gcno \
./build-gcc/io_tests@exe/kastore.c.gcno
codecov -X gcov -F C
- run:
name: Compile C tests under clang
Expand All @@ -56,3 +62,5 @@ jobs:
name: Run clang C tests
command: |
./build-clang/tests
./build-clang/malloc_tests
./build-clang/io_tests
Loading

0 comments on commit 9616825

Please sign in to comment.