aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/project1/emptyfile.testdata.txt0
-rw-r--r--testdata/project1/file1.testdata.txt1
-rw-r--r--testdata/project1/file3.testdata.txt1
-rw-r--r--testdata/project1/folder1/file4.testdata.txt2
-rw-r--r--testdata/project1/lastfile.testdata.txt3
l---------testdata/project1/symbolic-link1
-rw-r--r--testdata/project2/folder/has-one-id.py5
-rw-r--r--testdata/project2/folder/has-trailing-comment-marker.c8
-rw-r--r--testdata/project2/has-duplicate-ids.txt7
-rw-r--r--testdata/project2/has-id.txt3
-rw-r--r--testdata/project2/has-multiple-ids.txt11
-rw-r--r--testdata/project2/no-id.txt1
-rw-r--r--testdata/project3/alsoEXCLUDEthis.txt0
-rw-r--r--testdata/project3/dontscan.txt1
-rw-r--r--testdata/project3/excludedir/no.txt0
-rw-r--r--testdata/project3/ignoredir/notThisOne.txt0
-rw-r--r--testdata/project3/ignorefile.txt0
-rw-r--r--testdata/project3/keep.txt0
-rw-r--r--testdata/project3/keep/keep.txt1
-rw-r--r--testdata/project3/subdir/ignoredir/notThisOneEither.txt0
-rw-r--r--testdata/project3/subdir/ignorefile.txt0
-rw-r--r--testdata/project3/subdir/keep/dontscan.txt1
-rw-r--r--testdata/project3/subdir/keep/keep.txt1
23 files changed, 47 insertions, 0 deletions
diff --git a/testdata/project1/emptyfile.testdata.txt b/testdata/project1/emptyfile.testdata.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project1/emptyfile.testdata.txt
diff --git a/testdata/project1/file1.testdata.txt b/testdata/project1/file1.testdata.txt
new file mode 100644
index 0000000..a9ec36c
--- /dev/null
+++ b/testdata/project1/file1.testdata.txt
@@ -0,0 +1 @@
+arbitrary content for testing purposes
diff --git a/testdata/project1/file3.testdata.txt b/testdata/project1/file3.testdata.txt
new file mode 100644
index 0000000..2a75979
--- /dev/null
+++ b/testdata/project1/file3.testdata.txt
@@ -0,0 +1 @@
+This file contains some sort of documentation or whatever
diff --git a/testdata/project1/folder1/file4.testdata.txt b/testdata/project1/folder1/file4.testdata.txt
new file mode 100644
index 0000000..3cc937e
--- /dev/null
+++ b/testdata/project1/folder1/file4.testdata.txt
@@ -0,0 +1,2 @@
+blah blah blah
+this file has text in it
diff --git a/testdata/project1/lastfile.testdata.txt b/testdata/project1/lastfile.testdata.txt
new file mode 100644
index 0000000..5545f2c
--- /dev/null
+++ b/testdata/project1/lastfile.testdata.txt
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
+somebody was kind enough to stick an spdx short-form ID in here
diff --git a/testdata/project1/symbolic-link b/testdata/project1/symbolic-link
new file mode 120000
index 0000000..11a1795
--- /dev/null
+++ b/testdata/project1/symbolic-link
@@ -0,0 +1 @@
+file3.testdata.txt \ No newline at end of file
diff --git a/testdata/project2/folder/has-one-id.py b/testdata/project2/folder/has-one-id.py
new file mode 100644
index 0000000..17ee16a
--- /dev/null
+++ b/testdata/project2/folder/has-one-id.py
@@ -0,0 +1,5 @@
+# a comment in the python file
+# SPDX-License-Identifier: MIT
+
+if __name__ == "__main__":
+ print("Hello world!")
diff --git a/testdata/project2/folder/has-trailing-comment-marker.c b/testdata/project2/folder/has-trailing-comment-marker.c
new file mode 100644
index 0000000..a157b4c
--- /dev/null
+++ b/testdata/project2/folder/has-trailing-comment-marker.c
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+# include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ printf("Hello world!\n");
+ return 0;
+}
diff --git a/testdata/project2/has-duplicate-ids.txt b/testdata/project2/has-duplicate-ids.txt
new file mode 100644
index 0000000..b2ef883
--- /dev/null
+++ b/testdata/project2/has-duplicate-ids.txt
@@ -0,0 +1,7 @@
+SPDX-License-Identifier: MIT
+
+hi
+
+SPDX-License-Identifier: MIT
+
+oops we repeated it
diff --git a/testdata/project2/has-id.txt b/testdata/project2/has-id.txt
new file mode 100644
index 0000000..5545f2c
--- /dev/null
+++ b/testdata/project2/has-id.txt
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+
+somebody was kind enough to stick an spdx short-form ID in here
diff --git a/testdata/project2/has-multiple-ids.txt b/testdata/project2/has-multiple-ids.txt
new file mode 100644
index 0000000..0aee520
--- /dev/null
+++ b/testdata/project2/has-multiple-ids.txt
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: (MIT AND BSD-3-Clause) OR ISC
+
+hey look it's a short-form ID
+
+// SPDX-License-Identifier: BSD-2-Clause
+
+well there's another one, I guess it applies to this content?
+
+// SPDX-License-Identifier: CC0-1.0
+
+and another one
diff --git a/testdata/project2/no-id.txt b/testdata/project2/no-id.txt
new file mode 100644
index 0000000..41444ff
--- /dev/null
+++ b/testdata/project2/no-id.txt
@@ -0,0 +1 @@
+this file doesn't have any short-form IDs
diff --git a/testdata/project3/alsoEXCLUDEthis.txt b/testdata/project3/alsoEXCLUDEthis.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/alsoEXCLUDEthis.txt
diff --git a/testdata/project3/dontscan.txt b/testdata/project3/dontscan.txt
new file mode 100644
index 0000000..73ff8db
--- /dev/null
+++ b/testdata/project3/dontscan.txt
@@ -0,0 +1 @@
+SPDX-License-Identifier: OOPS
diff --git a/testdata/project3/excludedir/no.txt b/testdata/project3/excludedir/no.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/excludedir/no.txt
diff --git a/testdata/project3/ignoredir/notThisOne.txt b/testdata/project3/ignoredir/notThisOne.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/ignoredir/notThisOne.txt
diff --git a/testdata/project3/ignorefile.txt b/testdata/project3/ignorefile.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/ignorefile.txt
diff --git a/testdata/project3/keep.txt b/testdata/project3/keep.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/keep.txt
diff --git a/testdata/project3/keep/keep.txt b/testdata/project3/keep/keep.txt
new file mode 100644
index 0000000..59d7f40
--- /dev/null
+++ b/testdata/project3/keep/keep.txt
@@ -0,0 +1 @@
+SPDX-License-Identifier: MIT
diff --git a/testdata/project3/subdir/ignoredir/notThisOneEither.txt b/testdata/project3/subdir/ignoredir/notThisOneEither.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/subdir/ignoredir/notThisOneEither.txt
diff --git a/testdata/project3/subdir/ignorefile.txt b/testdata/project3/subdir/ignorefile.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/project3/subdir/ignorefile.txt
diff --git a/testdata/project3/subdir/keep/dontscan.txt b/testdata/project3/subdir/keep/dontscan.txt
new file mode 100644
index 0000000..73ff8db
--- /dev/null
+++ b/testdata/project3/subdir/keep/dontscan.txt
@@ -0,0 +1 @@
+SPDX-License-Identifier: OOPS
diff --git a/testdata/project3/subdir/keep/keep.txt b/testdata/project3/subdir/keep/keep.txt
new file mode 100644
index 0000000..59d7f40
--- /dev/null
+++ b/testdata/project3/subdir/keep/keep.txt
@@ -0,0 +1 @@
+SPDX-License-Identifier: MIT