Skip to contentSkip to conversation

rteval: Add SPDX and copyright headers to test files

PATCH New John Kacur 1 participant 1 message Sep 11

lore
Share & tools
lore

John Kacur

author
#0 lore raw

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
---
 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
index bc7fd90e0e37..5e1293532aca 100755
@@ -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
index 6bfc2a4ec41a..a3289a712eff 100755
@@ -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
index 63f9d89af2d9..0d3156f2d03a 100755
@@ -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
index 861e74480054..728d84656dcc 100755
@@ -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
index 7f2c99069e96..9161d36ac3ba 100755
@@ -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
index c241ddc11adf..d00121e8651b 100755
@@ -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
index 3c229a47e722..383b028516c1 100755
@@ -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
index bcb92e4a719d..c16934077052 100644
@@ -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
index 2216cc668297..db860eb23df2 100755
@@ -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