-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run os tests on host * Fix flaky hander clear test * Move to linux_generic * Remove dependency on libchrome * Allow alarms to run on linux host where we can't get CAP_WAKE_ALARM Test: atest bluetooth_gd_test_os Change-Id: Ia95ce39169ac8c963052e3252e7b39ef32bd5bb1
- Loading branch information
Zach Johnson
committed
Mar 28, 2019
1 parent
8b3df83
commit 3a77003
Showing
16 changed files
with
287 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{ | ||
"postsubmit" : [ | ||
{ | ||
"name" : "bluetooth_gd_test_os" | ||
}, | ||
{ | ||
"name" : "bluetooth_test_common" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2018 The Android Open Source Project | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<configuration description="Runs {MODULE}."> | ||
<option name="test-suite-tag" value="apct" /> | ||
<option name="test-suite-tag" value="apct-native" /> | ||
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> | ||
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> | ||
<option name="cleanup" value="true" /> | ||
<option name="push" value="{MODULE}->/data/local/tmp/{MODULE}" /> | ||
</target_preparer> | ||
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> | ||
<option name="run-command" value="settings put global ble_scan_always_enabled 0" /> | ||
<option name="run-command" value="svc bluetooth disable" /> | ||
</target_preparer> | ||
<target_preparer class="com.android.tradefed.targetprep.FolderSaver"> | ||
<option name="device-path" value="/data/vendor/ssrdump" /> | ||
</target_preparer> | ||
<test class="com.android.tradefed.testtype.GTest" > | ||
<option name="native-test-device-path" value="/data/local/tmp" /> | ||
<option name="module-name" value="{MODULE}" /> | ||
<option name="run-test-as" value="0" /> | ||
</test> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presubmit" : [ | ||
{ | ||
"name" : "bluetooth_test_gd", | ||
"host" : true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
filegroup { | ||
name: "BluetoothOsSources_linux_generic", | ||
srcs: [ | ||
"linux_generic/alarm.cc", | ||
"linux_generic/handler.cc", | ||
"linux_generic/reactor.cc", | ||
"linux_generic/repeating_alarm.cc", | ||
"linux_generic/thread.cc", | ||
] | ||
} | ||
|
||
filegroup { | ||
name: "BluetoothOsTestSources_linux_generic", | ||
srcs: [ | ||
"linux_generic/alarm_unittest.cc", | ||
"linux_generic/handler_unittest.cc", | ||
"linux_generic/reactor_unittest.cc", | ||
"linux_generic/repeating_alarm_unittest.cc", | ||
"linux_generic/thread_unittest.cc", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
|
||
#include <future> | ||
|
||
#include "base/logging.h" | ||
#include "gtest/gtest.h" | ||
|
||
namespace bluetooth { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.