Skip to main content

Testing

Linux end to end tests

SPR has end to end tests which can be executed on a linux machine with system privilege. The tests will spin up mac80211_hwsim based wireless networks and exercise the API.

See tests/README.md

Setup

apt install -y linux-image-extra-virtual net-tools iw

cd tests/runner/
./build.sh
cd ../../

Run the tests

./tests/tests_start.sh
./tests/run-tests.sh
./tests/tests_stop.sh

Expected output

~ running tests @ http://localhost:8000
~ ID= 8c60362f977d
~ waiting for runner to be done ...
+ test run passed