kumquat-buildroot/support/testing/tests
Ricardo Martincoski 5c39c90ae1 support/testing: fix hardening tests
Since "2467822c85 package/checksec: bump to version 2.1.0" the hardening
tests fail because upstream slightly changed the way the script is
called.
According to README.md: "- All options now require `--$option=$value`
instead of `--$option $value`"

Instead of just replacing '--output json' with '--output=json' take into
account that upstream also changed the usage example to show --format
instead of --output. Both options do exactly the same, but following the
usage example seems to be more future-proof.

Upstream also improved the json output. Now when a file is passed as
parameter, the json has the file name as the main key, instead of the
string "file". Adjust the test cases accordingly.

Fixes:
tests.core.test_hardening.TestFortifyConserv
tests.core.test_hardening.TestFortifyNone
tests.core.test_hardening.TestRelro
tests.core.test_hardening.TestRelroPartial
tests.core.test_hardening.TestSspNone
tests.core.test_hardening.TestSspStrong

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Matt Weber <matthew.weber@rockwellcollins.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-08-05 22:15:18 +02:00
..
boot support/testing: fix TestATFMarvell test case 2018-10-14 19:38:32 +02:00
core support/testing: fix hardening tests 2019-08-05 22:15:18 +02:00
download Revert "testing/tests/download: test git special ref" 2019-03-01 11:09:41 +01:00
fs support/testing/tests/fs/test_f2fs: fix flake8 warning 2018-11-08 22:41:53 +01:00
init support/tests: enhance the runtime systemd tests 2018-03-04 21:10:23 +01:00
package support/testing: test atop with builtin kernel 2019-08-03 14:53:05 +02:00
toolchain support/testing: use more recent toolchains 2017-10-21 19:48:30 +02:00
utils support/testing: test check-package ignores external.mk 2019-08-03 17:17:29 +02:00
__init__.py