Skip to content

Commit

Permalink
Add more on-device tests and a test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Mar 8, 2024
1 parent f695791 commit 849c67e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions testing/device-testing/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/
20 changes: 20 additions & 0 deletions testing/device-testing/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Makefile for running Python tests

# Shell to use with Make
SHELL := /bin/bash

# Find all Python test scripts
TEST_SCRIPTS := $(shell find . -type f -name 'test.py' )

.PHONY: test

test-on-hardware-wiping-your-device:
@for script in $(TEST_SCRIPTS) ; do \
echo "Running $$script..." ; \
python -m unittest $$script ; \
if [ $$? -ne 0 ]; then \
echo "Test failed: $$script" ; \
exit 1 ; \
fi ; \
done

0 comments on commit 849c67e

Please sign in to comment.