summaryrefslogtreecommitdiffstats
path: root/lang/python/micropython/test.sh
blob: 95909cab8a8f29ab1fe61396a8aacc2049a5adcb (plain)
1
2
3
4
5
6
#!/bin/sh

[ "$1" = "micropython-mbedtls" ] || [ "$1" = "micropython-nossl" ] || exit 0

micropython -c "import sys; print(sys.version)" | grep -F "MicroPython v$2"
micropython -c "print('hello from micropython')" | grep -F "hello from micropython"