aboutsummaryrefslogtreecommitdiff
path: root/testdata/scan
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-11 20:36:38 +0700
committerShulhan <ms@kilabit.info>2026-01-11 21:36:20 +0700
commite5daeb13cbd446a4fe882fb722d8d3359dd9bef9 (patch)
tree9a160c1f93e5f60852427b5c3e831b944c311aa5 /testdata/scan
parentc3fbfbeab5605e3e2d31dc9a8dd95e9ca7139145 (diff)
downloadspdxconv-e5daeb13cbd446a4fe882fb722d8d3359dd9bef9.tar.xz
all: ignore symlink, COPYING, LICENSE, and LICENSES
For symlink, we ignore for now. COPYING, LICENSE, and LICENSES are common files part of SPDX/reuse specifications. While at it, fix checking if path is ignored by git by passing the relative path instead of base name.
Diffstat (limited to 'testdata/scan')
-rw-r--r--testdata/scan/a/b/.gitignore5
-rw-r--r--testdata/scan/a/b/b12
-rw-r--r--testdata/scan/a/b/c/c12
l---------testdata/scan/symdir1
-rw-r--r--testdata/scan/test.go4
5 files changed, 13 insertions, 1 deletions
diff --git a/testdata/scan/a/b/.gitignore b/testdata/scan/a/b/.gitignore
new file mode 100644
index 0000000..405fc5e
--- /dev/null
+++ b/testdata/scan/a/b/.gitignore
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
+
+*
+!/.gitignore
diff --git a/testdata/scan/a/b/b1 b/testdata/scan/a/b/b1
new file mode 100644
index 0000000..be9e78a
--- /dev/null
+++ b/testdata/scan/a/b/b1
@@ -0,0 +1,2 @@
+// SPDX-License-Identifier: CC0-1.0
+// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
diff --git a/testdata/scan/a/b/c/c1 b/testdata/scan/a/b/c/c1
new file mode 100644
index 0000000..be9e78a
--- /dev/null
+++ b/testdata/scan/a/b/c/c1
@@ -0,0 +1,2 @@
+// SPDX-License-Identifier: CC0-1.0
+// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
diff --git a/testdata/scan/symdir b/testdata/scan/symdir
new file mode 120000
index 0000000..5657f6e
--- /dev/null
+++ b/testdata/scan/symdir
@@ -0,0 +1 @@
+vendor \ No newline at end of file
diff --git a/testdata/scan/test.go b/testdata/scan/test.go
index 46e2bd9..a50aac4 100644
--- a/testdata/scan/test.go
+++ b/testdata/scan/test.go
@@ -1,3 +1,5 @@
// Copyright 2022, Shulhan <ms@kilabit.info>. All rights reserved.
// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file. \ No newline at end of file
+// license that can be found in the LICENSE file.
+
+package spdxconv_test