This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from hypriot/add-bluetooth-support
add bluetooth support
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 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
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
11 changes: 11 additions & 0 deletions
11
builder/test-integration/spec/hypriotos-image/base/rpi3_bluetooth_spec.rb
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,11 @@ | ||
# only test for built-in bluetooth support if we are on the Raspberry Pi 3 | ||
cpu_info = command('cat /proc/cpuinfo').stdout | ||
|
||
if cpu_info.include?('a02082') or cpu_info.include?('a22082') | ||
describe "RPi 3: bluetooth support" do | ||
describe command('hciconfig') do | ||
its(:stdout) { should contain /hci0/ } | ||
its(:stdout) { should contain /UP RUNNING/ } | ||
end | ||
end | ||
end |