Move path utils to os, fix bugs with it and write tests

This commit is contained in:
2024-10-06 19:28:34 +01:00
parent 4af4b39d6f
commit 22ece7215a
5 changed files with 227 additions and 35 deletions

View File

@@ -1,15 +1,17 @@
#include "test_allocator.h"
#include "test_arena.h"
#include "test_cpath.h"
#include "test_shell_commander.h"
#include "tester.h"
#include <stdlib.h>
int main(void) {
wapp_tester_run_tests(test_libc_allocator, test_arena_allocator, 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_realloc_bigger_size, test_arena_realloc_smaller_size, test_arena_clear,
test_arena_destroy, test_commander_cmd_success, test_commander_cmd_failure,
test_arena_init_succeeds_when_reserving_very_large_size, test_cpath_join_path,
test_cpath_dirname, test_cpath_dirup, test_arena_alloc_succeeds_when_within_capacity,
test_arena_alloc_fails_when_over_capacity, test_arena_realloc_bigger_size,
test_arena_realloc_smaller_size, 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;