tools: tests: port tests to shunit2
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 15 Jun 2023 11:57:45 +0000 (13:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 22 Jun 2023 07:16:21 +0000 (09:16 +0200)
commit555f5e4cfe9f5dc6c1964c8436e867a6fc4f31ae
treefc4675da3a967185320f0c9e8013a68961fb21d1
parentf5c955bba2663dc5944ab3288501fa8281bda338
tools: tests: port tests to shunit2

BATS has been confirmed to run much more slowly that shunit2. This is
most likely caused by the way BATS evaluates each test file n+1 times
where n is the number of tests[1].

Port tests to using shunit2 which executes as a regular shell script
which, in addition to higher speed, allows for easier debugging as
standard shell flags like -x now work.

[1] https://bats-core.readthedocs.io/en/stable/writing-tests.html

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
README
TODO
configure.ac
tools/Makefile.am
tools/gpio-tools-test [deleted file]
tools/gpio-tools-test.bash [new file with mode: 0755]
tools/gpio-tools-test.bats [deleted file]