support/tests: add runtime test for python-rpi-gpio
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 21 Aug 2020 16:35:31 +0000 (18:35 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 23 Aug 2020 21:29:55 +0000 (23:29 +0200)
commit071dbfeb4d3163f598eaf8ec317373c8499956b7
tree980808ca047533c0100740ea44f32f6024f5e3cc
parentae6bd1eb44bcf886de7ff412aba23c2e9b8c372e
support/tests: add runtime test for python-rpi-gpio

Modeled after similar python packages.

However, this one is picky, and throws an exception when it
detects that it is not running on a Raspberry Pi. So we just
catch that exception and check this is what we expect.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Christian Stewart <christian@paral.in>
Cc: Michael Fischer <mf@go-sys.de>
Cc: Asaf Kahlon <asafka7@gmail.com>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Ian Haylock <haylocki@yahoo.co.uk>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/tests/package/sample_python_rpi_gpio.py [new file with mode: 0644]
support/testing/tests/package/test_python_rpi_gpio.py [new file with mode: 0644]