Check license headers in ./tests

This commit is contained in:
Simon Sapin 2015-04-08 00:44:04 +02:00
parent 3b1cfe8458
commit 2a6f2cde50
2 changed files with 10 additions and 2 deletions

View file

@ -23,6 +23,14 @@ licenses = [
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""",
"""\
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""",
"""\
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this

View file

@ -14,7 +14,7 @@ import fnmatch
import itertools
from licenseck import licenses
directories_to_check = ["ports", "components"]
directories_to_check = ["ports", "components", "tests"]
filetypes_to_check = [".rs", ".rc", ".cpp", ".c", ".h", ".py"]
reftest_directories = ["tests/ref"]
reftest_filetype = ".list"
@ -22,7 +22,7 @@ reftest_filetype = ".list"
ignored_files = [
# Upstream
"support/*",
"tests/wpt/web-platform-tests/*",
"tests/wpt/*",
# Generated and upstream code combined with our own. Could use cleanup
"components/script/dom/bindings/codegen/*",