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# pylint: disable=line-too-long 18 19"""Unittest for atest_execution_info.""" 20 21import unittest 22 23 24class AsuiteCCLibTest(unittest.TestCase): 25 """Tests for verify asuite_metrics libs""" 26 27 def test_import_asuite_cc_lib(self): 28 """Test asuite_cc_lib.""" 29 # pylint: disable=import-error 30 # pylint: disable=unused-variable 31 # pylint: disable=import-outside-toplevel 32 # pylint: disable=unused-import 33 from asuite.metrics import metrics 34 from asuite.metrics import metrics_base 35 from asuite.metrics import metrics_utils 36 from asuite import atest_utils 37 38 # TODO (b/132602907): Add the real usage for checking if metrics pass or 39 # fail. 40 metrics_base.MetricsBase.tool_name = 'MyTestTool' 41 metrics_utils.get_start_time() 42 metrics.AtestStartEvent( 43 command_line='test_command', 44 test_references='test_reference', 45 cwd='test_cwd', 46 os='test_os') 47 48if __name__ == "__main__": 49 unittest.main() 50