Commit graph

5 commits

Author SHA1 Message Date
David Gibson
c14223fb22 tests: Use valgrind client requests for better checking
libfdt is never supposed to access memory outside the the blob, or outside
the sub-blocks within it, even if the blob is badly corrupted.

We can leverage valgrind's client requests to do better testing of this.
This adds a vg_prepare_blob() function which marks just the valid parts of
an fdt blob as properly initialized, explicitly marking the rest as
uninitialized.  This means valgrind should catch any bad accesses.

We add a call to vg_prepare_blob() to load_blob() so that lots of the
existing testcases will benefit from the extra checking.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2018-06-07 11:49:17 +10:00
David Gibson
46df1fb1b2 .travis.yml: Run valgrind checks via Travis
To improve our coverage, run the testsuite under Valgrind via Travis.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2018-03-09 14:28:02 +11:00
David Gibson
e20d9658cd Add Coverity Scan support
I've recently signed up dtc for Coverity Scan coverage.  This adds magic
to the .travis.yml file to submit builds to Coverity for analysis.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-04-07 15:55:16 +10:00
David Gibson
741cdff85d .travis.yml: Add builds with and without Python library prerequisites
To make sure the Makefile behaves in both cases, make Travis matrix builds
with and without swig installed.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-03-27 16:30:27 +11:00
David Gibson
2d1417cd9e Add simple .travis.yml
This adds the .travis.yml file allowing for dtc building and testing in
the Travis Continuous Integration system.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2015-07-02 12:36:12 +10:00