Add more tests for the SPDX-License-Identifier

This commit is contained in:
Alex Beregszaszi 2020-12-18 14:31:52 +00:00 committed by Kamil Śliwak
parent 359c70649d
commit 5bbb017915
7 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,7 @@
EXCLUDE_FILES=(
"libsolutil/picosha2.h"
"test/libsolutil/UTF8.cpp"
"test/libsolidity/syntaxTests/license/license_whitespace_trailing.sol"
)
EXCLUDE_FILES_JOINED=$(printf "%s\|" "${EXCLUDE_FILES[@]}")
EXCLUDE_FILES_JOINED=${EXCLUDE_FILES_JOINED%??}

View File

@ -0,0 +1,3 @@
// This is parsed as GPL-3.0:
// SPDX-License-Identifier: GPL-3.0
contract C {}

View File

@ -0,0 +1,2 @@
/// SPDX-License-Identifier: GPL-3.0
contract C {}

View File

@ -0,0 +1,3 @@
// This is just ignored:
// SPDX-License-Identifier:
contract C {}

View File

@ -0,0 +1,2 @@
// SPDX-License-Identifier: GPL-3.0
contract C {}

View File

@ -0,0 +1,2 @@
// SPDX-License-Identifier: GPL-3.0
contract C {}

View File

@ -0,0 +1,2 @@
// SPDX-License-Identifier: GPL-3.0
contract C {}