/zcbor-3.5.0-3.4.0/tests/encode/test3_corner_cases/src/ |
D | main.c | 42 uint8_t output[100]; in ZTEST() local 53 zassert_equal(ZCBOR_ERR_WRONG_RANGE, cbor_encode_Numbers(output, in ZTEST() 54 sizeof(output), &numbers, &out_len), NULL); in ZTEST() 57 zassert_equal(ZCBOR_ERR_WRONG_RANGE, cbor_encode_Numbers(output, in ZTEST() 58 sizeof(output), &numbers, &out_len), NULL); in ZTEST() 61 zassert_equal(ZCBOR_SUCCESS, cbor_encode_Numbers(output, in ZTEST() 62 sizeof(output), &numbers, &out_len), NULL); in ZTEST() 64 zassert_mem_equal(exp_payload_numbers1, output, sizeof(exp_payload_numbers1), NULL); in ZTEST() 67 zassert_equal(ZCBOR_ERR_WRONG_RANGE, cbor_encode_Numbers(output, in ZTEST() 68 sizeof(output), &numbers, &out_len), NULL); in ZTEST() [all …]
|
/zcbor-3.5.0-3.4.0/tests/fuzz/ |
D | CMakeLists.txt | 24 --output-cmake ${PROJECT_BINARY_DIR}/pet.cmake 36 --output ${PROJECT_BINARY_DIR}/fuzz_input/input0.cbor 37 --output-as cbor 49 --output-cmake ${PROJECT_BINARY_DIR}/manifest12.cmake 62 --output ${PROJECT_BINARY_DIR}/fuzz_input/input${n}.cbor 63 --output-as cbor
|
D | test-afl.sh | 22 afl-fuzz -i build-afl/fuzz_input -o build-afl/output -V $1 -- ./build-afl/fuzz_target 23 exit $(find build-afl/output/default/crashes/ -type f -printf x | wc -c)
|
/zcbor-3.5.0-3.4.0/tests/decode/test5_corner_cases/src/ |
D | main.c | 1014 struct Range output; in ZTEST() local 1017 &output, NULL), NULL); in ZTEST() 1018 zassert_false(output.optMinus5to5_present, NULL); in ZTEST() 1019 zassert_false(output.optStr3to6_present, NULL); in ZTEST() 1020 zassert_false(output.optMinus9toMinus6excl_present, NULL); in ZTEST() 1021 zassert_equal(1, output.multi8_count, NULL); in ZTEST() 1022 zassert_equal(1, output.multiHello_count, NULL); in ZTEST() 1023 zassert_equal(1, output.multi0to10_count, NULL); in ZTEST() 1024 zassert_equal(0, output.multi0to10[0], NULL); in ZTEST() 1027 &output, NULL), NULL); in ZTEST() [all …]
|
/zcbor-3.5.0-3.4.0/ |
D | add_helptext.py | 31 output = pattern variable 36 output += f""" 47 new_readme_contents = sub(pattern + r'.*', output, readme_contents, flags=S)
|
D | README.md | 107 It can also output the data to a C file formatted as a byte array. 120 …c <CDDL description file> -t <which CDDL type to expect> -i <input data file> -o <output data file> 127 …c <CDDL description file> -t <which CDDL type to expect> -i <input data file> -o <output data file> 168 …CDDL description file(s)> -t <which CDDL type(s) to expose in the API> --output-cmake <path to pla… 184 …- A CMake file that creates a library with the generated code and the C library (if `--output-cmak… 198 When calling zcbor with the argument `--output-cmake <file path>`, a CMake file will be created at … 417 [--default-max-qty DEFAULT_MAX_QTY] [--output-c OUTPUT_C] 418 [--output-h OUTPUT_H] [--output-h-types OUTPUT_H_TYPES] 419 [--copy-sources] [--output-cmake OUTPUT_CMAKE] -t 426 The output from this script is a C file and a header file. The header file [all …]
|
/zcbor-3.5.0-3.4.0/tests/encode/test1_suit/src/ |
D | main.c | 229 static uint8_t output[2000]; variable 256 res = cbor_encode_SUIT_Command_Sequence(output, in test_command_sequence() 257 sizeof(output), in test_command_sequence() 262 output, in test_command_sequence() 439 res = cbor_encode_SUIT_Outer_Wrapper(output, in test_manifest() 440 sizeof(output), &outerwrapper1, &out_len); in test_manifest() 443 zassert_mem_equal(input, output, len, NULL); in test_manifest()
|
/zcbor-3.5.0-3.4.0/tests/encode/test2_simple/src/ |
D | main.c | 57 uint8_t output[25]; in ZTEST() local 61 zassert_equal(ZCBOR_SUCCESS, cbor_encode_Pet(output, sizeof(output), &pet, &out_len), NULL); in ZTEST() 66 zassert_mem_equal(exp_output, output, sizeof(exp_output), NULL); in ZTEST()
|
/zcbor-3.5.0-3.4.0/samples/pet/ |
D | README.md | 14 …ee representations. Changing [pet1.yml](pet1.yml) will change the printed output for the first pet. 15 To change the output for the second and third, change the code in [src/main.c](src/main.c). 31 ### Expected output:
|
/zcbor-3.5.0-3.4.0/tests/unit/test1_unit_tests/src/ |
D | main.c | 407 struct zcbor_string output; in ZTEST() local 415 zassert_true(zcbor_bstr_decode(state_d2, &output), NULL); in ZTEST() 417 zassert_false(zcbor_bstr_decode(state_d, &output), NULL); in ZTEST() 437 output.value = spliced; in ZTEST() 438 output.len = sizeof(spliced); in ZTEST() 441 zassert_true(zcbor_splice_string_fragments(output_frags, 2, spliced, &output.len), NULL); in ZTEST() 443 zassert_equal(10, output.len, NULL); in ZTEST() 444 zassert_mem_equal(output.value, "HelloWorld", 10, NULL); in ZTEST() 460 struct zcbor_string output; in ZTEST() local 475 zassert_true(zcbor_bstr_decode(state_d2, &output), NULL); in ZTEST() [all …]
|
/zcbor-3.5.0-3.4.0/tests/decode/test1_suit_old_formats/ |
D | CMakeLists.txt | 19 --output-cmake ${PROJECT_BINARY_DIR}/manifest-moran3.cmake 31 --output-cmake ${PROJECT_BINARY_DIR}/manifest-moran4.cmake
|
/zcbor-3.5.0-3.4.0/tests/decode/test5_corner_cases/ |
D | CMakeLists.txt | 21 --output-c ${PROJECT_BINARY_DIR}/src/corner_cases.c 22 --output-h ${PROJECT_BINARY_DIR}/include/corner_cases.h
|
/zcbor-3.5.0-3.4.0/tests/scripts/ |
D | test_repo_files.py | 91 output, _ = self.popen_test(c) 92 output_run += output.decode('utf-8') 97 output = self.cmake_build_run(p_hello_world_sample, p_hello_world_build) 101 output = self.cmake_build_run(p_pet_sample, p_pet_build)
|
/zcbor-3.5.0-3.4.0/tests/decode/test7_suit9_simple/ |
D | CMakeLists.txt | 18 --output-cmake ${PROJECT_BINARY_DIR}/manifest9_simple.cmake
|
/zcbor-3.5.0-3.4.0/tests/encode/test2_simple/ |
D | CMakeLists.txt | 17 --output-cmake ${PROJECT_BINARY_DIR}/pet.cmake
|
/zcbor-3.5.0-3.4.0/tests/encode/test1_suit/ |
D | CMakeLists.txt | 17 --output-cmake ${PROJECT_BINARY_DIR}/manifest3.cmake
|
/zcbor-3.5.0-3.4.0/tests/decode/test8_suit12/ |
D | CMakeLists.txt | 17 --output-cmake ${PROJECT_BINARY_DIR}/manifest12.cmake
|
/zcbor-3.5.0-3.4.0/samples/hello_world/ |
D | README.md | 22 ### Expected output:
|
/zcbor-3.5.0-3.4.0/tests/unit/test2_cpp/ |
D | CMakeLists.txt | 25 --output-cmake ${PROJECT_BINARY_DIR}/pet.cmake
|
/zcbor-3.5.0-3.4.0/tests/decode/test2_suit/ |
D | CMakeLists.txt | 19 --output-cmake ${PROJECT_BINARY_DIR}/manifest2.cmake
|
/zcbor-3.5.0-3.4.0/tests/encode/test4_senml/ |
D | CMakeLists.txt | 19 --output-cmake ${PROJECT_BINARY_DIR}/senml.cmake
|
/zcbor-3.5.0-3.4.0/tests/encode/test3_corner_cases/ |
D | CMakeLists.txt | 18 --output-cmake ${PROJECT_BINARY_DIR}/corner_cases.cmake
|
/zcbor-3.5.0-3.4.0/tests/decode/test3_simple/ |
D | CMakeLists.txt | 20 --output-cmake ${PROJECT_BINARY_DIR}/pet.cmake
|
/zcbor-3.5.0-3.4.0/tests/decode/test9_manifest14/ |
D | CMakeLists.txt | 24 --output-cmake ${PROJECT_BINARY_DIR}/${MANIFEST}.cmake
|
/zcbor-3.5.0-3.4.0/tests/unit/test3_float16/ |
D | CMakeLists.txt | 21 return() # Because the output volume is too large
|