patrick96
9ec6682777
tests: Convert string tests to gtest
...
The sstream test was removed because it only tested standard library
behvaior
2018-07-30 14:12:22 +02:00
patrick96
1965498e20
tests: Convert color test to gtest
2018-06-10 16:42:07 +02:00
patrick96
78680a6832
tests: Convert file test to gtest
2018-06-10 16:42:07 +02:00
patrick96
53c87558c9
tests: Convert scope test to gtest
2018-06-10 16:42:07 +02:00
patrick96
f983bb63bb
tests: Convert math test to gtest
2018-06-10 16:42:07 +02:00
patrick96
c865add821
refactor(tests): Migrate to googletest
...
googletest (gtest) is more feature rich than the current implementation
which only provides expect() which is basically an assertion. It is also
quite intuitive to use, this can be seen in the rewrite of the
command_line test where EXPECT_THROW replaces a whole try-catch block.
I have also moved the source files the test depend on to be linked in
CMakeLists.txt instead of including them directly because include .cpp
files is bad.
The two x11 tests were removed because they were written two years ago
and a lot of the things they depend on, don't actually exist anymore in
polybar (I think we switched to xpp after those tests were written)
Tests are now compiled with the gcov lib which can be used to provide
test coverage in a second step
2018-04-10 00:56:51 +02:00
Michael Carlberg
d3b0670f30
fix(config): Perform tilde expansion on include-file
#603
2017-06-02 18:34:49 +02:00
Nicolò Balzarotti
84ee0d560c
fs: Fix wrong size report
2017-03-13 10:21:21 +01:00
Michael Carlberg
beedc5ab84
fix(color_util): Parsing
2017-01-27 13:46:27 +01:00
Michael Carlberg
874e6b0d6c
feat(config): Add directive for file inclusion
2017-01-26 20:10:33 +01:00
Michael Carlberg
452afcdc68
refactor: Integral types
2017-01-24 07:11:14 +01:00
Michael Carlberg
9ce384b7e8
fix(ci): Update test
2017-01-14 10:02:44 +01:00
Michael Carlberg
e1dbd98c40
feat(string_util): Custom stringstream
2017-01-13 13:01:22 +01:00
Michael Carlberg
c2ac7fde67
refactor: Filesize strings
2017-01-12 20:28:44 +01:00
Michael Carlberg
5b33ada576
refactor(common): Cleanup
2017-01-11 07:17:54 +01:00
Michael Carlberg
5c9bfc147c
fix(xbacklight): Lower inc/dec value to 5 and fix flooring
2017-01-11 04:40:10 +01:00
Michael Carlberg
c5bc338ae3
feat(math_util): Templated min/max
2016-11-26 13:09:29 +01:00
Michael Carlberg
84d58e7619
refactor: Cleanup handling of syntax tags
2016-11-25 04:34:24 +01:00
Michael Carlberg
3069202354
fix(tests): Patch color_util unit test
2016-11-22 01:38:03 +01:00
Michael Carlberg
d6a5212ef3
fix(volume): Handle alsa playback range
...
Ref #174
2016-11-20 23:49:08 +01:00
Michael Carlberg
c6d85b2b92
refactor: Optimize build
2016-11-20 23:04:31 +01:00
Michael Carlberg
40fcabd644
fix(config): Proper dereference of ${self.key}
2016-11-19 19:18:28 +01:00
Michael Carlberg
489d429644
refactor(ci): Split into scripts
2016-11-19 12:23:02 +01:00
Michael Carlberg
fd57ab0f3d
fix: project rename
2016-11-19 06:26:07 +01:00
Michael Carlberg
e7cb345cec
wip: Separate source from definitions
2016-11-03 12:54:32 +01:00
Michael Carlberg
26c308cc19
feat(color_util): Utility functions for color handling
2016-10-31 01:25:19 +01:00
Michael Carlberg
bc67e64e79
feat: Add math_util::percentage_to_value
2016-10-25 07:05:01 +02:00
Michael Carlberg
769a3debe7
refactor(tests): Drop CppUnit
2016-10-25 01:47:00 +02:00