File: prerelease-tests.sh

package info (click to toggle)
meshtastic 2.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,616 kB
  • sloc: python: 10,936; sh: 76; makefile: 33
file content (32 lines) | stat: -rwxr-xr-x 930 bytes parent folder | download | duplicates (2)
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"