Commit Graph

402 Commits

Author SHA1 Message Date
TheAssassin
1bcdcab057 Restructure desktop file tests, build single binary 2018-11-15 17:58:02 +01:00
TheAssassin
1d9c907ec3 Merge pull request #55 from linuxdeploy/test_desktopfile_parser_conformance
Test desktopfile parser conformance
2018-11-15 17:51:06 +01:00
TheAssassin
3e584f5551 Merge branch 'master' into test_desktopfile_parser_conformance 2018-11-15 17:21:23 +01:00
TheAssassin
f7975f1b80 Use return types with guaranteed sizes
This will ensure the conversions work equally on both 32-bit platforms
(int == long on 32-bit Linux systems, on 64 bit long > int).
2018-11-15 17:19:42 +01:00
TheAssassin
4af76a92c5 Fix duplicate key detection 2018-11-15 13:41:53 +01:00
TheAssassin
b6f5f371b6 Avoid copying data more often than necessary c 2018-11-15 13:40:22 +01:00
TheAssassin
d10e0614a1 Increase build speed of tests 2018-11-15 13:39:17 +01:00
TheAssassin
4ffa1a66ae Improve code style 2018-11-15 13:22:41 +01:00
TheAssassin
9707b81931 Fix basic format header checks 2018-11-15 13:14:31 +01:00
TheAssassin
21b12cc6b6 Use EXPECT instead of ASSERT 2018-11-15 13:01:10 +01:00
TheAssassin
ae61f6b9d8 Update README.md 2018-11-15 01:35:09 +01:00
TheAssassin
b43b04f693 Check for valid and invalid keys (spec/basic format) 2018-11-15 01:29:14 +01:00
TheAssassin
61fb8bebdb Fix execution of desktop file tests 2018-11-15 00:58:56 +01:00
TheAssassin
002ba4a496 Split two checks to make sure they're tested separately
Otherwise, one test case is always uncovered (either the first one
passes and the second one triggers, or the first one triggers and the
second one is never tested).
2018-11-14 11:22:38 +01:00
TheAssassin
244d82fede Test behavior on lines with multiple = characters 2018-11-14 11:19:02 +01:00
TheAssassin
9f8121ebff Check whether invalid lines are recognized 2018-11-14 11:16:35 +01:00
TheAssassin
80adfa8872 Recognize broken section headings, mk. 4 2018-11-14 11:14:24 +01:00
TheAssassin
4a07c8151e Make sure errors are recognized in all sections, not just the first one 2018-11-14 11:10:34 +01:00
TheAssassin
ded20c162d Recognize broken section headings, mk. 3 2018-11-14 10:59:17 +01:00
TheAssassin
bf152a509b Recognize broken section headings, mk. 2 2018-11-14 10:46:48 +01:00
TheAssassin
dc8f446ca4 Recognize broken section headings, mk. 1 2018-11-14 10:41:47 +01:00
TheAssassin
fbc1d78122 Use custom exceptions for error handling 2018-11-14 10:31:41 +01:00
TheAssassin
9b2ff305e0 Merge pull request #52 from linuxdeploy/generate-coverage-reports
Generate coverage reports
2018-11-10 19:54:05 +01:00
TheAssassin
ee0acdb6f1 Patchelf is indeed also needed by the integration tests 2018-11-10 14:18:11 +01:00
TheAssassin
e069f6cd22 Fix typos 2018-11-10 14:03:23 +01:00
TheAssassin
74d482612a Add support for ccache 2018-11-10 14:03:11 +01:00
TheAssassin
8f2a49daf0 Fix build command syntax 2018-11-10 14:02:53 +01:00
TheAssassin
4a9e0583d0 Build in parallel before running coverage tools
Also, don't run tests parallelized any more, because the output is
unreadable.
2018-11-10 13:24:01 +01:00
TheAssassin
d83ca617e6 Fix release build check 2018-11-10 13:10:47 +01:00
TheAssassin
16483c38e4 Build binaries before running tests when calculating coverage 2018-11-10 13:04:21 +01:00
TheAssassin
65ef0bd7ed Travis accepts but doesn't like multi-value env 2018-11-10 13:00:51 +01:00
TheAssassin
60f2cb78cd Generate textual coverage reports, mk. 4
Fix Travis config syntax
2018-11-10 12:57:29 +01:00
TheAssassin
9b8d7698f4 Remove dependency on lcov
We don't use it anyway, but use the more modern and flexible gcovr.
2018-11-10 03:43:51 +01:00
TheAssassin
5b1b91da5f Generate textual coverage reports, mk. 3 2018-11-10 03:39:34 +01:00
TheAssassin
44571a4c6b Remove obviously broken release build check 2018-11-10 03:38:56 +01:00
TheAssassin
744368868b Generate textual coverage reports, mk. 2 2018-11-10 03:36:33 +01:00
TheAssassin
d476f308f8 Generate textual coverage reports, mk. 1 2018-11-10 03:32:50 +01:00
TheAssassin
232a76d1ba Merge pull request #49 from linuxdeploy/restructure-libraries
Restructure libraries
2018-11-10 03:08:35 +01:00
TheAssassin
b97c8b45f5 Fix linking issue 2018-11-10 02:59:31 +01:00
TheAssassin
d6e6cac6e0 Move libraries into directories following package path 2018-11-10 01:43:36 +01:00
TheAssassin
830dc50136 Avoid recompiling code if excludelist hasn't changed 2018-11-10 01:39:55 +01:00
TheAssassin
16ed8bfa6a Merge pull request #44 from linuxdeploy/issue-39
Implement own desktop file parser
2018-11-09 23:06:59 +01:00
TheAssassin
dbfdc6ebe6 Merge branch 'master' into issue-39 2018-11-09 22:19:59 +01:00
TheAssassin
a6b09ee30c Revert "Create coverage report during build"
We cannot test for coverage in a release build, but we don't want to
build in debug mode for released binaries.

We might consider creating a separate coverage target for testing code
coverage.

This reverts commit aaaca8b321.
2018-11-09 22:17:49 +01:00
TheAssassin
8b8255b158 Clean up redundant includes 2018-11-09 22:04:59 +01:00
TheAssassin
a87fd648e0 Add dedicated test for values with spaces
CC @azubieta
2018-11-09 21:28:40 +01:00
TheAssassin
574a883733 Don't require desktop file's path to exist 2018-11-09 21:28:40 +01:00
TheAssassin
aaaca8b321 Create coverage report during build 2018-11-09 21:28:40 +01:00
TheAssassin
22bbd04304 Properly calculate processor count for coverage testing 2018-11-09 21:28:40 +01:00
TheAssassin
96b5c3c479 Generate text report for coverage 2018-11-09 21:28:40 +01:00