aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-07 14:36:59 +0700
committerShulhan <ms@kilabit.info>2026-01-07 14:36:59 +0700
commit161049a3996c574d521d6d3df55998028eb111c0 (patch)
tree5fbd77bdd7910dcead3568a9bfabf18515bfa14c /testdata
parent08a4462c66fab99e5e66b465f053291c438dd0e0 (diff)
downloadspdxconv-161049a3996c574d521d6d3df55998028eb111c0.tar.xz
all: exclude file that have ".license" file
If the file X has another file named "X.license" in the same directory, exclude it for being processed. The ".license" is SPDX specific file that contains only SPDX identifiers.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/loadConfig/config_exists/spdxconv.cfg2
-rw-r--r--testdata/scan/dummy2
-rw-r--r--testdata/scan/dummy.license2
3 files changed, 5 insertions, 1 deletions
diff --git a/testdata/loadConfig/config_exists/spdxconv.cfg b/testdata/loadConfig/config_exists/spdxconv.cfg
index e4edf89..669d38a 100644
--- a/testdata/loadConfig/config_exists/spdxconv.cfg
+++ b/testdata/loadConfig/config_exists/spdxconv.cfg
@@ -11,4 +11,4 @@ delete_line_pattern = "^(//+|#+)*\\s*$"
delete_line_pattern = "^(//+|#+)*\\s+license that(.*)$"
[match-copyright]
-pattern = "^(//+|#+)*\\s+Copyright\\s+(?<year>\\d{4},?\\s+(?<holder>.*)\\s+<*(?<email>.*)>.*$"
+pattern = "^(//+|#+)*\\s+Copyright\\s+(?<year>\\d{4}),?\\s+(?<holder>.*)\\s+<*(?<email>.*)>.*$"
diff --git a/testdata/scan/dummy b/testdata/scan/dummy
new file mode 100644
index 0000000..73fd7c8
--- /dev/null
+++ b/testdata/scan/dummy
@@ -0,0 +1,2 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info>
diff --git a/testdata/scan/dummy.license b/testdata/scan/dummy.license
new file mode 100644
index 0000000..73fd7c8
--- /dev/null
+++ b/testdata/scan/dummy.license
@@ -0,0 +1,2 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info>