5eeaa38573
Focused responsibility of supported tests in master.cfg instead of being in utils.py (hard to overview and maintain). Enabled the following empty tests on all platforms: - audio_conference_mixer_unittests - cng_unittests - g711_unittests - g722_unittests - pcm16b_unittests - media_file_unittests - udp_transport_unittests - webrtc_utility_unittests Removed "headless tests" concept since everything is now compiled in the make all step (no need for compile only, no execution tests). Removed audio_device_test_func test since not a proper test (dev tool) that was configured as headless. BUG= TEST=Ran local master and successfully built and executed all tests with Mac build slave. Review URL: http://webrtc-codereview.appspot.com/384002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1603 4adac7df-926f-26a2-2b94-8c16560cd09d
41 lines
1.3 KiB
Python
41 lines
1.3 KiB
Python
#!/usr/bin/env python
|
|
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
__author__ = 'kjellander@webrtc.org (Henrik Kjellander)'
|
|
|
|
import unittest
|
|
|
|
from webrtc_buildbot import utils
|
|
|
|
class Test(unittest.TestCase):
|
|
|
|
def testGetEnabledTests(self):
|
|
tests = {
|
|
# Test name Linux Mac Windows
|
|
"test_1": (True, True, False),
|
|
"test_2": (True, False, False),
|
|
}
|
|
result = utils.GetEnabledTests(tests, "Linux")
|
|
self.assertEqual(2, len(result))
|
|
self.assertEqual('test_1', result[0])
|
|
self.assertEqual('test_2', result[1])
|
|
|
|
result = utils.GetEnabledTests(tests, "Mac")
|
|
self.assertEqual(1, len(result))
|
|
self.assertEqual('test_1', result[0])
|
|
|
|
result = utils.GetEnabledTests(tests, "Windows")
|
|
self.assertEqual(0, len(result))
|
|
|
|
self.assertRaises(utils.UnsupportedPlatformError,
|
|
utils.GetEnabledTests, tests, "BeOS")
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|