From 66b6f7c42e681544c33acd7f911fbd434c334221 Mon Sep 17 00:00:00 2001 From: w1ne <14119286+w1ne@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:09:36 +0100 Subject: [PATCH 1/2] chore: add copyright headers --- examples/bare_metal/main.c | 5 +++++ examples/client_demo/main.c | 5 +++++ examples/freertos_demo/main.c | 5 +++++ examples/generated_tests/test_read_data_by_id.py | 3 +++ examples/generated_tests/test_routine_control.py | 3 +++ examples/generated_tests/test_security_access.py | 3 +++ examples/generated_tests/test_session_control.py | 3 +++ examples/generated_tests/test_tester_present.py | 3 +++ examples/generated_tests/test_write_data_by_id.py | 3 +++ examples/host_sim/main.c | 5 +++++ examples/pro_flash_tool.c | 5 +++++ examples/zephyr_uds_server/src/main.c | 5 +++++ extras/python/pyudslib.py | 3 +++ include/uds/uds_config.h | 5 +++++ include/uds/uds_core.h | 5 +++++ include/uds/uds_isotp.h | 5 +++++ include/uds/uds_tp.h | 5 +++++ include/uds/uds_version.h | 5 +++++ run_capture.sh | 3 +++ run_integration_test.sh | 3 +++ scripts/build_iso14229.sh | 3 +++ scripts/check_misra.sh | 3 +++ scripts/check_quality.sh | 3 +++ scripts/docker_run.sh | 3 +++ scripts/generate_coverage.sh | 3 +++ scripts/generate_release_notes.sh | 3 +++ scripts/run_all_tests.sh | 3 +++ scripts/setup_vcan.sh | 3 +++ scripts/setup_zephyr.sh | 3 +++ src/core/uds_core.c | 5 +++++ src/core/uds_internal.h | 5 +++++ src/services/uds_service_data.c | 5 +++++ src/services/uds_service_flash.c | 5 +++++ src/services/uds_service_io.c | 5 +++++ src/services/uds_service_maintenance.c | 5 +++++ src/services/uds_service_mem.c | 5 +++++ src/services/uds_service_security.c | 5 +++++ src/services/uds_service_session.c | 5 +++++ src/transport/uds_tp_isotp.c | 5 +++++ tests/integration/test_integration.c | 5 +++++ tests/integration/test_iso14229.sh | 3 +++ tests/integration/test_uds.py | 3 +++ tests/test_core.c | 5 +++++ tests/test_framework.h | 5 +++++ tests/unit/test_async.c | 5 +++++ tests/unit/test_compliance_pass2.c | 5 +++++ tests/unit/test_compliance_pass3.c | 5 +++++ tests/unit/test_compliance_suppress.c | 5 +++++ tests/unit/test_concurrency.c | 5 +++++ tests/unit/test_endian.c | 5 +++++ tests/unit/test_fuzz_core.c | 5 +++++ tests/unit/test_helpers.c | 5 +++++ tests/unit/test_helpers.h | 5 +++++ tests/unit/test_nrc_priority.c | 5 +++++ tests/unit/test_nvm_persistence.c | 5 +++++ tests/unit/test_osal.c | 5 +++++ tests/unit/test_rcrrp_limit.c | 5 +++++ tests/unit/test_safety_gate.c | 5 +++++ tests/unit/test_service_10.c | 5 +++++ tests/unit/test_service_10_prog.c | 5 +++++ tests/unit/test_service_11.c | 5 +++++ tests/unit/test_service_22.c | 5 +++++ tests/unit/test_service_27.c | 5 +++++ tests/unit/test_service_28.c | 5 +++++ tests/unit/test_service_29.c | 5 +++++ tests/unit/test_service_2A.c | 5 +++++ tests/unit/test_service_2E.c | 5 +++++ tests/unit/test_service_2F.c | 5 +++++ tests/unit/test_service_34_flex.c | 5 +++++ tests/unit/test_service_35.c | 5 +++++ tests/unit/test_service_3E.c | 5 +++++ tests/unit/test_service_did.c | 5 +++++ tests/unit/test_service_dtc.c | 5 +++++ tests/unit/test_service_flash.c | 5 +++++ tests/unit/test_service_mem.c | 5 +++++ tests/unit/test_service_negative.c | 5 +++++ tests/unit/test_stubs.c | 5 +++++ tests/unit/test_timing.c | 5 +++++ tests/unit/test_tp_flow_control.c | 5 +++++ tests/unit/test_tp_isotp_canfd.c | 5 +++++ tests/unit/test_tp_isotp_integration.c | 5 +++++ tests/unit/test_transport.c | 5 +++++ tools/generate_tests.py | 3 +++ tools/odx_to_c.py | 3 +++ tools/pcap_to_html.py | 3 +++ tools/read_pcap.py | 3 +++ tools/udp_proxy_pcap.py | 3 +++ 87 files changed, 385 insertions(+) diff --git a/examples/bare_metal/main.c b/examples/bare_metal/main.c index cdf0e93..20963bb 100644 --- a/examples/bare_metal/main.c +++ b/examples/bare_metal/main.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file main.c * @brief Bare Metal Example (Super Loop) diff --git a/examples/client_demo/main.c b/examples/client_demo/main.c index c7ba2c2..8d50254 100644 --- a/examples/client_demo/main.c +++ b/examples/client_demo/main.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file main.c * @brief UDS Client Demo diff --git a/examples/freertos_demo/main.c b/examples/freertos_demo/main.c index 4501d5f..12fae31 100644 --- a/examples/freertos_demo/main.c +++ b/examples/freertos_demo/main.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file main.c * @brief FreeRTOS Example (Task Based) diff --git a/examples/generated_tests/test_read_data_by_id.py b/examples/generated_tests/test_read_data_by_id.py index c721c24..3e15bed 100644 --- a/examples/generated_tests/test_read_data_by_id.py +++ b/examples/generated_tests/test_read_data_by_id.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ Auto-generated integration test for UDS Service 0x22 Read Data By Identifier diff --git a/examples/generated_tests/test_routine_control.py b/examples/generated_tests/test_routine_control.py index 42f481c..fe5a9ef 100644 --- a/examples/generated_tests/test_routine_control.py +++ b/examples/generated_tests/test_routine_control.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ Auto-generated integration test for UDS Service 0x31 Routine Control diff --git a/examples/generated_tests/test_security_access.py b/examples/generated_tests/test_security_access.py index 3c1440e..d34dd0a 100644 --- a/examples/generated_tests/test_security_access.py +++ b/examples/generated_tests/test_security_access.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ Auto-generated integration test for UDS Service 0x27 Security Access diff --git a/examples/generated_tests/test_session_control.py b/examples/generated_tests/test_session_control.py index ccf5d66..7950ec4 100644 --- a/examples/generated_tests/test_session_control.py +++ b/examples/generated_tests/test_session_control.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ Auto-generated integration test for UDS Service 0x10 Diagnostic Session Control diff --git a/examples/generated_tests/test_tester_present.py b/examples/generated_tests/test_tester_present.py index a2eaf39..d4807cd 100644 --- a/examples/generated_tests/test_tester_present.py +++ b/examples/generated_tests/test_tester_present.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ Auto-generated integration test for UDS Service 0x3e Tester Present diff --git a/examples/generated_tests/test_write_data_by_id.py b/examples/generated_tests/test_write_data_by_id.py index 76789b9..f893b23 100644 --- a/examples/generated_tests/test_write_data_by_id.py +++ b/examples/generated_tests/test_write_data_by_id.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ Auto-generated integration test for UDS Service 0x2e Write Data By Identifier diff --git a/examples/host_sim/main.c b/examples/host_sim/main.c index 56f4717..9858fd5 100644 --- a/examples/host_sim/main.c +++ b/examples/host_sim/main.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file main.c * @brief Host Simulation Example for UDSLib. diff --git a/examples/pro_flash_tool.c b/examples/pro_flash_tool.c index db4df51..030e303 100644 --- a/examples/pro_flash_tool.c +++ b/examples/pro_flash_tool.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file pro_flash_tool.c * @brief Enterprise Example: Orchestrating an OTA Update (0x34, 0x36, 0x37) diff --git a/examples/zephyr_uds_server/src/main.c b/examples/zephyr_uds_server/src/main.c index 58c3b27..7c3fe2b 100644 --- a/examples/zephyr_uds_server/src/main.c +++ b/examples/zephyr_uds_server/src/main.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include "uds/uds_core.h" diff --git a/extras/python/pyudslib.py b/extras/python/pyudslib.py index b7a3ba0..d4be2e8 100644 --- a/extras/python/pyudslib.py +++ b/extras/python/pyudslib.py @@ -1,3 +1,6 @@ +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + import ctypes import os diff --git a/include/uds/uds_config.h b/include/uds/uds_config.h index 2336f2e..e406a4c 100644 --- a/include/uds/uds_config.h +++ b/include/uds/uds_config.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_config.h * @brief UDS Stack Configuration & Dependency Injection diff --git a/include/uds/uds_core.h b/include/uds/uds_core.h index c43f25b..661e8e9 100644 --- a/include/uds/uds_core.h +++ b/include/uds/uds_core.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_core.h * @brief ISO-14229 UDS Protocol Stack Core API diff --git a/include/uds/uds_isotp.h b/include/uds/uds_isotp.h index c991d23..455f0bb 100644 --- a/include/uds/uds_isotp.h +++ b/include/uds/uds_isotp.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_isotp.h * @brief ISO-TP (ISO 15765-2) Transport Layer Implementation diff --git a/include/uds/uds_tp.h b/include/uds/uds_tp.h index dc96a2b..e340e3f 100644 --- a/include/uds/uds_tp.h +++ b/include/uds/uds_tp.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_tp.h * @brief UDS Transport Layer Definitions diff --git a/include/uds/uds_version.h b/include/uds/uds_version.h index 7ec11fc..5c04a60 100644 --- a/include/uds/uds_version.h +++ b/include/uds/uds_version.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_version.h * @brief UDSLib Version Information diff --git a/run_capture.sh b/run_capture.sh index d4a8cc1..be50b9c 100755 --- a/run_capture.sh +++ b/run_capture.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # run_capture.sh # Runs the simulation while capturing traffic to a PCAP and generating an HTML report. # Usage: ./run_capture.sh [classic] diff --git a/run_integration_test.sh b/run_integration_test.sh index 2b1a476..6dcf4f0 100755 --- a/run_integration_test.sh +++ b/run_integration_test.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # UDSLib C-to-C Integration Test # Get the script directory diff --git a/scripts/build_iso14229.sh b/scripts/build_iso14229.sh index 87970f4..b5280ec 100755 --- a/scripts/build_iso14229.sh +++ b/scripts/build_iso14229.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # Build script for iso14229 external validator set -e diff --git a/scripts/check_misra.sh b/scripts/check_misra.sh index e465003..b4ab05b 100755 --- a/scripts/check_misra.sh +++ b/scripts/check_misra.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # scripts/check_misra.sh # Automated MISRA-C:2012 baseline compliance checker for UDSLib. diff --git a/scripts/check_quality.sh b/scripts/check_quality.sh index 5abe8e1..344b8a4 100755 --- a/scripts/check_quality.sh +++ b/scripts/check_quality.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # UDSLib Stricter Code Quality Check Script set -e diff --git a/scripts/docker_run.sh b/scripts/docker_run.sh index a27b079..b323e5e 100755 --- a/scripts/docker_run.sh +++ b/scripts/docker_run.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # Build and run UDSLib tests in a standardized Docker container set -e diff --git a/scripts/generate_coverage.sh b/scripts/generate_coverage.sh index 3da35d1..5102618 100755 --- a/scripts/generate_coverage.sh +++ b/scripts/generate_coverage.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # UDSLib Coverage Report Generator # Requirements: lcov, genhtml diff --git a/scripts/generate_release_notes.sh b/scripts/generate_release_notes.sh index f45a87c..739881b 100755 --- a/scripts/generate_release_notes.sh +++ b/scripts/generate_release_notes.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # Generate release notes for UDSLib releases # Usage: ./generate_release_notes.sh diff --git a/scripts/run_all_tests.sh b/scripts/run_all_tests.sh index 372e6fe..16ef220 100755 --- a/scripts/run_all_tests.sh +++ b/scripts/run_all_tests.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # UDSLib Comprehensive Test Suite Runner # Executes all test tiers: Unit → Integration → System Validation diff --git a/scripts/setup_vcan.sh b/scripts/setup_vcan.sh index 5be7ead..6841464 100755 --- a/scripts/setup_vcan.sh +++ b/scripts/setup_vcan.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # Virtual CAN Setup Script for Linux set -e diff --git a/scripts/setup_zephyr.sh b/scripts/setup_zephyr.sh index ac7eeda..c761a25 100755 --- a/scripts/setup_zephyr.sh +++ b/scripts/setup_zephyr.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # Scripts to setup minimal Zephyr environment for Simulation # Based on Zephyr generic installation guide diff --git a/src/core/uds_core.c b/src/core/uds_core.c index d3dc9d9..3ad4c5d 100644 --- a/src/core/uds_core.c +++ b/src/core/uds_core.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_core.c * @brief Core UDS Logic Implementation diff --git a/src/core/uds_internal.h b/src/core/uds_internal.h index b48d155..e466dbb 100644 --- a/src/core/uds_internal.h +++ b/src/core/uds_internal.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_internal.h * @brief Internal UDS Core & Service Declarations diff --git a/src/services/uds_service_data.c b/src/services/uds_service_data.c index 28598ec..b62dca7 100644 --- a/src/services/uds_service_data.c +++ b/src/services/uds_service_data.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_data.c * @brief Read Data By ID (0x22) & Write Data By ID (0x2E) diff --git a/src/services/uds_service_flash.c b/src/services/uds_service_flash.c index 07f0dd8..7b0d1bd 100644 --- a/src/services/uds_service_flash.c +++ b/src/services/uds_service_flash.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_flash.c * @brief Flash Engine Services: RoutineControl (0x31), RequestDownload (0x34), diff --git a/src/services/uds_service_io.c b/src/services/uds_service_io.c index 74b4110..c6c1538 100644 --- a/src/services/uds_service_io.c +++ b/src/services/uds_service_io.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_io.c * @brief Input Output Control By Identifier (0x2F) diff --git a/src/services/uds_service_maintenance.c b/src/services/uds_service_maintenance.c index 1cd0d35..9298290 100644 --- a/src/services/uds_service_maintenance.c +++ b/src/services/uds_service_maintenance.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_maintenance.c * @brief Maintenance Services: ECU Reset (0x11), Comm Control (0x28), and DTC Management (0x14, diff --git a/src/services/uds_service_mem.c b/src/services/uds_service_mem.c index f345b51..3f698a4 100644 --- a/src/services/uds_service_mem.c +++ b/src/services/uds_service_mem.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_mem.c * @brief Memory Services Implementation (0x23, 0x3D) diff --git a/src/services/uds_service_security.c b/src/services/uds_service_security.c index bc24748..170a505 100644 --- a/src/services/uds_service_security.c +++ b/src/services/uds_service_security.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_security.c * @brief Security Access (0x27) & Authentication (0x29) diff --git a/src/services/uds_service_session.c b/src/services/uds_service_session.c index 1d5782c..071ba0c 100644 --- a/src/services/uds_service_session.c +++ b/src/services/uds_service_session.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_service_session.c * @brief Diagnostic Session Control (0x10) & Tester Present (0x3E) diff --git a/src/transport/uds_tp_isotp.c b/src/transport/uds_tp_isotp.c index 1831ca7..b2b211d 100644 --- a/src/transport/uds_tp_isotp.c +++ b/src/transport/uds_tp_isotp.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file uds_tp_isotp.c * @brief Lightweight ISO-TP Implementation (Zephyr-Ready Fallback) diff --git a/tests/integration/test_integration.c b/tests/integration/test_integration.c index 5bb2f2a..1fff9d8 100644 --- a/tests/integration/test_integration.c +++ b/tests/integration/test_integration.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/integration/test_iso14229.sh b/tests/integration/test_iso14229.sh index 40fd122..3b4385a 100644 --- a/tests/integration/test_iso14229.sh +++ b/tests/integration/test_iso14229.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + # Test UDSLib client against iso14229 external server set -e diff --git a/tests/integration/test_uds.py b/tests/integration/test_uds.py index a7a2f35..3b211ee 100644 --- a/tests/integration/test_uds.py +++ b/tests/integration/test_uds.py @@ -1,3 +1,6 @@ +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + import socket import struct import subprocess diff --git a/tests/test_core.c b/tests/test_core.c index 8f5f5ec..4b4381f 100644 --- a/tests/test_core.c +++ b/tests/test_core.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_core.c * @brief Unit tests for UDSLib Core Logic diff --git a/tests/test_framework.h b/tests/test_framework.h index a1cd73c..f10ee6f 100644 --- a/tests/test_framework.h +++ b/tests/test_framework.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #ifndef TEST_FRAMEWORK_H #define TEST_FRAMEWORK_H diff --git a/tests/unit/test_async.c b/tests/unit/test_async.c index 6e980d3..d40f4c5 100644 --- a/tests/unit/test_async.c +++ b/tests/unit/test_async.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_compliance_pass2.c b/tests/unit/test_compliance_pass2.c index 76cb141..1d9b0af 100644 --- a/tests/unit/test_compliance_pass2.c +++ b/tests/unit/test_compliance_pass2.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static int mock_dtc_read(struct uds_ctx *ctx, uint8_t subfn, uint8_t *out_buf, uint16_t max_len) diff --git a/tests/unit/test_compliance_pass3.c b/tests/unit/test_compliance_pass3.c index 8ade3f3..0dbc0bf 100644 --- a/tests/unit/test_compliance_pass3.c +++ b/tests/unit/test_compliance_pass3.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_compliance_suppress.c b/tests/unit/test_compliance_suppress.c index 94017a0..ea188e8 100644 --- a/tests/unit/test_compliance_suppress.c +++ b/tests/unit/test_compliance_suppress.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static int mock_comm_control(struct uds_ctx *ctx, uint8_t ctrl_type, uint8_t comm_type) diff --git a/tests/unit/test_concurrency.c b/tests/unit/test_concurrency.c index f4f84f7..4cae58e 100644 --- a/tests/unit/test_concurrency.c +++ b/tests/unit/test_concurrency.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_endian.c b/tests/unit/test_endian.c index 723aedc..818de47 100644 --- a/tests/unit/test_endian.c +++ b/tests/unit/test_endian.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_endian.c * @brief Unit tests for Endianness Independence diff --git a/tests/unit/test_fuzz_core.c b/tests/unit/test_fuzz_core.c index 492758f..73e3aaa 100644 --- a/tests/unit/test_fuzz_core.c +++ b/tests/unit/test_fuzz_core.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_fuzz_core.c * @brief Fuzz testing for UDS Core Input diff --git a/tests/unit/test_helpers.c b/tests/unit/test_helpers.c index fdd13d8..7949e86 100644 --- a/tests/unit/test_helpers.c +++ b/tests/unit/test_helpers.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_helpers.c * @brief Implementation of Shared Test Helpers diff --git a/tests/unit/test_helpers.h b/tests/unit/test_helpers.h index 929790a..6c45d90 100644 --- a/tests/unit/test_helpers.h +++ b/tests/unit/test_helpers.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_helpers.h * @brief Shared Test Helpers and Mocks for CMocka Unit Tests diff --git a/tests/unit/test_nrc_priority.c b/tests/unit/test_nrc_priority.c index d1ffbf0..c923054 100644 --- a/tests/unit/test_nrc_priority.c +++ b/tests/unit/test_nrc_priority.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_nvm_persistence.c b/tests/unit/test_nvm_persistence.c index 2400d9b..f9637f7 100644 --- a/tests/unit/test_nvm_persistence.c +++ b/tests/unit/test_nvm_persistence.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_osal.c b/tests/unit/test_osal.c index 94c544f..6aed093 100644 --- a/tests/unit/test_osal.c +++ b/tests/unit/test_osal.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_rcrrp_limit.c b/tests/unit/test_rcrrp_limit.c index d95bbf8..9f89ba1 100644 --- a/tests/unit/test_rcrrp_limit.c +++ b/tests/unit/test_rcrrp_limit.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static int mock_pending_handler(struct uds_ctx *ctx, const uint8_t *data, uint16_t len) diff --git a/tests/unit/test_safety_gate.c b/tests/unit/test_safety_gate.c index dce43dc..537ed2e 100644 --- a/tests/unit/test_safety_gate.c +++ b/tests/unit/test_safety_gate.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_10.c b/tests/unit/test_service_10.c index bd315af..79e6d02 100644 --- a/tests/unit/test_service_10.c +++ b/tests/unit/test_service_10.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_service_10.c * @brief Unit tests for SID 0x10 (Diagnostic Session Control) diff --git a/tests/unit/test_service_10_prog.c b/tests/unit/test_service_10_prog.c index 6d1cad2..9f87000 100644 --- a/tests/unit/test_service_10_prog.c +++ b/tests/unit/test_service_10_prog.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static void test_programming_session_success(void **state) diff --git a/tests/unit/test_service_11.c b/tests/unit/test_service_11.c index 5429388..fb2692a 100644 --- a/tests/unit/test_service_11.c +++ b/tests/unit/test_service_11.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_service_11.c * @brief Unit tests for SID 0x11 (ECU Reset) diff --git a/tests/unit/test_service_22.c b/tests/unit/test_service_22.c index 8a4d32b..d1b4742 100644 --- a/tests/unit/test_service_22.c +++ b/tests/unit/test_service_22.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_service_22.c * @brief Unit tests for SID 0x22 (Read Data By Identifier) diff --git a/tests/unit/test_service_27.c b/tests/unit/test_service_27.c index ad2ffac..e943aba 100644 --- a/tests/unit/test_service_27.c +++ b/tests/unit/test_service_27.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static int mock_security_seed(struct uds_ctx *ctx, uint8_t level, uint8_t *seed_buf, diff --git a/tests/unit/test_service_28.c b/tests/unit/test_service_28.c index 6cba50e..506a371 100644 --- a/tests/unit/test_service_28.c +++ b/tests/unit/test_service_28.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_29.c b/tests/unit/test_service_29.c index 048f60f..88d636a 100644 --- a/tests/unit/test_service_29.c +++ b/tests/unit/test_service_29.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_service_29.c * @brief Unit tests for Authentication (SID 0x29) diff --git a/tests/unit/test_service_2A.c b/tests/unit/test_service_2A.c index ee4cda1..60ae559 100644 --- a/tests/unit/test_service_2A.c +++ b/tests/unit/test_service_2A.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_2E.c b/tests/unit/test_service_2E.c index 45da8d1..4729e43 100644 --- a/tests/unit/test_service_2E.c +++ b/tests/unit/test_service_2E.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_2F.c b/tests/unit/test_service_2F.c index 03acf68..eae3cd2 100644 --- a/tests/unit/test_service_2F.c +++ b/tests/unit/test_service_2F.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_34_flex.c b/tests/unit/test_service_34_flex.c index cfcc86d..9732a37 100644 --- a/tests/unit/test_service_34_flex.c +++ b/tests/unit/test_service_34_flex.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static int mock_download(struct uds_ctx *ctx, uint32_t addr, uint32_t size) diff --git a/tests/unit/test_service_35.c b/tests/unit/test_service_35.c index c3f39eb..6917422 100644 --- a/tests/unit/test_service_35.c +++ b/tests/unit/test_service_35.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_3E.c b/tests/unit/test_service_3E.c index b3e0d44..7497690 100644 --- a/tests/unit/test_service_3E.c +++ b/tests/unit/test_service_3E.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_service_3E.c * @brief Unit tests for SID 0x3E (Tester Present) diff --git a/tests/unit/test_service_did.c b/tests/unit/test_service_did.c index 4948522..d1a2e3c 100644 --- a/tests/unit/test_service_did.c +++ b/tests/unit/test_service_did.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_service_did.c * @brief Unit tests for Table-Driven DID Registry (0x22/0x2E) diff --git a/tests/unit/test_service_dtc.c b/tests/unit/test_service_dtc.c index f908fab..2a91284 100644 --- a/tests/unit/test_service_dtc.c +++ b/tests/unit/test_service_dtc.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include "test_helpers.h" static int mock_dtc_read(struct uds_ctx *ctx, uint8_t subfn, uint8_t *out_buf, uint16_t max_len) diff --git a/tests/unit/test_service_flash.c b/tests/unit/test_service_flash.c index 74bfdd2..efe5273 100644 --- a/tests/unit/test_service_flash.c +++ b/tests/unit/test_service_flash.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_mem.c b/tests/unit/test_service_mem.c index 06247a6..d3800e4 100644 --- a/tests/unit/test_service_mem.c +++ b/tests/unit/test_service_mem.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_service_negative.c b/tests/unit/test_service_negative.c index e87e28b..d933bf6 100644 --- a/tests/unit/test_service_negative.c +++ b/tests/unit/test_service_negative.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_stubs.c b/tests/unit/test_stubs.c index edba1b9..1aca4c5 100644 --- a/tests/unit/test_stubs.c +++ b/tests/unit/test_stubs.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_timing.c b/tests/unit/test_timing.c index ea725c0..ed80032 100644 --- a/tests/unit/test_timing.c +++ b/tests/unit/test_timing.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + /** * @file test_timing.c * @brief Unit tests for UDSLib Timing Engine (P2/P2* and S3) diff --git a/tests/unit/test_tp_flow_control.c b/tests/unit/test_tp_flow_control.c index b327e93..6047475 100644 --- a/tests/unit/test_tp_flow_control.c +++ b/tests/unit/test_tp_flow_control.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_tp_isotp_canfd.c b/tests/unit/test_tp_isotp_canfd.c index eb80de0..b0d70b4 100644 --- a/tests/unit/test_tp_isotp_canfd.c +++ b/tests/unit/test_tp_isotp_canfd.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_tp_isotp_integration.c b/tests/unit/test_tp_isotp_integration.c index 8246611..f201527 100644 --- a/tests/unit/test_tp_isotp_integration.c +++ b/tests/unit/test_tp_isotp_integration.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tests/unit/test_transport.c b/tests/unit/test_transport.c index 0ffce06..5d070ba 100644 --- a/tests/unit/test_transport.c +++ b/tests/unit/test_transport.c @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 Andrii Shylenko + * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + */ + #include #include #include diff --git a/tools/generate_tests.py b/tools/generate_tests.py index 97abc1c..5266f80 100755 --- a/tools/generate_tests.py +++ b/tools/generate_tests.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ UDS Test Generator diff --git a/tools/odx_to_c.py b/tools/odx_to_c.py index 566343c..7ba885e 100755 --- a/tools/odx_to_c.py +++ b/tools/odx_to_c.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + """ ODX-to-C Code Generator for UDSLib diff --git a/tools/pcap_to_html.py b/tools/pcap_to_html.py index 30440d7..87e8526 100755 --- a/tools/pcap_to_html.py +++ b/tools/pcap_to_html.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + import struct import sys import json diff --git a/tools/read_pcap.py b/tools/read_pcap.py index c147a38..70e6d6f 100755 --- a/tools/read_pcap.py +++ b/tools/read_pcap.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + import struct import sys import os diff --git a/tools/udp_proxy_pcap.py b/tools/udp_proxy_pcap.py index 4506ee8..a642afc 100644 --- a/tools/udp_proxy_pcap.py +++ b/tools/udp_proxy_pcap.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# Copyright (c) 2026 Andrii Shylenko +# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 + import socket import select import struct From 6c9ba26c2bfbe5aa4698168d80bfb336df878e50 Mon Sep 17 00:00:00 2001 From: w1ne <14119286+w1ne@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:18:22 +0100 Subject: [PATCH 2/2] chore: prepare v1.11.0 release --- CHANGELOG.md | 9 +++++++++ include/uds/uds_version.h | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a0c63a..5733772 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.11.0] - 2026-02-04 + +### Added +- **Copyright Headers**: Added standard license headers to all source, include, test, and script files. +- **License**: Switched to `PolyForm-Noncommercial-1.0.0` for all core library components. + +### Fixed +- **CI/CD**: Resolved issue in release workflow where `coverage_summary.txt` was not generated. + ## [1.10.0] - 2026-02-04 ### Added diff --git a/include/uds/uds_version.h b/include/uds/uds_version.h index 5c04a60..3ffb3bf 100644 --- a/include/uds/uds_version.h +++ b/include/uds/uds_version.h @@ -19,13 +19,13 @@ extern "C" { #define UDS_VERSION_MAJOR 1 /** Minor version number (backward-compatible functionality) */ -#define UDS_VERSION_MINOR 10 +#define UDS_VERSION_MINOR 11 /** Patch version number (backward-compatible bug fixes) */ #define UDS_VERSION_PATCH 0 /** Full version string */ -#define UDS_VERSION_STR "1.10.0" +#define UDS_VERSION_STR "1.11.0" /** Version as a single integer for comparison (MMmmpp format) */ #define UDS_VERSION_INT \