Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 1 | # Copyright (C) 2022 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | """The entry point for Nearby Mainline multi devices end-to-end test suite.""" |
| 16 | |
| 17 | import logging |
| 18 | import sys |
| 19 | |
| 20 | from mobly import suite_runner |
| 21 | |
Eric Lin | 45f330f | 2022-03-28 21:34:19 +0800 | [diff] [blame] | 22 | import initial_pairing_test |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 23 | import seeker_discover_provider_test |
Eric Lin | d374aeb | 2022-03-18 08:34:24 +0000 | [diff] [blame] | 24 | import seeker_show_halfsheet_test |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 25 | |
| 26 | _BOOTSTRAP_LOGGING_FILENAME = '/tmp/nearby_multi_devices_test_suite_log.txt' |
| 27 | _TEST_CLASSES_LIST = [ |
| 28 | seeker_discover_provider_test.SeekerDiscoverProviderTest, |
Eric Lin | d374aeb | 2022-03-18 08:34:24 +0000 | [diff] [blame] | 29 | seeker_show_halfsheet_test.SeekerShowHalfSheetTest, |
Eric Lin | 45f330f | 2022-03-28 21:34:19 +0800 | [diff] [blame] | 30 | initial_pairing_test.InitialPairingTest, |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 31 | ] |
| 32 | |
| 33 | |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 34 | if __name__ == '__main__': |
| 35 | logging.basicConfig(filename=_BOOTSTRAP_LOGGING_FILENAME, level=logging.INFO) |
uael | 85f2cdb | 2023-03-14 21:56:57 +0000 | [diff] [blame^] | 36 | if '--' in sys.argv: |
| 37 | index = sys.argv.index('--') |
| 38 | sys.argv = sys.argv[:1] + sys.argv[index + 1:] |
| 39 | suite_runner.run_suite(test_classes=_TEST_CLASSES_LIST) |