Commit Graph

12 Commits (758d1d05d2c302f340947a9b3a7c6fad1bc0e578)

Author SHA1 Message Date
nirenjan 79bd8466c1 Add test suite for timezone tests
Previously, when testing the clock command of x52cli, we had forced the
system timezone to UTC. As a result, the offset calculations for clocks
2 and 3 were never computed and always resulted in 0, which hid the bug
when the local time and local standard time did not match (#20).

This commit adds a test case that uses faketime to test setting the
clock to local (Pacific Time) and verifying that the offsets are
computed correctly. Given that the bug is still present as of this
commit, add the test suite to XFAIL_TESTS as well, so that it doesn't
break the CI build.
2020-06-02 14:48:46 -07:00
nirenjan 7dcd3049ec Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
nirenjan b5f4e72148 Add test cases for MFD text 2017-08-14 22:58:22 -07:00
nirenjan 2e96378f80 Add test cases for MFD clock display 2017-08-12 08:43:13 -07:00
nirenjan 3eb837df1b Merge tests into corresponding test-suites
This eliminates the large number of small generated test case files and
somewhat simplifies the actual management of test cases and test suites.
2017-08-11 18:10:53 -07:00
nirenjan 994c39ce3c Add test cases for blink and shift indicators 2017-08-04 08:26:21 -07:00
nirenjan e0d7cb8341 Add brightness test cases 2017-08-03 19:14:29 -07:00
nirenjan d9732d498d Fix environment for parallel tests 2017-08-03 16:56:06 -07:00
nirenjan 0a8db132dc Make test setup routines use environment variables 2017-08-01 21:49:58 -07:00
nirenjan 991218a8b0 Skip tests on OSX 2017-07-29 10:07:12 -07:00
nirenjan 0a45bd5ddf Use x52test_log_action to capture test output 2017-07-27 23:34:39 -07:00
nirenjan e463d9b890 Add tests framework and LED tests 2017-07-27 20:00:35 -07:00