blob: 4922c26f875a8b5cdd01cdb35cc9971885c11aee [file] [log] [blame]
PORT=/dev/ttyS0
PASSWORD=google
PORTSH=./portsh/portsh $(PORT) -p'$(PASSWORD)'
.NOTPARALLEL:
default: all
all:
@echo "Nothing to do."
test: install-wvtest
wvtest/wvtestrun $(MAKE) runtests
runtests: $(addsuffix .run,$(wildcard [0-9]*.sh [0-9]*.py))
install-wvtest:
tar -cf - *.py *.sh wvtest/ | \
$(PORTSH) \
'mkdir -p /tmp/tests && cd /tmp/tests && tar -xf -'
%.sh.run: %.sh install-wvtest
echo "Testing $<"
$(PORTSH) \
'cd /tmp/tests && sh ./$<' </dev/null
%.py.run: %.py install-wvtest
echo "Testing $<"
$(PORTSH) \
'cd /tmp/tests && python ./wvtest/wvtest.py $<' </dev/null
clean:
rm -f *~ .*~ */*~ */.*~ *.pyc */*.pyc