1#!/usr/bin/env python3 2# 3# Copyright 2019, The Android Open Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17 18"""Unittest for atest_execution_info.""" 19 20import unittest 21 22 23class AsuiteCCLibTest(unittest.TestCase): 24 """Tests for verify asuite_metrics libs""" 25 26 def test_import_asuite_cc_lib(self): 27 """Test asuite_cc_lib.""" 28 # pylint: disable=unused-variable 29 # pylint: disable=import-outside-toplevel 30 # pylint: disable=unused-import 31 from atest.metrics import metrics 32 from atest.metrics import metrics_base 33 from atest.metrics import metrics_utils 34 35 # TODO (b/132602907): Add the real usage for checking if metrics pass or 36 # fail. 37 metrics_base.MetricsBase.tool_name = 'MyTestTool' 38 metrics_utils.get_start_time() 39 metrics.AtestStartEvent( 40 command_line='test_command', 41 test_references='test_reference', 42 cwd='test_cwd', 43 os='test_os', 44 ) 45 46 47if __name__ == '__main__': 48 unittest.main() 49