diff options
author | Steve Winslow <swinslow@gmail.com> | 2018-10-23 13:53:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 13:53:27 -0400 |
commit | ae1c8cc9c9d8a8d742db9d217dcfebe1d4e86470 (patch) | |
tree | ecb0b5f9048acd699ca971b69789d498a2d285d4 /testdata/project2 | |
parent | 9bdbd71d7ef6af91c607b55aa9cec3ad3110c059 (diff) | |
download | spdx-tools-ae1c8cc9c9d8a8d742db9d217dcfebe1d4e86470.tar.gz |
Move docs and testdata outside of v0 (#18)
Signed-off-by: Steve Winslow <swinslow@gmail.com>
Diffstat (limited to 'testdata/project2')
-rw-r--r-- | testdata/project2/folder/has-one-id.py | 5 | ||||
-rw-r--r-- | testdata/project2/folder/has-trailing-comment-marker.c | 8 | ||||
-rw-r--r-- | testdata/project2/has-duplicate-ids.txt | 7 | ||||
-rw-r--r-- | testdata/project2/has-id.txt | 3 | ||||
-rw-r--r-- | testdata/project2/has-multiple-ids.txt | 11 | ||||
-rw-r--r-- | testdata/project2/no-id.txt | 1 |
6 files changed, 35 insertions, 0 deletions
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 |