aboutsummaryrefslogtreecommitdiff
path: root/testdata/Apply_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-11 21:27:58 +0700
committerShulhan <ms@kilabit.info>2026-01-11 21:36:20 +0700
commit069380e6b34d36ca2ace9c0d7e2ec4efdc4a2736 (patch)
tree2c0f0c75021eaa3a7e61fe2553ae2040ccd3f946 /testdata/Apply_test.txt
parente5daeb13cbd446a4fe882fb722d8d3359dd9bef9 (diff)
downloadspdxconv-069380e6b34d36ca2ace9c0d7e2ec4efdc4a2736.tar.xz
all: exclude file that contains both SPDX license and copyright text
If the file already contains SPDX-License-Identifier and SPDX-FileCopyrightText, in any order, ignore it from being included during scan.
Diffstat (limited to 'testdata/Apply_test.txt')
-rw-r--r--testdata/Apply_test.txt22
1 files changed, 19 insertions, 3 deletions
diff --git a/testdata/Apply_test.txt b/testdata/Apply_test.txt
index ba51ede..3ee49f4 100644
--- a/testdata/Apply_test.txt
+++ b/testdata/Apply_test.txt
@@ -59,17 +59,33 @@ pattern = "^(//+|#+)\\s+Copyright\\s+(?<year>\\d{4}),?\\s+(?<author>.*)\\s+<*(?<
2
3
->>> with_no_order.txt
-// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
+>>> with_spdx.txt
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
+
+1
+2
+3
+
+<<< with_spdx.txt
// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
1
2
3
-<<< with_no_order.txt
+>>> with_spdx_no_order.txt
+// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: BSD-3-Clause
+
+1
+2
+3
+
+<<< with_spdx_no_order.txt
// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: BSD-3-Clause
1
2