aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-11 14:01:31 +0700
committerShulhan <ms@kilabit.info>2026-01-11 21:35:24 +0700
commit9bcf61fd76ed3b54bc4d9847681749ba52c6e15f (patch)
treed138e1521100694a7aadfc3f740b93ee95e5eaa9 /testdata
parent187cf1cb9cc684f3860426be86e9c682aa6c849f (diff)
downloadspdxconv-9bcf61fd76ed3b54bc4d9847681749ba52c6e15f.tar.xz
all: implement apply command
The apply command read the "spdxconv.report" and apply the license and copyright as stated on each file in the report. A file that has been successfully processed will be removed from the report.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/Apply/.gitignore (renamed from testdata/file/.gitignore)0
-rw-r--r--testdata/Apply_test.txt (renamed from testdata/file_test.txt)10
2 files changed, 5 insertions, 5 deletions
diff --git a/testdata/file/.gitignore b/testdata/Apply/.gitignore
index e9f86eb..e9f86eb 100644
--- a/testdata/file/.gitignore
+++ b/testdata/Apply/.gitignore
diff --git a/testdata/file_test.txt b/testdata/Apply_test.txt
index d61b13a..ba51ede 100644
--- a/testdata/file_test.txt
+++ b/testdata/Apply_test.txt
@@ -19,7 +19,7 @@ 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+(?<author>.*)\\s+<*(?<contact>.*)>.*$"
>>> without_spdx_license_id.txt
1
@@ -27,7 +27,6 @@ pattern = "^(//+|#+)\\s+Copyright\\s+(?<year>\\d{4}),?\\s+(?<holder>.*)\\s+<*(?<
3
<<< without_spdx_license_id.txt
-SPDX-License-Identifier: GPL-3.0-only
1
2
3
@@ -40,6 +39,7 @@ SPDX-License-Identifier: GPL-3.0-only
<<< with_spdx_at_bottom.txt
// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: M. Shulhan <ms@kilabit.info>
1
2
@@ -53,6 +53,7 @@ SPDX-License-Identifier: GPL-3.0-only
<<< with_spdx_license_id_only.txt
// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: M. Shulhan <ms@kilabit.info>
1
2
@@ -85,7 +86,7 @@ SPDX-License-Identifier: GPL-3.0-only
<<< with_match_license.txt
// SPDX-License-Identifier: BSD-3-Clause
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
1
2
@@ -102,12 +103,11 @@ SPDX-License-Identifier: GPL-3.0-only
<<< with_match_license_bottom.txt
// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2018 Shulhan <ms@kilabit.info>
1
2
3
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-
<<< END
// REUSE-IgnoreEnd