Skip to content

Latest commit

 

History

History
 
 

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

BeagleBone Black Test Suite

Executes ExUnit tests on target hardware and reports results to the Nerves test server

For more information on how to configure your own test farm please refer to the Nerves test server source

Setup

Signing firmware

Firmware for the test farm is signed so it can be validated before being applied to the device. In order to sign trusted firmware, you will require the env variable NERVES_FW_PRIV_KEY and NERVES_FW_PUB_KEY to be set. Use fwup to configure your own test server keys

$ fwup -g

The get the base64 values and export the variables

$ export NERVES_FW_PRIV_KEY=$(cat fwup-key.priv | base64)
$ export NERVES_FW_PUB_KEY=$(cat fwup-key.pub | base64)

Configure the environment

$ export MIX_ENV=test
$ export NERVES_TEST_SERVER=nerves-test-server.herokuapp.com
$ export WEBSOCKET_PROTOCOL=wss

Building

Fetch the dependencies

$ mix deps.get

Create the firmware

$ mix firmware

Sign the firmware

$ fwup --sign --private-key $NERVES_FW_PRIV_KEY -i _build/test/nerves/images/test.fw -o _build/test/nerves/images/test.fw

Burn it to an SD card

$ mix firmware.burn

Provisioning

The BeagleBone Black uses eth0 to connect to the report server and requires a wired ethernet connection. The device should establish a connection to the network and join the test farm.