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 setup_class(self):
33        super().setup_class()
34
35        success_str = ("Congratulations! Fuchsia controllers have been "
36                       "initialized successfully!")
37        err_str = ("Sorry, please try verifying FuchsiaDevice is in your "
38                   "config file and try again.")
39        if len(self.fuchsia_devices) > 0:
40            self.log.info(success_str)
41        else:
42            raise signals.TestAbortClass("err_str")
43
44    def test_example(self):
45        self.log.info("Congratulations! You've run your first test.")
46        return True
47
48