Commit Graph

11 Commits

Author SHA1 Message Date
Andrew Chow
18857d9cd0 Add interactive option and move setup and restore to interactive only 2019-03-14 16:39:12 -04:00
Andrew Chow
49bc7fa5da Add tests for stdin interface and travis job 2019-03-11 10:23:45 -04:00
Andrew Chow
8931ae0e90 Run tests using the binary distribution 2019-03-08 00:42:43 -05:00
Andrew Chow
e594a0b4b3 Allow specifiying a different interface for using HWI in tests 2019-02-19 10:21:58 -05:00
Andrew Chow
f0c5aa7d3c Add Keepkey to Trezorlib and have KeepkeyClient use TrezorClient 2019-02-12 17:26:27 -05:00
Andrew Chow
d627634ce6 Tests and fixes for remainig Keepkey commands.
Tests for setup, wipe, restore, backup, promptpin, sendpin
2019-02-10 10:45:29 -05:00
Andrew Chow
2ddd4ed41a Refactor to make hwilib more like a library
Moves the command argument parsing to hwi.py. Instead of each function
taking args and client, they now take client and whatever else they
need. hwi.py handles the conversion from args and client to the actual
arguments.
2019-01-19 16:58:31 -05:00
Andrew Chow
b404a5050d Include the device type in test case output 2019-01-14 15:42:27 -05:00
Andrew Chow
a0fa20888a Show full test case names in output 2019-01-14 15:00:41 -05:00
Andrew Chow
8ddf434489 Refactor tests to optionally have emulator start and stop for each test
The trezor and keepkey emulators use the same port so they cannot
be run at the same time. To work around this, the emulators are
instead started and stopped before and after each test using
unittest's setUp and tearDown functions. However, other devices
which do not have conflicts can still be run at test suite creation
time. This is still done for the coldcard.

Furthermore, since the trezor and keepkey both create and use
emulator.img files in the current working directory, when they are
started, the working directory is changed to be the one containing
the emulator executable to avoid conflicting emulator.img files
2019-01-12 21:45:42 -05:00
Andrew Chow
a3f31aae60 Add keepkey automated test 2019-01-12 21:45:42 -05:00