mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
patman: Rename test.py to test_checkpatch.py
These tests check checkpatch.pl operation and can server as our tests for the U-Boot-specific updates to that script. Rename the file and update comments to indicate this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -25,7 +25,7 @@ from patman import patchstream
|
|||||||
from patman import project
|
from patman import project
|
||||||
from patman import settings
|
from patman import settings
|
||||||
from patman import terminal
|
from patman import terminal
|
||||||
from patman import test
|
from patman import test_checkpatch
|
||||||
|
|
||||||
|
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
@@ -93,7 +93,7 @@ elif options.test:
|
|||||||
|
|
||||||
sys.argv = [sys.argv[0]]
|
sys.argv = [sys.argv[0]]
|
||||||
result = unittest.TestResult()
|
result = unittest.TestResult()
|
||||||
for module in (test.TestPatch, func_test.TestFunctional):
|
for module in (test_checkpatch.TestPatch, func_test.TestFunctional):
|
||||||
suite = unittest.TestLoader().loadTestsFromTestCase(module)
|
suite = unittest.TestLoader().loadTestsFromTestCase(module)
|
||||||
suite.run(result)
|
suite.run(result)
|
||||||
|
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
# Tests for U-Boot-specific checkpatch.pl features
|
||||||
|
#
|
||||||
# Copyright (c) 2011 The Chromium OS Authors.
|
# Copyright (c) 2011 The Chromium OS Authors.
|
||||||
#
|
#
|
||||||
|
|
||||||
@@ -16,10 +18,7 @@ from patman import commit
|
|||||||
|
|
||||||
|
|
||||||
class TestPatch(unittest.TestCase):
|
class TestPatch(unittest.TestCase):
|
||||||
"""Test this program
|
"""Test the u_boot_line() function in checkpatch.pl"""
|
||||||
|
|
||||||
TODO: Write tests for the rest of the functionality
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testBasic(self):
|
def testBasic(self):
|
||||||
"""Test basic filter operation"""
|
"""Test basic filter operation"""
|
Reference in New Issue
Block a user