Ikey Doherty
6dc11a4aed
template: Move to block-based render passes for sections
...
We now build a complete unexpanded section at a time whilst iterating the
document structure. As we exit each subsection, we push our block into the
parent render block. This leads to a bottom up render approach for emitting
sections, skipping non-emitters. In future this can be expanded upon by
enabling iterative conditional sections, as a full section block is available
to render as many times as required into the parent context.
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-30 12:17:17 +01:00
John L. Whiteman
71866dc00c
Removed hashtable functions to simplify things
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-29 13:28:22 -07:00
Ikey Doherty
cb7553c4aa
Revert "Make clang a bit happier"
...
Clang may remain somewhat depressed. Sane C syntax is preferable anyway
This reverts commit 015b496573 .
2015-04-29 16:00:49 +01:00
Ikey Doherty
015b496573
Make clang a bit happier
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-29 14:42:41 +01:00
Ikey Doherty
20a7a47af1
template: Large overhaul for efficency and usage (Context)
...
We now swap the old code out for a new lighter "TemplateContext", which
currently now supports conditional renders via Mustache-style sections.
In the future this will be revisted further to add iteration supports,
but for now stack-traversing child contexts are supported, with a boolean
1-renderpass section support.
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-29 12:59:43 +01:00
Ikey Doherty
2993bf5d17
rpm: Ensure all patches are actually applied by default
...
This resolves issue #6 - but would require further testing
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-27 21:13:19 +01:00
John L. Whiteman
009c95842d
jira: Add more tests
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-16 16:51:43 -07:00
John L. Whiteman
0de1f972ab
jira: Fix NULL check segmentation bug
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-16 13:35:04 -07:00
Ikey Doherty
4490985e30
Increase coverage via CVE ignore checks
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-16 19:12:22 +01:00
Ikey Doherty
f2f774a57f
Cheaply raise coverage in util
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-16 17:22:29 +01:00
John L. Whiteman
c2df4a659b
Added more JIRA plugin tests
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-15 17:24:34 -07:00
John L. Whiteman
be1007de8e
Added more dummy data files for JIRA plugin tests
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-15 13:42:34 -07:00
Ikey Doherty
3063c4c173
tests: Increase coverage through non-existent files
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-15 19:15:13 +01:00
Ikey Doherty
0044f4a467
Add initial PKGBUILD support for Arch Linux
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-15 19:09:51 +01:00
Ikey Doherty
fa1c210c5d
Increase coverage with is_package_list test
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-15 18:16:43 +01:00
Ikey Doherty
f789f78868
tests: Only run srpm tests in presence of "rpm" binary
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-15 18:05:40 +01:00
John L. Whiteman
9c95366036
Moved dummy data for plugins into own directories
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-15 10:00:39 -07:00
John L. Whiteman
ed77471a13
Added dummy json test issues json file
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-10 12:31:13 -07:00
Ikey Doherty
fb67c9c9c1
tests: Add further srpm testing
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 17:37:46 +01:00
Ikey Doherty
285f30db0a
tests: Ensure RPM .spec count is 2 (we now carry 2.)
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 17:27:00 +01:00
Ikey Doherty
e1cd4618f4
Merge pull request #2 from fenrus75/master
...
Pull request to increase test suite coverage
2015-04-10 17:13:15 +01:00
Ikey Doherty
1489075894
tests: Add further template tests (100% coverage)
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 17:12:16 +01:00
Arjan van de Ven
44057a3fa6
more RPM checks
2015-04-10 12:09:23 -04:00
Ikey Doherty
6923a9a580
tests: Add check for templating
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 17:03:08 +01:00
Arjan van de Ven
f0bb767dc7
extend to src.rpm tests
2015-04-10 12:02:52 -04:00
Arjan van de Ven
339f168ab9
Increase RPM coverage
2015-04-10 11:57:15 -04:00
Ikey Doherty
27f1a4472d
tests: Explicitly use locate functions
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 16:44:41 +01:00
Ikey Doherty
aded0385cb
tests: Add CVE mapping tests
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 15:38:20 +01:00
Ikey Doherty
384dcfb4a5
tests: Add recursive type detection
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 15:30:46 +01:00
Ikey Doherty
da4c4c4142
tests: Use format specific directories
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 15:28:42 +01:00
Ikey Doherty
158bdcbc48
tests: Add general functionality tests for packaging
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 15:26:39 +01:00
Ikey Doherty
8dcd65b3f5
tests: Add CVE patch checking
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 15:19:59 +01:00
Ikey Doherty
ef64f6f842
tests: Move dummy data to a subdirectory
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 15:05:36 +01:00
Ikey Doherty
eefabd64c9
Integrate valgrind testing per further feedback
...
Summary: Glib has issues.
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 14:30:41 +01:00
Ikey Doherty
460a44eb39
tests: Ensure unused parameters are marked as such
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 14:15:25 +01:00
Ikey Doherty
81c3290574
tests: Add more string tests
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 13:46:17 +01:00
Ikey Doherty
5ed72e9510
Integrate initial make coverage target
...
This was essentially "borrowed" from Buxton
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 13:38:20 +01:00
Ikey Doherty
7f45eb28bf
tests: Add eopkg check (budgie-desktop pspec)
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 11:58:47 +01:00
Ikey Doherty
307f4e2673
tests: Add initial packaging tests for RPM functionality
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 11:25:06 +01:00
Ikey Doherty
025b8181a0
Add cstrlen for cve_string, convenience replacement for strlen
...
Note that this will assert, as opposed to strlen which will attempt to
read a pointer, regardless of validity. The use of strlen itself is not
permitted within cve-check-tool, so we attempt to make the cve_string
functionality as usable as possible.
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 10:28:34 +01:00
Ikey Doherty
efc26b8c93
Add cve_string equality functionality (l-side-limited strncmp)
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 10:10:29 +01:00
Ikey Doherty
5f67ef2cef
tests: Add cve_string tests
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-10 09:57:25 +01:00
Ikey Doherty
a123e6f1c0
Fix linking for new unit test
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-04-09 18:12:32 +01:00
John L. Whiteman
090415d5f6
Integrate start of plugin tests
...
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com >
2015-04-08 15:26:11 -07:00
Ikey Doherty
e860c9a523
Initial import
...
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com >
2015-03-24 17:27:09 +00:00