Enable audioproc_unittest on more platforms.
Also, re-enable the floating point profile on Linux, and disable test_fec until we can reduce the running time. BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/372003 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1536 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
f6bb77a6f0
commit
24f1c90577
@ -70,7 +70,7 @@ webrtc_scheduler = Scheduler(name="all", branch=None, treeStableTimer=5*60,
|
|||||||
"Win32Release",
|
"Win32Release",
|
||||||
"MacOS",
|
"MacOS",
|
||||||
"ChromeOS",
|
"ChromeOS",
|
||||||
"LinuxCLANG",
|
"LinuxCLANG",
|
||||||
"Linux64bitDBG",
|
"Linux64bitDBG",
|
||||||
"Linux32bitRelease",
|
"Linux32bitRelease",
|
||||||
"Linux64bitRelease",
|
"Linux64bitRelease",
|
||||||
@ -122,8 +122,10 @@ DEFAULT_LINUX_TESTS = ["audio_coding_module_test",
|
|||||||
"signal_processing_unittests",
|
"signal_processing_unittests",
|
||||||
"system_wrappers_unittests",
|
"system_wrappers_unittests",
|
||||||
"test_bwe",
|
"test_bwe",
|
||||||
"test_fec",
|
# TODO(andrew): enable test_fec (and below) when its
|
||||||
"udp_transport_unittests",
|
# running time is reduced.
|
||||||
|
#"test_fec",
|
||||||
|
"udp_transport_unittests",
|
||||||
"vad_unittests",
|
"vad_unittests",
|
||||||
"video_coding_unittests",
|
"video_coding_unittests",
|
||||||
"video_engine_core_unittests",
|
"video_engine_core_unittests",
|
||||||
@ -149,7 +151,7 @@ DEFAULT_MACOS_TESTS = ["audio_coding_module_test",
|
|||||||
"signal_processing_unittests",
|
"signal_processing_unittests",
|
||||||
"system_wrappers_unittests",
|
"system_wrappers_unittests",
|
||||||
"test_bwe",
|
"test_bwe",
|
||||||
"test_fec",
|
#"test_fec",
|
||||||
"udp_transport_unittests",
|
"udp_transport_unittests",
|
||||||
"vad_unittests",
|
"vad_unittests",
|
||||||
"video_coding_unittests",
|
"video_coding_unittests",
|
||||||
@ -158,25 +160,26 @@ DEFAULT_MACOS_TESTS = ["audio_coding_module_test",
|
|||||||
"voice_engine_unittests",
|
"voice_engine_unittests",
|
||||||
"vp8_unittests",
|
"vp8_unittests",
|
||||||
"webrtc_utility_unittests"]
|
"webrtc_utility_unittests"]
|
||||||
|
|
||||||
|
# TODO(andrew): most tests should now run properly on Windows.
|
||||||
DEFAULT_WIN_TESTS = ["audio_coding_unittests",
|
DEFAULT_WIN_TESTS = ["audio_coding_unittests",
|
||||||
"audioproc_unittest",
|
"audioproc_unittest",
|
||||||
"libyuv_unittests",
|
"libyuv_unittests",
|
||||||
"neteq_unittests",
|
"neteq_unittests",
|
||||||
"resampler_unittests",
|
"resampler_unittests",
|
||||||
"system_wrappers_unittests",
|
"system_wrappers_unittests",
|
||||||
|
#"test_fec"
|
||||||
"vad_unittests",
|
"vad_unittests",
|
||||||
"video_engine_core_unittests",
|
"video_engine_core_unittests",
|
||||||
|
"video_processing_unittests",
|
||||||
"voice_engine_unittests",
|
"voice_engine_unittests",
|
||||||
"vp8_unittests"]
|
"vp8_unittests"]
|
||||||
|
|
||||||
HEADLESS_LINUX = ["audio_device_test_api"
|
HEADLESS_LINUX = ["audio_device_test_api",
|
||||||
"audio_device_test_func",
|
"audio_device_test_func"]
|
||||||
"test_fec",
|
HEADLESS_MACOS = ["audio_device_test_api",
|
||||||
"video_processing_unittests"]
|
"audio_device_test_func"]
|
||||||
HEADLESS_MACOS = ["audio_device_test_api"
|
HEADLESS_WIN = ["audio_device_test_api",
|
||||||
"audio_device_test_func",
|
|
||||||
"video_processing_unittests"]
|
|
||||||
HEADLESS_WIN = ["audio_device_test_api"
|
|
||||||
"audio_device_test_func"]
|
"audio_device_test_func"]
|
||||||
|
|
||||||
############# Linux Builders #######################################
|
############# Linux Builders #######################################
|
||||||
|
@ -22,7 +22,7 @@ SVN_LOCATION = "http://webrtc.googlecode.com/svn/trunk"
|
|||||||
|
|
||||||
class WebRTCFactory(factory.BuildFactory):
|
class WebRTCFactory(factory.BuildFactory):
|
||||||
"""A Build Factory affected by properties."""
|
"""A Build Factory affected by properties."""
|
||||||
|
|
||||||
def __init__(self, build_factory_properties=None, steps=None,
|
def __init__(self, build_factory_properties=None, steps=None,
|
||||||
enable_coverage=False, account=None):
|
enable_coverage=False, account=None):
|
||||||
factory.BuildFactory.__init__(self, steps)
|
factory.BuildFactory.__init__(self, steps)
|
||||||
@ -42,7 +42,6 @@ class WebRTCFactory(factory.BuildFactory):
|
|||||||
else:
|
else:
|
||||||
self.coverage_url = "http://www.corp.google.com/~%s" % self.account
|
self.coverage_url = "http://www.corp.google.com/~%s" % self.account
|
||||||
self.coverage_dir = "/home/%s/www" % self.account
|
self.coverage_dir = "/home/%s/www" % self.account
|
||||||
|
|
||||||
|
|
||||||
def EnableBuild(self, force_sync):
|
def EnableBuild(self, force_sync):
|
||||||
"""Build the binary [must be overridden]."""
|
"""Build the binary [must be overridden]."""
|
||||||
@ -97,7 +96,7 @@ class WebRTCFactory(factory.BuildFactory):
|
|||||||
"""Enable Test to be run.
|
"""Enable Test to be run.
|
||||||
|
|
||||||
tests: list of test to be run.
|
tests: list of test to be run.
|
||||||
"""
|
"""
|
||||||
print "Headless tests:%s" % self.headless_tests
|
print "Headless tests:%s" % self.headless_tests
|
||||||
if self.enable_coverage:
|
if self.enable_coverage:
|
||||||
self.EnableBaseCoverage()
|
self.EnableBaseCoverage()
|
||||||
@ -110,7 +109,7 @@ class WebRTCFactory(factory.BuildFactory):
|
|||||||
"""Add headless (build only) tests.
|
"""Add headless (build only) tests.
|
||||||
|
|
||||||
tests: list of headless test.
|
tests: list of headless test.
|
||||||
"""
|
"""
|
||||||
self.headless_tests += tests
|
self.headless_tests += tests
|
||||||
|
|
||||||
def EnableBaseCoverage(self):
|
def EnableBaseCoverage(self):
|
||||||
@ -153,7 +152,7 @@ class GenerateCodeCoverage(ShellCommand):
|
|||||||
for f in files:
|
for f in files:
|
||||||
os.chmod(os.path.join(root, f), 0777)
|
os.chmod(os.path.join(root, f), 0777)
|
||||||
self.addURL("coverage", coverage_url)
|
self.addURL("coverage", coverage_url)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
ShellCommand.start(self)
|
ShellCommand.start(self)
|
||||||
|
|
||||||
@ -174,7 +173,7 @@ class WebRTCAndroidFactory(WebRTCFactory):
|
|||||||
prefix + "SHARE_LIBRARIES/libwebrtc_*",
|
prefix + "SHARE_LIBRARIES/libwebrtc_*",
|
||||||
prefix + "EXECUTABLES/webrtc_*"
|
prefix + "EXECUTABLES/webrtc_*"
|
||||||
]
|
]
|
||||||
cmd = " ; ".join(cleanup_list)
|
cmd = " ; ".join(cleanup_list)
|
||||||
self.addStep(shell.Compile(command=(cmd), workdir="build/trunk",
|
self.addStep(shell.Compile(command=(cmd), workdir="build/trunk",
|
||||||
description=["cleanup", "running..."], haltOnFailure=False,
|
description=["cleanup", "running..."], haltOnFailure=False,
|
||||||
warnOnFailure=True, flunkOnFailure =False,
|
warnOnFailure=True, flunkOnFailure =False,
|
||||||
@ -256,7 +255,7 @@ class WebRTCLinuxFactory(WebRTCFactory):
|
|||||||
if clang:
|
if clang:
|
||||||
self.AddCommonStep(["trunk/tools/clang/scripts/update.sh"],
|
self.AddCommonStep(["trunk/tools/clang/scripts/update.sh"],
|
||||||
descriptor="Update_Clang")
|
descriptor="Update_Clang")
|
||||||
|
|
||||||
if self.release:
|
if self.release:
|
||||||
self.AddCommonMakeStep("all", make_extra="BUILDTYPE=Release")
|
self.AddCommonMakeStep("all", make_extra="BUILDTYPE=Release")
|
||||||
else:
|
else:
|
||||||
@ -336,10 +335,11 @@ class WebRTCLinuxFactory(WebRTCFactory):
|
|||||||
test: test to be run.
|
test: test to be run.
|
||||||
"""
|
"""
|
||||||
if test == "audioproc_unittest":
|
if test == "audioproc_unittest":
|
||||||
|
self.AddCommonTestRunStep(test)
|
||||||
self.AddCommonGYPStep("webrtc.gyp", gyp_params=["-Dprefer_fixed_point=1"],
|
self.AddCommonGYPStep("webrtc.gyp", gyp_params=["-Dprefer_fixed_point=1"],
|
||||||
descriptor="gyp_tests_fp")
|
descriptor="fixed_point")
|
||||||
self.AddCommonMakeStep(test, descriptor="_fixed_point")
|
self.AddCommonMakeStep(test, descriptor="make_fixed_point")
|
||||||
self.AddCommonTestRunStep(test, descriptor="_fixed_point")
|
self.AddCommonTestRunStep(test, descriptor="fixed_point")
|
||||||
elif test == "signal_processing_unittests":
|
elif test == "signal_processing_unittests":
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "resampler_unittests":
|
elif test == "resampler_unittests":
|
||||||
@ -436,9 +436,9 @@ class WebRTCMacFactory(WebRTCFactory):
|
|||||||
if force_sync:
|
if force_sync:
|
||||||
cmd.append("--force")
|
cmd.append("--force")
|
||||||
self.AddCommonStep(cmd, descriptor="Sync")
|
self.AddCommonStep(cmd, descriptor="Sync")
|
||||||
if self.build_type == "make" or self.build_type == "both":
|
if self.build_type == "make" or self.build_type == "both":
|
||||||
self.AddCommonGYPStep("webrtc.gyp", gyp_params=["-f", "make"],
|
self.AddCommonGYPStep("webrtc.gyp", gyp_params=["-f", "make"],
|
||||||
descriptor="EnableMake")
|
descriptor="EnableMake")
|
||||||
self.AddCommonMakeStep("all")
|
self.AddCommonMakeStep("all")
|
||||||
|
|
||||||
def AddCommonTestRunStep(self, test, descriptor="", cmd=None,
|
def AddCommonTestRunStep(self, test, descriptor="", cmd=None,
|
||||||
@ -478,7 +478,7 @@ class WebRTCMacFactory(WebRTCFactory):
|
|||||||
test: test to be run.
|
test: test to be run.
|
||||||
"""
|
"""
|
||||||
if test == "audioproc_unittest":
|
if test == "audioproc_unittest":
|
||||||
print "Does not run on Mac now"
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "signal_processing_unittests":
|
elif test == "signal_processing_unittests":
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "resampler_unittests":
|
elif test == "resampler_unittests":
|
||||||
@ -494,7 +494,7 @@ class WebRTCMacFactory(WebRTCFactory):
|
|||||||
elif test == "audio_device_test_api":
|
elif test == "audio_device_test_api":
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "audio_device_test_func":
|
elif test == "audio_device_test_func":
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "audio_coding_module_test":
|
elif test == "audio_coding_module_test":
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "video_processing_unittests":
|
elif test == "video_processing_unittests":
|
||||||
@ -562,7 +562,7 @@ class WebRTCWinFactory(WebRTCFactory):
|
|||||||
if force_sync:
|
if force_sync:
|
||||||
cmd.append("--force")
|
cmd.append("--force")
|
||||||
self.AddCommonStep(cmd, descriptor="Sync")
|
self.AddCommonStep(cmd, descriptor="Sync")
|
||||||
|
|
||||||
if self.configuration == "Debug" or self.configuration == "both":
|
if self.configuration == "Debug" or self.configuration == "both":
|
||||||
cmd = ["msbuild", "webrtc.sln", "/t:Clean",
|
cmd = ["msbuild", "webrtc.sln", "/t:Clean",
|
||||||
"/p:Configuration=Debug;Platform=%s" % (self.platform)]
|
"/p:Configuration=Debug;Platform=%s" % (self.platform)]
|
||||||
@ -600,7 +600,7 @@ class WebRTCWinFactory(WebRTCFactory):
|
|||||||
test: test to be run.
|
test: test to be run.
|
||||||
"""
|
"""
|
||||||
if test == "audioproc_unittest":
|
if test == "audioproc_unittest":
|
||||||
print "Does not run on Windows now"
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "resampler_unittests":
|
elif test == "resampler_unittests":
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
elif test == "vad_unittests":
|
elif test == "vad_unittests":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user