| /openbsd-src/regress/lib/libssl/bytestring/ |
| H A D | bytestringtest.c | 31 #define CHECK(a) do { \ macro 53 CHECK(CBS_len(&data) == 3); in test_skip() 54 CHECK(CBS_skip(&data, 1)); in test_skip() 55 CHECK(CBS_len(&data) == 2); in test_skip() 56 CHECK(CBS_skip(&data, 2)); in test_skip() 57 CHECK(CBS_len(&data) == 0); in test_skip() 58 CHECK(!CBS_skip(&data, 1)); in test_skip() 78 CHECK(CBS_get_u8(&data, &u8)); in test_get_u() 79 CHECK(u8 == 1); in test_get_u() 80 CHECK(CBS_get_u16(&data, &u16)); in test_get_u() [all …]
|
| /openbsd-src/regress/lib/libradius/ |
| H A D | test01.c | 36 CHECK(radius_get_length(packet) == sizeof(attrs) + 20); in test01() 37 CHECK(memcmp(radius_get_data(packet) + 20, attrs, sizeof(attrs)) == 0); in test01() 40 CHECK(radius_get_raw_attr(packet, 10, buf, &len) == 0); in test01() 41 CHECK(len == sizeof(data0)); in test01() 42 CHECK(memcmp(buf, data0, len) == 0); in test01() 45 CHECK(radius_get_raw_attr(packet, 20, buf, &len) == 0); in test01() 46 CHECK(len == sizeof(data1)); in test01() 47 CHECK(memcmp(buf, data1, len) == 0); in test01() 50 CHECK(radius_get_vs_raw_attr(packet, 300, 40, buf, &len) == 0); in test01() 51 CHECK(len == sizeof(data2)); in test01() [all …]
|
| H A D | test21.c | 43 CHECK(radius_get_length(packet) == sizeof(attrs_beforeset) + 20); in test21() 44 CHECK(memcmp(radius_get_data(packet) + 20, attrs_beforeset, sizeof(attrs_beforeset)) == 0); in test21() 46 CHECK(radius_get_uint16_attr(packet, 10, &v16) == 0); in test21() 47 CHECK(v16 == 0x1234); in test21() 48 CHECK(radius_get_vs_uint16_attr(packet, 20, 30, &v16) == 0); in test21() 49 CHECK(v16 == 0x4321); in test21() 51 CHECK(radius_get_uint32_attr(packet, 40, &v32) == 0); in test21() 52 CHECK(v32 == 0x13579bdfU); in test21() 53 CHECK(radius_get_vs_uint32_attr(packet, 50, 60, &v32) == 0); in test21() 54 CHECK(v32 == 0x2468ace0U); in test21() [all …]
|
| H A D | test25.c | 31 …CHECK(radius_decrypt_mppe_key_attr(plain, &plen, encrypted, sizeof(encrypted), ra, "hogehogefugafu… in test25() 32 CHECK(plen == 16); in test25() 33 CHECK(memcmp(plain, plainkey, 16) == 0); in test25() 36 CHECK(radius_encrypt_mppe_key_attr(cipher, &clen, plainkey, 16, ra, "hogehogefugafuga") == 0); in test25() 37 CHECK(clen == 34); in test25() 40 CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, clen, ra, "hogehogefugafuga") == 0); in test25() 41 CHECK(plen == 16); in test25() 42 CHECK(memcmp(plain, plainkey, 16) == 0); in test25() 45 CHECK(radius_encrypt_mppe_key_attr(cipher, &clen, plainkey, 16, ra, "hogehogefugafuga") != 0); in test25() 47 CHECK(radius_decrypt_mppe_key_attr(plain, &plen, cipher, 34, ra, "hogehogefugafuga") != 0); in test25() [all …]
|
| H A D | test20.c | 26 CHECK(radius_get_length(packet) == sizeof(attrs) + 20); in test20() 27 CHECK(memcmp(radius_get_data(packet) + 20, attrs, sizeof(attrs)) == 0); in test20() 29 CHECK(radius_get_string_attr(packet, 10, buf, sizeof(buf)) == 0); in test20() 30 CHECK(strcmp(buf, "qwertyuiop") == 0); in test20() 32 CHECK(radius_get_vs_string_attr(packet, 20, 30, buf, sizeof(buf)) == 0); in test20() 33 CHECK(strcmp(buf, "asdfghjkl") == 0); in test20() 35 CHECK(radius_get_string_attr(packet, 40, buf, sizeof(buf)) != 0); in test20() 36 CHECK(radius_get_vs_string_attr(packet, 50, 60, buf, sizeof(buf)) != 0); in test20() 38 CHECK(radius_get_string_attr(packet, 10, buf, 4) == 0); in test20() 39 CHECK(strcmp(buf, "qwe") == 0); in test20() [all …]
|
| H A D | test24.c | 25 CHECK(radius_encrypt_user_password_attr(cipher, &clen, "challenge", ra, "xyzzy5461") == 0); in test24() 26 CHECK(clen == 16); in test24() 27 CHECK(memcmp(cipher, encryptedpass, 16) == 0); in test24() 29 CHECK(radius_decrypt_user_password_attr(plain, sizeof(plain), cipher, clen, ra, "xyzzy5461") == 0); in test24() 30 CHECK(strcmp(plain, "challenge") == 0); in test24() 33 CHECK(radius_encrypt_user_password_attr(cipher, &clen, "challenge", ra, "xyzzy5461") != 0); in test24() 34 CHECK(radius_decrypt_user_password_attr(plain, 16, cipher, 16, ra, "xyzzy5461") != 0); in test24() 35 CHECK(radius_decrypt_user_password_attr(plain, 256, cipher, 17, ra, "xyzzy5461") != 0); in test24() 39 CHECK(radius_put_user_password_attr(packet, "foobarbaz", "sharedsecret") == 0); in test24() 41 CHECK(radius_get_raw_attr(packet, RADIUS_TYPE_USER_PASSWORD, cipher1, &clen) == 0); in test24() [all …]
|
| H A D | test22.c | 42 CHECK(radius_get_length(packet) == sizeof(attrs_beforeset) + 20); in test22() 43 CHECK(memcmp(radius_get_data(packet) + 20, attrs_beforeset, sizeof(attrs_beforeset)) == 0); in test22() 45 CHECK(radius_get_ipv4_attr(packet, 10, &in4a) == 0); in test22() 46 CHECK(in4a.s_addr == inet_addr("192.168.0.1")); in test22() 47 CHECK(radius_get_vs_ipv4_attr(packet, 20, 30, &in4a) == 0); in test22() 48 CHECK(in4a.s_addr == inet_addr("10.20.30.40")); in test22() 50 CHECK(radius_get_ipv6_attr(packet, 40, &in6b) == 0); in test22() 52 CHECK(memcmp(&in6b, &in6a, sizeof(struct in6_addr)) == 0); in test22() 53 CHECK(radius_get_vs_ipv6_attr(packet, 50, 60, &in6b) == 0); in test22() 55 CHECK(memcmp(&in6b, &in6a, sizeof(struct in6_addr)) == 0); in test22() [all …]
|
| H A D | test02.c | 35 CHECK(radius_get_length(packet) == sizeof(attrs_beforeset) + 20); in test02() 36 CHECK(memcmp(radius_get_data(packet) + 20, attrs_beforeset, sizeof(attrs_beforeset)) == 0); in test02() 38 CHECK(radius_set_raw_attr(packet, 10, data2, sizeof(data2)) == 0); in test02() 39 CHECK(radius_set_vs_raw_attr(packet, 20, 30, data2, sizeof(data2)) == 0); in test02() 41 CHECK(radius_get_length(packet) == sizeof(attrs_afterset) + 20); in test02() 42 CHECK(memcmp(radius_get_data(packet) + 20, attrs_afterset, sizeof(attrs_afterset)) == 0); in test02() 44 CHECK(radius_set_raw_attr(packet, 10, data3, sizeof(data2) - 1) != 0); in test02() 45 CHECK(radius_set_raw_attr(packet, 10, data3, sizeof(data2) + 1) != 0); in test02() 46 CHECK(radius_set_vs_raw_attr(packet, 20, 30, data3, sizeof(data2) - 1) != 0); in test02() 47 CHECK(radius_set_vs_raw_attr(packet, 20, 30, data3, sizeof(data2) + 1) != 0); in test02() [all …]
|
| H A D | test00.c | 20 CHECK(pdata[0] == code); in test00() 21 CHECK(radius_get_code(packet) == code); in test00() 22 CHECK(pdata[1] == id); in test00() 23 CHECK(radius_get_id(packet) == id); in test00() 24 CHECK(((pdata[2] << 8) | pdata[3]) == 20); in test00() 25 CHECK(radius_get_length(packet) == 20); in test00() 27 CHECK(radius_get_authenticator_retval(packet) == pdata + 4); in test00() 29 CHECK(memcmp(authenticator, radius_get_authenticator_retval(packet), 16) == 0); in test00()
|
| H A D | test04.c | 58 CHECK(radius_get_length(packet) == 20 + (p-attrs)); in test04() 59 CHECK(memcmp(radius_get_data(packet) + 20, attrs, p-attrs) == 0); in test04() 62 CHECK(radius_get_raw_attr_cat(packet, 10, buf, &len) == 0); in test04() 63 CHECK(len == ATTRLEN); in test04() 64 CHECK(memcmp(buf, data0, len) == 0); in test04() 67 CHECK(radius_get_vs_raw_attr_cat(packet, 20, 30, buf, &len) == 0); in test04() 68 CHECK(len == ATTRLEN); in test04() 69 CHECK(memcmp(buf, data1, len) == 0); in test04() 72 CHECK(radius_get_raw_attr_cat(packet, 20,buf, &len) == 0); in test04() 73 CHECK(len == sizeof(data3)); in test04() [all …]
|
| H A D | test03.c | 32 CHECK(radius_del_attr_all(packet, 10) == 0); in test03() 33 CHECK(radius_del_vs_attr_all(packet, 20, 30) == 0); in test03() 35 CHECK(radius_get_length(packet) == sizeof(attrs_afterdel) + 20); in test03() 36 CHECK(memcmp(radius_get_data(packet) + 20, attrs_afterdel, sizeof(attrs_afterdel)) == 0); in test03() 38 CHECK(radius_del_attr_all(packet, 90) == 0); in test03() 39 CHECK(radius_del_vs_attr_all(packet, 90, 90) == 0); in test03() 41 CHECK(radius_get_length(packet) == sizeof(attrs_afterdel) + 20); in test03() 42 CHECK(memcmp(radius_get_data(packet) + 20, attrs_afterdel, sizeof(attrs_afterdel)) == 0); in test03()
|
| H A D | test23.c | 36 CHECK(radius_get_length(packet) == sizeof(packetdata)); in test23() 37 CHECK(memcmp(radius_get_data(packet), packetdata, sizeof(packetdata)) == 0); in test23() 38 CHECK(radius_check_message_authenticator(packet, "sharedsecret") == 0); in test23() 53 CHECK(radius_get_length(response) == sizeof(responsedata)); in test23() 54 CHECK(memcmp(radius_get_data(response), responsedata, sizeof(responsedata)) == 0); in test23() 55 CHECK(radius_check_message_authenticator(response, "sharedsecret") == 0); in test23() 58 CHECK(radius_check_message_authenticator(packet, "sharedsecret") != 0); in test23() 60 CHECK(radius_check_message_authenticator(response, "sharedsecret") != 0); in test23() 68 CHECK(memcmp(radius_get_data(packet), packetdata, sizeof(packetdata)) == 0); in test23()
|
| /openbsd-src/usr.bin/make/ |
| H A D | regress.c | 37 #define CHECK(s) \ macro 53 CHECK(Str_Match("string", "string") == true); in main() 54 CHECK(Str_Match("string", "string2") == false); in main() 55 CHECK(Str_Match("string", "string*") == true); in main() 56 CHECK(Str_Match("Long string", "Lo*ng") == true); in main() 57 CHECK(Str_Match("Long string", "Lo*ng ") == false); in main() 58 CHECK(Str_Match("Long string", "Lo*ng *") == true); in main() 59 CHECK(Str_Match("string", "stri?g") == true); in main() 60 CHECK(Str_Match("str?ng", "str\\?ng") == true); in main() 61 CHECK(Str_Match("striiiing", "str?*ng") == true); in main() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.martin/ |
| H A D | new1.C | 31 #define CHECK(cond) if(!(cond))throw line_error(__LINE__); macro 40 CHECK(false); //no copy constructors in this code in A() 73 CHECK(new_done==1); in test1() 74 CHECK(ctor_done==2); in test1() 75 CHECK(func_done==3); in test1() 76 CHECK(dtor_done==4); in test1() 77 CHECK(delete_done==0); in test1() 88 CHECK(new_done==1); in test2() 89 CHECK(ctor_done==0); in test2() 90 CHECK(func_done==0); in test2() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/shtest-env/ |
| H A D | env-calls-env.txt | 4 # RUN: | FileCheck -check-prefix=CHECK-2-EMPTY %s 6 # CHECK-2-EMPTY: BAR = 2 7 # CHECK-2-EMPTY: FOO = 1 10 # RUN: | FileCheck -check-prefix=CHECK-2-VAL %s 12 # CHECK-2-VAL: BAR = 1 13 # CHECK-2-VAL: FOO = 2 16 # RUN: | FileCheck -check-prefix=CHECK-2-U %s 18 # CHECK-2-U-NOT: BAR 19 # CHECK-2-U-NOT: FOO 22 # RUN: | FileCheck -check-prefix=CHECK-2-U-VAL %s [all …]
|
| H A D | mixed.txt | 4 # RUN: | FileCheck --check-prefix=CHECK-ENV-1 %s 9 # RUN: | FileCheck --check-prefix=CHECK-ENV-MULTIPLE %s 11 # CHECK-ENV-1: A_FOO = 999 12 # CHECK-ENV-1-NOT: FOO 14 # CHECK-ENV-MULTIPLE: A_FOO = 1 15 # CHECK-ENV-MULTIPLE-NOT: BAR 16 # CHECK-ENV-MULTIPLE: B_BAR = 2 17 # CHECK-ENV-MULTIPLE: C_OOF = 3 18 # CHECK-ENV-MULTIPLE-NOT: FOO
|
| H A D | env-u.txt | 4 # RUN: | FileCheck --check-prefix=CHECK-ENV-PRESET %s 9 # RUN: | FileCheck --check-prefix=CHECK-ENV-UNSET-1 %s 14 # RUN: | FileCheck --check-prefix=CHECK-ENV-UNSET-MULTIPLE %s 16 # CHECK-ENV-PRESET: BAR = 2 17 # CHECK-ENV-PRESET: FOO = 1 19 # CHECK-ENV-UNSET-1: BAR = 2 20 # CHECK-ENV-UNSET-1-NOT: FOO 22 # CHECK-ENV-UNSET-MULTIPLE-NOT: BAR 23 # CHECK-ENV-UNSET-MULTIPLE-NOT: FOO
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/shtest-if-else/ |
| H A D | test.txt | 1 # CHECK: -- Testing:{{.*}} 2 # CHECK-NEXT: PASS: shtest-if-else :: test.txt (1 of 1) 3 # CHECK-NEXT: Script: 4 # CHECK-NEXT: -- 7 # CHECK-NEXT: {{^.*'RUN}}: at line [[#@LINE-1]]'; echo "test-1" 13 # CHECK-NEXT: {{^.*'RUN}}: at line [[#@LINE-1]]' 14 # CHECK-NOT: fail 17 # CHECK-NEXT: {{^.*'RUN}}: at line [[#@LINE-1]]'; echo "test-2" 24 # CHECK-NEXT: {{^.*'RUN}}: at line [[#@LINE-3]]'; echo test- 3 -test 25 # CHECK-NEXT: {{^.*'RUN}}: at line [[#@LINE-3]]'; echo test- 4 4 -test [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_shadow_test.cpp | 59 CHECK(!s0.IsBothReadsOrAtomic(kAccessRead | kAccessAtomic)); in TEST() 60 CHECK(!s1.IsBothReadsOrAtomic(kAccessAtomic)); in TEST() 61 CHECK(!s1.IsBothReadsOrAtomic(kAccessWrite)); in TEST() 62 CHECK(s1.IsBothReadsOrAtomic(kAccessRead)); in TEST() 63 CHECK(s2.IsBothReadsOrAtomic(kAccessAtomic)); in TEST() 64 CHECK(!s2.IsBothReadsOrAtomic(kAccessWrite)); in TEST() 65 CHECK(!s2.IsBothReadsOrAtomic(kAccessRead)); in TEST() 66 CHECK(s3.IsBothReadsOrAtomic(kAccessAtomic)); in TEST() 67 CHECK(!s3.IsBothReadsOrAtomic(kAccessWrite)); in TEST() 68 CHECK(s3.IsBothReadsOrAtomic(kAccessRead)); in TEST() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/ |
| H A D | msan_linux.cpp | 84 CHECK(addr_is_type(start, type)); in CheckMemoryLayoutSanity() 85 CHECK(addr_is_type((start + end) / 2, type)); in CheckMemoryLayoutSanity() 86 CHECK(addr_is_type(end - 1, type)); in CheckMemoryLayoutSanity() 89 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 90 CHECK(MEM_IS_ORIGIN(MEM_TO_ORIGIN(addr))); in CheckMemoryLayoutSanity() 94 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 95 CHECK(MEM_IS_ORIGIN(MEM_TO_ORIGIN(addr))); in CheckMemoryLayoutSanity() 99 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 100 CHECK(MEM_IS_ORIGIN(MEM_TO_ORIGIN(addr))); in CheckMemoryLayoutSanity() 138 CHECK(!(map && protect)); in InitShadow() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/shtest-shell/ |
| H A D | sequencing-0.txt | 4 # RUN: FileCheck --check-prefix CHECK-AND < %t.out %s 6 # CHECK-AND: first-line 7 # CHECK-AND: second-line 13 # RUN: FileCheck --check-prefix CHECK-OR-1 < %t.out %s 15 # CHECK-OR-1: first-line 16 # CHECK-OR-1-NOT: second-line 19 # RUN: FileCheck --check-prefix CHECK-OR-2 < %t.out %s 21 # CHECK-OR-2: second-line 25 # RUN: FileCheck --check-prefix CHECK-SEQ < %t.out %s 27 # CHECK-SEQ: first-line [all …]
|
| /openbsd-src/sys/dev/acpi/ |
| H A D | acpisbs.c | 55 #define CHECK(kind, cmd, val, senst, sens) { \ macro 71 CHECK(WORD, BATTERY_MODE, mode, -1, 73 CHECK(WORD, TEMPERATURE, temperature, SENSOR_TEMP, 75 CHECK(WORD, VOLTAGE, voltage, SENSOR_VOLTS_DC, 77 CHECK(WORD, CURRENT, current, SENSOR_AMPS, 79 CHECK(WORD, AVERAGE_CURRENT, avg_current, SENSOR_AMPS, 81 CHECK(WORD, RELATIVE_STATE_OF_CHARGE, rel_charge, SENSOR_PERCENT, 83 CHECK(WORD, ABSOLUTE_STATE_OF_CHARGE, abs_charge, SENSOR_PERCENT, 85 CHECK(WORD, REMAINING_CAPACITY, capacity, SENSOR_AMPHOUR, 87 CHECK(WORD, FULL_CHARGE_CAPACITY, full_capacity, SENSOR_AMPHOUR, [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/tests/Inputs/shtest-define/ |
| H A D | ws-and-continuations.txt | 6 # CHECK:'' 10 # CHECK:'' 17 # CHECK:'' 22 # CHECK:'' 28 # CHECK:'abc' 32 # CHECK:'HelloWorld' 40 # CHECK:'foobar' 44 # CHECK:'foobarfoo' 53 # CHECK:'abc def' 57 # CHECK:'Hello World' [all …]
|
| /openbsd-src/gnu/llvm/llvm/docs/CommandGuide/ |
| H A D | FileCheck.rst | 39 match. By default, these patterns are prefixed with "``CHECK:``". 85 matches from ``CHECK-NOT`` are not affected by this option!) 107 ``CHECK-NOT``\ s. 112 warnings not covered by any ``CHECK:`` patterns. 153 All other variables get undefined after each encountered ``CHECK-LABEL``. 158 used in ``CHECK:`` lines. 164 ``CHECK:`` lines. See section 180 discarded overlapping ``CHECK-DAG:`` matches, implicit EOF pattern matches, 181 and ``CHECK-NOT:`` patterns that do not have matches. Implies ``-v``. 187 Enable overlapping among matches in a group of consecutive ``CHECK-DAG:`` [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/asan/ |
| H A D | asan_posix.cpp | 81 CHECK(tsd_destructor); in ~tsd_key() 91 CHECK(!tsd_destructor); in AsanTSDInit() 96 CHECK(tsd_destructor); in AsanTSDGet() 101 CHECK(tsd_destructor); in AsanTSDSet() 102 CHECK(tsd); in AsanTSDSet() 103 CHECK(!key.key); in AsanTSDSet() 108 CHECK(tsd_destructor); in PlatformTSDDtor() 119 CHECK(!tsd_key_inited); in AsanTSDInit() 125 CHECK(tsd_key_inited); in AsanTSDGet() 130 CHECK(tsd_key_inited); in AsanTSDSet()
|