libsepol/tests: add ebitmap tests

Preparation for several ebitmap related optimizations.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Christian Göttsche 2022-07-19 17:30:38 +02:00 committed by James Carter
parent 65b3f695be
commit 490cd409e3
3 changed files with 1060 additions and 0 deletions

View File

@ -19,6 +19,7 @@
*/
#include "test-cond.h"
#include "test-ebitmap.h"
#include "test-linker.h"
#include "test-expander.h"
#include "test-deps.h"
@ -64,6 +65,7 @@ static bool do_tests(int interactive, int verbose)
if (CUE_SUCCESS != CU_initialize_registry())
return CU_get_error();
DECLARE_SUITE(ebitmap);
DECLARE_SUITE(cond);
DECLARE_SUITE(linker);
DECLARE_SUITE(expander);

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
#ifndef TEST_EBITMAP_H__
#define TEST_EBITMAP_H__
#include <CUnit/Basic.h>
int ebitmap_test_init(void);
int ebitmap_test_cleanup(void);
int ebitmap_add_tests(CU_pSuite suite);
#endif /* TEST_EBITMAP_H__ */