Commit Graph

59 Commits (8abbd0256031e96135a5c4313cb169ccc83e91bf)

Author SHA1 Message Date
cornfeedhobo 8abbd02560
attempt to make travis happy 2019-06-29 16:27:12 -05:00
cornfeedhobo 81a955324b
attempt to make travis happy 2019-06-28 09:54:31 -05:00
cornfeedhobo 6299666978
attempt to make travis happy 2019-06-28 09:31:29 -05:00
cornfeedhobo 407a4bf22b
attempt to make travis happy 2019-06-28 09:20:36 -05:00
cornfeedhobo edb85747e1
attempt to make travis happy 2019-06-28 09:16:32 -05:00
cornfeedhobo 408693f48a
attempt to make travis happy 2019-06-27 23:04:38 -05:00
cornfeedhobo cb1011d8f1
attempt to make travis happy 2019-06-27 22:56:50 -05:00
cornfeedhobo cf6f84725d
attempt to make travis happy 2019-06-27 22:46:31 -05:00
cornfeedhobo 8689e25a1e
attempt to make travis happy 2019-06-27 22:40:53 -05:00
cornfeedhobo 1cf9b07ad3
attempt to make travis happy 2019-06-27 22:37:27 -05:00
cornfeedhobo f68b68d94d
attempt to make travis happy 2019-06-27 22:34:05 -05:00
cornfeedhobo a3ff1c6762
attempt to make travis happy 2019-06-27 22:28:33 -05:00
cornfeedhobo 82608a376d
attempt to make travis happy 2019-06-27 22:25:20 -05:00
cornfeedhobo 422475ae0d
attempt to make travis happy 2019-06-27 22:15:21 -05:00
cornfeedhobo 3773768dd4
attempt to make travis happy 2019-06-27 22:08:29 -05:00
cornfeedhobo 94350315bc
attempt to make travis happy 2019-06-27 21:59:52 -05:00
cornfeedhobo 177730de96
simplify wrapped pathmunge logic. update tests to account for cases with spaces in $PATH. 2018-12-08 00:45:44 -05:00
cornfeedhobo 1030c0e9e1
one more test ... why not 2018-12-06 17:11:13 -05:00
cornfeedhobo 3645305644
add go plugin tests and update list reversal logic 2018-12-06 17:07:03 -05:00
Nils Winkler 31990490fa Added test for the "no" energy tool case 2017-11-02 06:46:01 +01:00
Nils Winkler 5ab0cc5388 Fixed ioreg - no battery test case 2017-11-02 06:46:01 +01:00
Nils Winkler 7ea1a58216 Added comments on the test functions 2017-11-02 06:46:01 +01:00
Nils Winkler 629b8522e5 Ensuring that output is always two digits at least
Show "04" instead of just "4".
2017-11-02 06:46:01 +01:00
Nils Winkler 7602b1da32 Added tests for WMIC 2017-11-02 06:46:01 +01:00
Nils Winkler 601202e816 Simplified ioreg, added tests for no status 2017-11-02 06:46:01 +01:00
Nils Winkler 486c9e1382 Consolidated cases for acpi 2017-11-02 06:46:01 +01:00
Nils Winkler 3aed38c79f Updated acpi tests
Trying to cover the currently implemented tests, but I don't have a
system with acpi available for testing. Relying on assumptions so far.
2017-11-02 06:46:01 +01:00
Nils Winkler 812f49e457 Started first tests for acpi command 2017-11-02 06:46:01 +01:00
Nils Winkler a4824cc8c8 Changed pmset test to use printf 2017-11-02 06:46:01 +01:00
Nils Winkler b7b8a0afe0 Completed tests for upower command 2017-11-02 06:46:01 +01:00
Nils Winkler 5ab23e3ca0 Added test cases for acpi, upower and ioreg, need to fill in data
The one for ioreg works fine, the others currently fail.
2017-11-02 06:46:01 +01:00
Nils Winkler b4c6029706 Made setup function for _command_exists generic 2017-11-02 06:46:01 +01:00
Nils Winkler 28c41efcbc Simplified setup fixture for pmset/_command_exists 2017-11-02 06:46:01 +01:00
Nils Winkler c221648a7f Refactored setup function for pmset 2017-11-02 06:46:01 +01:00
Nils Winkler c8d86858fd Added setup function for _command_exists that works for pmset 2017-11-02 06:46:01 +01:00
Nils Winkler d0b3205de0 Added an additional test case and a fix for using the pmset command
The other commands still need to be mocked and tested/fixed, too.
2017-11-02 06:46:01 +01:00
Nils Winkler ef28b2788b Added test cases for battery_percentage with pmset
Need to figure out way to ensure that pmset is used every time...
2017-11-02 06:46:01 +01:00
Nils Winkler 395e9eff3c Added a couple more tests for mkcd
Also fixed the order of expected/actual for lsgrep test.
2017-10-17 08:18:58 +02:00
Nils Winkler da77e9506d Fixed buf test case that failed from time to time
Taking two timestamps (one before the function-under-test, and one
after), we minimize the chance of failure.
2017-10-17 08:18:58 +02:00
Nils Winkler e574de8f47 Moved testing for files to bats-file library functions 2017-10-14 18:02:04 +02:00
Nils Winkler 2691a5b138 Moved to bats-assert for assert functions 2017-10-14 18:00:43 +02:00
Nils Winkler 8319545b0a Switched to Bats-core as a submodule
Can't use the official v0.4.0 release, since our tests rely on a change
that was made after the release of v0.4.0.

This code currently uses an unversioned commit of the bats-core repo, we
will switch to a supported version once it has been released, e.g.
v0.4.1.
2017-10-14 18:00:43 +02:00
Nils Winkler 3f6f1326dc Fixed ruby test for good (hopefully) 2017-09-17 21:05:59 +02:00
Nils Winkler 3103609640 Reverted Ruby path fix 2017-09-17 21:05:59 +02:00
Nils Winkler 548563e7aa Trying to fix path issue 2017-09-17 21:05:59 +02:00
Nils Winkler f4fa9def14 Fixed the ruby path test in cases where someone already has the ruby bin path on their path variable 2017-09-17 21:05:59 +02:00
Yushin Washio a4472fedaa skip ruby PATH test if ruby not installed 2017-08-17 17:33:56 +05:00
Nils Winkler 0aad8b4ab0 Fixed assert syntax 2017-06-24 17:31:31 +02:00
Ivan Povalyukhin 1cb9093c9c [pathmunge] fix test and modify metadata syntax in the function pathmunge to be easier supported in the test 2015-06-07 20:23:19 -07:00
Ivan Povalyukhin 34670ea021 [tests] make setup function to create test dir per test 2015-05-03 18:11:27 -07:00