2011-11-23 23:13:44 +04:00
|
|
|
#!/usr/bin/env python
|
2012-07-09 13:11:57 +04:00
|
|
|
#
|
2013-01-30 23:39:18 +04:00
|
|
|
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
2011-10-24 22:59:20 +04:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2013-07-09 13:03:26 +04:00
|
|
|
"""Runs all the native unit tests."""
|
2011-10-24 22:59:20 +04:00
|
|
|
|
2013-07-09 13:03:26 +04:00
|
|
|
import logging
|
|
|
|
import os
|
2011-10-24 22:59:20 +04:00
|
|
|
import sys
|
|
|
|
|
2012-11-15 23:57:16 +04:00
|
|
|
from pylib import cmd_helper
|
2011-10-24 22:59:20 +04:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2013-07-09 13:03:26 +04:00
|
|
|
args = ['python',
|
|
|
|
os.path.join(os.path.dirname(__file__), 'test_runner.py'),
|
|
|
|
'gtest'] + sys.argv[1:]
|
|
|
|
logging.warning('*' * 80)
|
|
|
|
logging.warning('This script is deprecated and will be removed soon.')
|
|
|
|
logging.warning('Use the following instead: %s', ' '.join(args))
|
|
|
|
logging.warning('*' * 80)
|
|
|
|
sys.exit(cmd_helper.RunCmd(args))
|