standardize names for configure_test, build_test, install_test
This commit is contained in:
committed by
Tamara Dahlgren
parent
6e80de652c
commit
f83280cb58
@@ -91,7 +91,7 @@ def configure(self, spec, prefix):
|
||||
build_system_class = 'PythonPackage'
|
||||
|
||||
#: Callback names for build-time test
|
||||
build_time_test_callbacks = ['buildtest']
|
||||
build_time_test_callbacks = ['build_test']
|
||||
|
||||
#: Callback names for install-time test
|
||||
install_time_test_callbacks = ['import_module_test']
|
||||
@@ -361,7 +361,7 @@ def check_args(self, spec, prefix):
|
||||
|
||||
# Testing
|
||||
|
||||
def buildtest(self):
|
||||
def build_test(self):
|
||||
"""Run unit tests after in-place build.
|
||||
|
||||
These tests are only run if the package actually has a 'test' command.
|
||||
|
||||
@@ -33,7 +33,7 @@ class SConsPackage(PackageBase):
|
||||
build_system_class = 'SConsPackage'
|
||||
|
||||
#: Callback names for build-time test
|
||||
build_time_test_callbacks = ['buildtest']
|
||||
build_time_test_callbacks = ['build_test']
|
||||
|
||||
depends_on('scons', type='build')
|
||||
|
||||
@@ -59,7 +59,7 @@ def install(self, spec, prefix):
|
||||
|
||||
# Testing
|
||||
|
||||
def buildtest(self):
|
||||
def build_test(self):
|
||||
"""Run unit tests after build.
|
||||
|
||||
By default, does nothing. Override this if you want to
|
||||
|
||||
@@ -47,10 +47,10 @@ class WafPackage(PackageBase):
|
||||
build_system_class = 'WafPackage'
|
||||
|
||||
# Callback names for build-time test
|
||||
build_time_test_callbacks = ['buildtest']
|
||||
build_time_test_callbacks = ['build_test']
|
||||
|
||||
# Callback names for install-time test
|
||||
install_time_test_callbacks = ['installtest']
|
||||
install_time_test_callbacks = ['install_test']
|
||||
|
||||
# Much like AutotoolsPackage does not require automake and autoconf
|
||||
# to build, WafPackage does not require waf to build. It only requires
|
||||
@@ -106,7 +106,7 @@ def install_args(self):
|
||||
|
||||
# Testing
|
||||
|
||||
def buildtest(self):
|
||||
def build_test(self):
|
||||
"""Run unit tests after build.
|
||||
|
||||
By default, does nothing. Override this if you want to
|
||||
@@ -116,7 +116,7 @@ def buildtest(self):
|
||||
|
||||
run_after('build')(PackageBase._run_default_build_time_test_callbacks)
|
||||
|
||||
def installtest(self):
|
||||
def install_test(self):
|
||||
"""Run unit tests after install.
|
||||
|
||||
By default, does nothing. Override this if you want to
|
||||
|
||||
Reference in New Issue
Block a user