Skip to content

Commit

Permalink
bitmap: new unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
regeciovad committed Jun 9, 2022
1 parent 87875dc commit 01361b3
Show file tree
Hide file tree
Showing 5 changed files with 793 additions and 200 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ test_version_SOURCES = tests/test-version.c tests/util.c
test_version_LDADD = libyara/.libs/libyara.a
test_api_SOURCES = tests/test-api.c tests/util.c
test_api_LDADD = libyara/.libs/libyara.a
test_bitmap_SOURCES = tests/test-bitmap.c tests/util.c
test_bitmap_LDADD = libyara/.libs/libyara.a
test_bitmask_SOURCES = tests/test-bitmask.c tests/util.c
test_bitmask_LDADD = libyara/.libs/libyara.a
test_math_SOURCES = tests/test-math.c tests/util.c
Expand All @@ -105,6 +107,7 @@ check_PROGRAMS = \
test-pe \
test-elf \
test-version \
test-bitmap \
test-bitmask \
test-math \
test-stack \
Expand Down
11 changes: 11 additions & 0 deletions tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ cc_test(
],
)

cc_test(
name = "test_bitmap",
srcs = ["test-bitmap.c"],
copts = COPTS,
linkstatic = True,
deps = [
":util",
"@//:libyara",
],
)

cc_test(
name = "test_bitmask",
srcs = ["test-bitmask.c"],
Expand Down

0 comments on commit 01361b3

Please sign in to comment.