From ae1c8cc9c9d8a8d742db9d217dcfebe1d4e86470 Mon Sep 17 00:00:00 2001 From: Steve Winslow Date: Tue, 23 Oct 2018 13:53:27 -0400 Subject: Move docs and testdata outside of v0 (#18) Signed-off-by: Steve Winslow --- testdata/project2/folder/has-one-id.py | 5 +++++ testdata/project2/folder/has-trailing-comment-marker.c | 8 ++++++++ testdata/project2/has-duplicate-ids.txt | 7 +++++++ testdata/project2/has-id.txt | 3 +++ testdata/project2/has-multiple-ids.txt | 11 +++++++++++ testdata/project2/no-id.txt | 1 + 6 files changed, 35 insertions(+) create mode 100644 testdata/project2/folder/has-one-id.py create mode 100644 testdata/project2/folder/has-trailing-comment-marker.c create mode 100644 testdata/project2/has-duplicate-ids.txt create mode 100644 testdata/project2/has-id.txt create mode 100644 testdata/project2/has-multiple-ids.txt create mode 100644 testdata/project2/no-id.txt (limited to 'testdata/project2') 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 + +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 -- cgit v1.2.3