Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #48 from hypriot/add-bluetooth-support
Browse files Browse the repository at this point in the history
add bluetooth support
  • Loading branch information
Govinda-Fichtner committed Apr 10, 2016
2 parents d09548b + e4c2643 commit c81b07b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ apt-get install -y \
wireless-tools \
ethtool

# add firmware and packages for managing bluetooth devices
apt-get install -y \
--no-install-recommends \
bluetooth \
pi-bluetooth

# install hypriot packages for docker-tools
apt-get install -y \
"docker-hypriot=${DOCKER_ENGINE_VERSION}" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,14 @@
describe package('wireless-tools') do
it { should be_installed }
end

describe 'for bluetooth-support' do
describe package('pi-bluetooth') do
it { should be_installed }
end

describe package('bluetooth') do
it { should be_installed }
end
end

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

0 comments on commit c81b07b

Please sign in to comment.