Skip to content

Commit

Permalink
create math dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-bloch committed Jul 14, 2023
1 parent 8be8ab0 commit 4474cb6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ $(eval $(call add_test_libc,misc))
$(eval $(call add_test_libc,stdio))
$(eval $(call add_test_libc,stdlib))
$(eval $(call add_test_libc,string))
$(eval $(call add_test_libc,math))
16 changes: 16 additions & 0 deletions libc/misc/math.c → libc/math/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,3 +1225,19 @@ TEST_GROUP_RUNNER(math_other)
RUN_TEST_CASE(math_other, floor_basic);
RUN_TEST_CASE(math_other, floor_special_cond);
}


void runner(void)
{
RUN_TEST_GROUP(math_mod);
RUN_TEST_GROUP(math_trig);
RUN_TEST_GROUP(math_other);
}


int main(int argc, char *argv[])
{
UnityMain(argc, (const char **)argv, runner);

return 0;
}
3 changes: 0 additions & 3 deletions libc/misc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ void runner(void)
RUN_TEST_GROUP(stat_mode);
RUN_TEST_GROUP(stat_nlink_size_blk_tim);
RUN_TEST_GROUP(stat_errno);
RUN_TEST_GROUP(math_mod);
RUN_TEST_GROUP(math_trig);
RUN_TEST_GROUP(math_other);
}


Expand Down
5 changes: 5 additions & 0 deletions libc/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ test:
execute: test-libc-string
targets:
include: [host-generic-pc]

- name: math
execute: test-libc-math
targets:
include: [host-generic-pc]

0 comments on commit 4474cb6

Please sign in to comment.