rteval: Add SPDX and copyright headers to test files
PATCH 1/1 rteval: Add SPDX and copyright headers to test files
Several files under tests/ were missing an SPDX-License-Identifier tag and/or a copyright line. Add the GPL-2.0-or-later identifier where it was absent and a copyright line to the files authored in this tree, using the existing no-dash "Copyright YEAR John Kacur" style already present in the other unit tests. Years reflect each file's initial commit.
The tests/e2e/*.t and engine.sh files are intentionally left untouched:
they already carry an SPDX tag and are authored by someone else, so their copyright line is not ours to add.
Assisted-by Claude:claude-opus-4-8
Signed-off-by John Kacur <[email protected]>
--- tests/cpusets/test-cpusets.sh | 3 +++ tests/regression/mock-cyclictest-partial-output.py | 2 ++ tests/regression/mock-rtla-timerlat-partial-output.py | 2 ++ tests/regression/test-cyclictest-error-handling.sh | 2 ++ tests/regression/test-timerlat-error-handling.sh | 2 ++ tests/run_tests.sh | 1 + tests/test_core_sharing_validation.py | 1 + tests/test_cpulist_class.py | 2 ++ tests/test_measurement_module_selection.py | 1 + 9 files changed, 16 insertions(+)
tests/cpusets/test-cpusets.sh +3 -0
@@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> +# # test-cpusets.sh - Automated testing for rteval cpuset integration # # Note: 'set -e' is intentionally NOT used here. This suite tracks results
tests/regression/mock-cyclictest-partial-output.py +2 -0
@@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> """ Mock cyclictest that produces partial/malformed histogram output to test rteval's error handling improvements (RHEL-140898)
tests/regression/mock-rtla-timerlat-partial-output.py +2 -0
@@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> """ Mock rtla timerlat that produces partial/malformed histogram output to test rteval's error handling improvements (RHEL-140898)
tests/regression/test-cyclictest-error-handling.sh +2 -0
@@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> # # Test script for cyclictest error handling (RHEL-140898) # Tests that rteval handles partial/malformed cyclictest output gracefully
tests/regression/test-timerlat-error-handling.sh +2 -0
@@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> # # Test script for timerlat error handling (RHEL-140898) # Tests that rteval handles partial/malformed rtla output gracefully
tests/run_tests.sh +1 -0
@@ -1,5 +1,6 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> # # Test runner for rteval unit tests #
tests/test_core_sharing_validation.py +1 -0
@@ -1,5 +1,6 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> # # Unit test for core sharing validation with mocked isolated CPUs #
tests/test_cpulist_class.py +2 -0
@@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2026 John Kacur <[email protected]> """Test script for the new CpuList class""" import sys
tests/test_measurement_module_selection.py +1 -0
@@ -1,5 +1,6 @@ #!/usr/bin/python3 # SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2025 John Kacur <[email protected]> # # Unit test for --measurement-module command-line argument #
Signature · 1 line
2.55.0