Add tests for the shell commander

This commit is contained in:
2024-06-17 00:15:10 +01:00
parent 802b70f5ee
commit 8a91a0ec6b
3 changed files with 82 additions and 5 deletions

View File

@@ -1,13 +1,16 @@
#include "test_arena.h"
#include "test_shell_commander.h"
#include "tester.h"
#include <stdlib.h>
int main(void) {
wapp_tester_run_tests(test_arena_init,
test_arena_init_succeeds_when_reserving_very_large_size,
test_arena_alloc_succeeds_when_within_capacity,
test_arena_alloc_fails_when_over_capacity,
test_arena_clear, test_arena_destroy);
wapp_tester_run_tests(
test_arena_init, test_arena_init_succeeds_when_reserving_very_large_size,
test_arena_alloc_succeeds_when_within_capacity,
test_arena_alloc_fails_when_over_capacity, test_arena_clear,
test_arena_destroy, test_commander_cmd_success,
test_commander_cmd_failure, test_commander_cmd_out_buf_success,
test_commander_cmd_out_buf_failure);
return EXIT_SUCCESS;
}