/picolibc-3.7.0-3.6.0/test/ |
D | testcases.c | 3 * as a part of the printf test suite developed by 75 result |= test(__LINE__, "0", "%.7g", 0.0); 76 result |= test(__LINE__, "0.33", "%.*f", 2, 0.33333333); 79 result |= test(__LINE__, "foo", "%.3s", "foobar"); 80 result |= test(__LINE__, " 00004", "%10.5d", 4); 81 result |= test(__LINE__, " 42", "% d", 42); 83 result |= test(__LINE__, "-42", "% d", -42); 85 result |= test(__LINE__, " 42", "% 5d", 42); 86 result |= test(__LINE__, " -42", "% 5d", -42); 87 result |= test(__LINE__, " 42", "% 15d", 42); [all …]
|
D | math_errhandling_tests.c | 83 #define TEST(n,v,ex,er) { .func = makemathname(cat2(test_, n)), .name = str(n), .value = (v), .exce… macro 791 TEST(acos_2, (FLOAT_T) NAN, FE_INVALID, EDOM), 792 TEST(acos_qnan, (FLOAT_T) NAN, 0, 0), 793 TEST(acos_snan, (FLOAT_T) NAN, FE_INVALID, 0), 794 TEST(acos_inf, (FLOAT_T) NAN, FE_INVALID, EDOM), 795 TEST(acos_minf, (FLOAT_T) NAN, FE_INVALID, EDOM), 797 TEST(acosh_half, (FLOAT_T)NAN, FE_INVALID, EDOM), 798 TEST(acosh_qnan, (FLOAT_T)NAN, 0, 0), 799 TEST(acosh_snan, (FLOAT_T)NAN, FE_INVALID, 0), 800 TEST(acosh_inf, (FLOAT_T)INFINITY, 0, 0), [all …]
|
D | meson.build | 67 test(t1_name, 84 test(t1_name, 101 test(t1_name, 118 test(t1_name, 135 test(t1_name, 152 test(t1_name, 169 test(t1_name, 186 test(t1_name, 203 test(t1_name, 227 test(t1_name, [all …]
|
D | CMakeLists.txt | 54 test-strtod 55 test-strchr 56 test-memset 57 test-put 58 test-efcvt 59 test-fma 65 test-except 68 function(picolibc_test test) 69 add_executable(${test} ${test}.c ${ARGN}) 71 target_link_libraries(${test} LINK_PUBLIC ${PICOLIBC_TEST_LINK_LIBRARIES}) [all …]
|
D | time-tests.c | 98 puts("Test t1 failed."); in main() 109 puts("Test t2 failed."); in main() 143 puts("Test t3 failed."); in main() 154 puts("Test t4 failed."); in main() 159 // Test the first non-negative time_t value of 0, in main() 176 puts("Test t5 failed."); in main() 181 // Test the last time_t value of 0x7FFFFFFF before the 32-bit signed integer overflow, in main() 195 struct tm dtForTimegm7 = dtForTimegm6; // Reuse the date for the next test. in main() 204 puts("Test t6 failed."); in main() 209 // Test the next time_t value of 0x80000000 right after in main() [all …]
|
/picolibc-3.7.0-3.6.0/.github/ |
D | do-linux | 4 "$HERE"/do-test arm "$@" 5 "$HERE"/do-test cortex-a9 "$@" 6 "$HERE"/do-test clang-thumbv7e+fp "$@" 7 "$HERE"/do-test clang-thumbv7m "$@" 8 "$HERE"/do-test clang-thumbv6m "$@" 11 "$HERE"/do-test native "$@" 12 "$HERE"/do-test aarch64 "$@" 14 "$HERE"/do-test i386 "$@" 15 "$HERE"/do-test m68k-unknown-elf "$@" 16 "$HERE"/do-test msp430-unknown-elf "$@" [all …]
|
D | do-zephyr | 4 "$HERE"/do-zephyr-test arc "$@" 5 "$HERE"/do-zephyr-test arc64 "$@" 7 "$HERE"/do-zephyr-test mips-zephyr "$@" 8 "$HERE"/do-zephyr-test nios2 "$@" 9 "$HERE"/do-zephyr-test sparc-zephyr "$@" 10 "$HERE"/do-zephyr-test x86_64-zephyr "$@"
|
/picolibc-3.7.0-3.6.0/scripts/ |
D | test-picolibc | 8 #test=echo 14 $test rm -rf $DIR 15 $test mkdir -p $DIR 16 $test cd $DIR 22 $test ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true 23 $test ninja test install 27 $test rm -rf $DIR 28 $test mkdir -p $DIR 29 $test cd $DIR 35 …$test ../../scripts/do-$arch-configure -Dwant-math-errno=true -Dio-long-double=true --buildtype=re… [all …]
|
/picolibc-3.7.0-3.6.0/test/libc-testsuite/ |
D | string.c | 28 * f = function call to test (or any expression) 39 #define TEST(r, f, x, m) do { \ macro 63 TEST(s, strcpy(b, b+16), b, "wrong return %p != %p"); in test_string() 65 TEST(s, strcpy(b+1, b+16), b+1, "wrong return %p != %p"); in test_string() 67 TEST(s, strcpy(b+2, b+16), b+2, "wrong return %p != %p"); in test_string() 69 TEST(s, strcpy(b+3, b+16), b+3, "wrong return %p != %p"); in test_string() 72 TEST(s, strcpy(b+1, b+17), b+1, "wrong return %p != %p"); in test_string() 74 TEST(s, strcpy(b+2, b+18), b+2, "wrong return %p != %p"); in test_string() 76 TEST(s, strcpy(b+3, b+19), b+3, "wrong return %p != %p"); in test_string() 79 TEST(s, memset(b, 'x', sizeof b), b, "wrong return %p != %p"); in test_string() [all …]
|
D | sscanf.c | 28 #define TEST(r, f, x, m) ( \ macro 37 TEST(i, sscanf(# x, "%lf", &d), 1, "got %d fields, expected %d"), \ 38 TEST(t, d, (double)x, "%g != %g") ) 63 TEST(i, sscanf("hello, world\n", "%s %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf() 67 TEST(i, sscanf("hello, world\n", "%[hel]%s", a, b), 2, "only %d fields, expected %d"); in test_sscanf() 71 TEST(i, sscanf("hello, world\n", "%[hel] %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf() 78 /* legacy stdio fails this test */ in test_sscanf() 79 TEST(i, sscanf("hello, world\n", "%8c%8c", a, b), 1, "%d fields, expected %d"); in test_sscanf() 83 …TEST(i, sscanf("56789 0123 56a72", "%2d%d%*d %[0123456789]\n", &x, &y, a), 3, "only %d fields, exp… in test_sscanf() 84 TEST(i, x, 56, "%d != %d"); in test_sscanf() [all …]
|
D | strtol.c | 29 * f = function call to test (or any expression) 39 #define TEST(r, f, x, m) ( \ macro 60 TEST(l, atol("2147483647"), 2147483647L, "max 32bit signed %ld != %ld"); in test_strtol() 62 TEST(l, strtol("2147483647", 0, 0), 2147483647L, "max 32bit signed %ld != %ld"); in test_strtol() 63 TEST(ul, strtoul("4294967295", 0, 0), 4294967295UL, "max 32bit unsigned %lu != %lu"); in test_strtol() 67 TEST(l, strtol(s="2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in test_strtol() 71 TEST(l, strtol(s="-2147483649", &c, 0), -2147483647L-1, "uncaught overflow %ld != %ld"); in test_strtol() 75 TEST(ul, strtoul(s="4294967296", &c, 0), 4294967295UL, "uncaught overflow %lu != %lu"); in test_strtol() 79 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol() 83 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol() [all …]
|
D | dirname.c | 30 #define TEST(p, b) do { \ macro 51 TEST("", "."); in test_dirname() 52 TEST("/usr/lib", "/usr"); in test_dirname() 53 TEST("/usr/", "/"); in test_dirname() 54 TEST("usr", "."); in test_dirname() 55 TEST("/", "/"); in test_dirname() 56 TEST("///", "/"); in test_dirname() 57 TEST(".", "."); in test_dirname() 58 TEST("..", "."); in test_dirname()
|
D | snprintf.c | 40 #define TEST(r, f, x, m) ( \ macro 83 /* hex: test alt form and case */ 88 /* octal: test alt form */ 173 TEST(i, snprintf(0, 0, "%ld", 123456l), 6, "length returned %d != %d"); in test_snprintf() 174 TEST(i, snprintf(0, 0, "%.4s", "hello"), 4, "length returned %d != %d"); in test_snprintf() 175 TEST(i, snprintf(b, 0, "%.0s", "goodbye"), 0, "length returned %d != %d"); in test_snprintf() 178 TEST(i, snprintf(b, 4, "%ld", 123456l), 6, "length returned %d != %d"); in test_snprintf() 180 TEST(i, b[5], 'x', "buffer overrun"); in test_snprintf() 184 /* Perform ascii arithmetic to test printing tiny doubles */ in test_snprintf() 185 TEST(i, snprintf(b, sizeof b, "%.1022f", 0x1p-1021), 1024, "%d != %d"); in test_snprintf() [all …]
|
D | basename.c | 30 #define TEST(p, b) do { \ macro 51 TEST("", "."); in test_basename() 52 TEST("/usr/lib", "lib"); in test_basename() 53 TEST("/usr/", "usr"); in test_basename() 54 TEST("/", "/"); in test_basename() 55 TEST("///", "/"); in test_basename() 56 TEST("//usr//lib//", "lib"); in test_basename()
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.search/ |
D | hsearchtest.c | 33 * Test program for hsearch() et al. 50 #define TEST(e) ((e) ? (void)0 : testfail(__FILE__, __LINE__, #e)) macro 56 fprintf(stderr, "TEST FAILED: %s: file %s, line %ld\n", in testfail() 70 TEST(created_ok); in main() 79 TEST(e.key != NULL); in main() 82 TEST(ep != NULL); in main() 83 TEST(strcmp(ep->key, ch) == 0); in main() 84 TEST((int) (uintptr_t)ep->data == i); in main() 94 TEST(ep != NULL); in main() 95 TEST(strcmp(ep->key, ch) == 0); in main() [all …]
|
D | meson.build | 57 foreach test : tests 59 test_name = test 61 test_name = test + '_' + target 64 src = test + '.c' 66 test(test_name,
|
/picolibc-3.7.0-3.6.0/newlib/libc/posix/ |
D | fnmatch.c | 61 char c, test; in fnmatch() local 106 while ((test = *string) != EOS) { in fnmatch() 109 if (test == '/' && flags & FNM_PATHNAME) in fnmatch() 160 rangematch(const char *pattern, char test, int flags, char **newp) in rangematch() argument 176 test = tolower((unsigned char)test); in rangematch() 211 c <= test && test <= c2 : in rangematch() 212 __collate_range_cmp(c, test) <= 0 in rangematch() 213 && __collate_range_cmp(test, c2) <= 0 in rangematch() 215 c <= test && test <= c2 in rangematch() 219 } else if (c == test) in rangematch()
|
/picolibc-3.7.0-3.6.0/.github/workflows/ |
D | linux.yml | 67 test: [ 93 if: matrix.test == './.github/do-zephyr' 102 if: matrix.test == './.github/do-zephyr' 108 - name: CMake test 110 ….CCACHE_CMD }} --set-config=max_size=${{ env.CCACHE_SIZE }} && ${{ matrix.test }} ${{ matrix.cmake… 128 test: [ 153 if: matrix.test == './.github/do-zephyr' 162 if: matrix.test == './.github/do-zephyr' 168 - name: Minsize test 170 ….CCACHE_CMD }} --set-config=max_size=${{ env.CCACHE_SIZE }} && ${{ matrix.test }} ${{ matrix.meson… [all …]
|
D | zephyr.yml | 74 test: [ 99 if: matrix.test == './.github/do-zephyr' 108 if: matrix.test == './.github/do-zephyr' 114 - name: Minsize test 116 ….CCACHE_CMD }} --set-config=max_size=${{ env.CCACHE_SIZE }} && ${{ matrix.test }} ${{ matrix.meson… 134 test: [ 159 if: matrix.test == './.github/do-zephyr' 168 if: matrix.test == './.github/do-zephyr' 174 - name: Release test 176 ….CCACHE_CMD }} --set-config=max_size=${{ env.CCACHE_SIZE }} && ${{ matrix.test }} ${{ matrix.meson…
|
/picolibc-3.7.0-3.6.0/newlib/libm/test/ |
D | string.c | 17 #include "test.h" 82 /* Test strcmp first because we use it to test other things. */ in test_string() 94 /* Test strcpy next because we need it to set up other tests. */ in test_string() 97 equal(one, "abcd"); /* Basic test. */ in test_string() 105 equal(one, "hi there"); /* Basic test encore. */ in test_string() 115 equal(one, "ijklmn"); /* Basic test. */ in test_string() 125 equal(one, "ghef"); /* Basic test encore. */ in test_string() 138 /* strncat - first test it as strcat, with big counts, in test_string() 139 then test the count mechanism. */ in test_string() 143 equal(one, "ijklmn"); /* Basic test. */ in test_string() [all …]
|
/picolibc-3.7.0-3.6.0/ |
D | COPYING.picolibc | 286 Files: test/t_fmemopen.c 713 test/CMakeLists.txt 714 test/lock-valid.c 715 test/long_double.c 716 test/test-efcvt.c 717 test/test-except.c 718 test/test-fopen.c 719 test/test-mktemp.c 720 test/test-strtod.c 798 test/fenv.c [all …]
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.time/ |
D | meson.build | 57 foreach test : tests 59 test_name = test 61 test_name = test + '_' + target 64 src = test + '.c' 66 test(test_name,
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.wctype/ |
D | meson.build | 59 foreach test : tests 61 test_name = test 63 test_name = test + '_' + target 66 src = test + '.c' 68 test(test_name,
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.stdlib/ |
D | meson.build | 58 foreach test : tests 60 test_name = test 62 test_name = test + '_' + target 65 src = test + '.c' 67 test(test_name,
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.string/ |
D | meson.build | 57 foreach test : tests 59 test_name = test 61 test_name = test + '_' + target 64 src = test + '.c' 66 test(test_name,
|