forked from meshtastic/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprerelease-tests.sh
More file actions
executable file
·32 lines (26 loc) · 930 Bytes
/
prerelease-tests.sh
File metadata and controls
executable file
·32 lines (26 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set -e
# You may consider running: "pytest -m smoke1" instead of this test.
echo "Linting"
poetry run pylint meshtastic examples/ --ignore-patterns ".*_pb2.pyi?$"
echo "Checking types"
poetry run mypy meshtastic/
echo "Running (crude) prerelease tests to verify sanity"
# Use the python environment created by poetry
source $(poetry env info --path)/bin/activate
echo running hello
python3 tests/hello_world.py
# meshtastic --help
echo toggling router
meshtastic --set is_router true
meshtastic --set is_router false
# TODO: This does not seem to work.
echo setting channel
meshtastic --seturl "https://www.meshtastic.org/c/#GAMiENTxuzogKQdZ8Lz_q89Oab8qB0RlZmF1bHQ="
echo setting owner
meshtastic --set-owner "Test Build"
echo setting position
meshtastic --setlat 32.7767 --setlon -96.7970 --setalt 1337
echo dumping info
meshtastic run meshtastic --info
echo sending closing message
meshtastic --sendtext "Sanity complete"