• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python3
2#
3# Copyright (C) 2018 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may not
6# use this file except in compliance with the License. You may obtain a copy of
7# 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, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations under
15# the License.
16"""
17Script for verifying SL4F is running on a Fuchsia device and
18can communicate to ACTS successfully.
19
20"""
21from acts.base_test import BaseTestClass
22
23import os
24import uuid
25
26from acts import signals
27from acts.test_utils.tel.tel_test_utils import setup_droid_properties
28
29
30class Sl4fSanityTest(BaseTestClass):
31
32    def __init__(self, controllers):
33        BaseTestClass.__init__(self, controllers)
34
35    def setup_class(self):
36        success_str = ("Congratulations! Fuchsia controllers have been "
37                       "initialized successfully!")
38        err_str = ("Sorry, please try verifying FuchsiaDevice is in your "
39                   "config file and try again.")
40        if len(self.fuchsia_devices) > 0:
41            self.log.info(success_str)
42        else:
43            raise signals.TestSkipClass("err_str")
44
45    def test_example(self):
46        self.log.info("Congratulations! You've run your first test.")
47        return True
48
49