summaryrefslogtreecommitdiff
path: root/smc_fuzz
AgeCommit message (Collapse)Author
2021-08-25smc(fuzzer): random seed generation and build parametersjohpow01
This patch adds build parameters to TFTF to allow more control of the SMC fuzzing test suite as well as randomly generating seeds for the pseudo-random number generator used for SMC fuzzing tests. Build Options SMC_FUZZ_CALLS_PER_INSTANCE=n: Sets the number of SMC calls per test instance, where n is the number of calls. If not provided, this value defaults to 100. SMC_FUZZ_INSTANCE_COUNT=n: Sets the number of instances to run, where n is the number of instances. If not provided, this value defaults to 1. SMC_FUZZ_SEEDS=i,j,k,...: If randomly generated seeds are not desired, such as a case where a certain seed results in a fail, seeds can be provided in the build command. The seeds can either be integers or hex values, must be formatted as shown with a comma between each seed and no spaces, and the number of seeds provided must match SMC_FUZZ_INSTANCE_COUNT. If not provided, seeds are randomly generated by the build system. Signed-off-by: John Powell <john.powell@arm.com> Change-Id: I2cc6f4d7a02ec4b590db335ac098c9d41df42f0c
2020-10-19SMC fuzzing module integration.Mark Dykes
This includes one test with one seed as the initial implementation. A future upgrade will include an enhanced seeding strategy. The patch includes an example device tree file with the actual test (sdei.dts) leveraging the SDEI functions that can be called without reference to system state. Platform CI will have a single TFTF config to be used in all future testing. Once both branches of TFA tests and platform CI are checked in a user can invoke the testing with: workspace=<workspace location> test_groups=fvp-aarch64-sdei,fvp-smcfuzzing:fvp-tftf-fip.tftf-aemv8a test_run=1 bin_mode=debug retain_paths=1 ./platform-ci/script/run_local_ci.sh Signed-off-by: Mark Dykes <mark.dykes@arm.com> Change-Id: Ic290e7255bcfd845c0d22037e0b670a6691541df