File tree 8 files changed +13
-15
lines changed
8 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -371,3 +371,8 @@ function(add_libc_unittest target_name)
371
371
)
372
372
endif ()
373
373
endfunction (add_libc_unittest)
374
+
375
+ function (add_libc_testsuite suite_name)
376
+ add_custom_target (${suite_name} )
377
+ add_dependencies (check-libc ${suite_name} )
378
+ endfunction (add_libc_testsuite)
Original file line number Diff line number Diff line change 1
- add_custom_target (check_libc )
1
+ add_custom_target (check-libc )
2
2
3
3
add_subdirectory (config)
4
4
add_subdirectory (src)
Original file line number Diff line number Diff line change 1
- add_subdirectory (linux )
1
+ add_subdirectory (${LIBC_TARGET_OS} )
Original file line number Diff line number Diff line change 1
- add_custom_target (libc_linux_tests)
2
- add_dependencies (check_libc libc_linux_tests)
1
+ add_libc_testsuite(libc_linux_tests)
3
2
4
- add_subdirectory (x86_64 )
3
+ add_subdirectory (${LIBC_TARGET_MACHINE} )
Original file line number Diff line number Diff line change 1
- add_custom_target (libc_linux_x86_64_tests)
2
- add_dependencies (libc_linux_tests libc_linux_x86_64_tests)
3
-
4
1
add_libc_unittest(
5
2
libc_linux_x86_64_syscall_unittest
6
- SUITE libc_linux_x86_64_tests
3
+ SUITE libc_linux_tests
7
4
SRCS syscall_test.cpp
8
5
DEPENDS
9
6
syscall_impl_h
Original file line number Diff line number Diff line change 1
- add_custom_target (libc_errno_unittests)
2
- add_dependencies (check_libc libc_errno_unittests)
1
+ add_libc_testsuite(libc_errno_unittests)
3
2
4
3
add_libc_unittest(
5
4
errno_test
Original file line number Diff line number Diff line change 1
- add_custom_target (libc_string_unittests)
2
- add_dependencies (check_libc libc_string_unittests)
1
+ add_libc_testsuite(libc_string_unittests)
3
2
4
3
add_libc_unittest(
5
4
strcat_test
Original file line number Diff line number Diff line change 1
- add_custom_target (libc_sys_mman_unittests)
2
- add_dependencies (check_libc libc_sys_mman_unittests)
1
+ add_libc_testsuite(libc_sys_mman_unittests)
3
2
4
3
add_libc_unittest(
5
4
mmap_test
You can’t perform that action at this time.
0 commit comments