pan/bi: Add packing unit test group

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
Alyssa Rosenzweig 2020-12-29 10:35:11 -05:00 committed by Marge Bot
parent 4379f7bad2
commit 80157fac68
3 changed files with 10 additions and 0 deletions

View file

@ -939,3 +939,11 @@ bi_pack(bi_context *ctx, struct util_dynarray *emission)
}
}
}
#ifndef NDEBUG
int bi_test_packing(void)
{
return 0;
}
#endif

View file

@ -123,6 +123,7 @@ bi_tests()
{
#ifndef NDEBUG
bi_test_scheduler();
bi_test_packing();
printf("Pass.\n");
return 0;
#else

View file

@ -724,6 +724,7 @@ void bi_register_allocate(bi_context *ctx);
/* Test suite */
int bi_test_scheduler(void);
int bi_test_packing(void);
bi_clause *
bi_singleton(void *memctx, bi_instr *ins,