Merge branch 'cermak_fuzzer_ci_job' into 'master'
added CI job for AFL fuzzer tests See merge request idf/esp-idf!2537
This commit is contained in:
commit
ea1a99bcb9
2 changed files with 26 additions and 0 deletions
|
@ -305,6 +305,31 @@ test_fatfs_on_host:
|
|||
- cd components/fatfs/test_fatfs_host/
|
||||
- make test
|
||||
|
||||
test_mdns_fuzzer_on_host:
|
||||
stage: host_test
|
||||
image: $CI_DOCKER_REGISTRY/afl-fuzzer-test$BOT_DOCKER_IMAGE_TAG
|
||||
tags:
|
||||
- host_test
|
||||
dependencies: []
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- components/mdns/test_afl_fuzz_host/out/crashes
|
||||
expire_in: 1 mos
|
||||
only:
|
||||
# can only be triggered
|
||||
- triggers
|
||||
variables:
|
||||
BOT_NEEDS_TRIGGER_BY_NAME: 1
|
||||
script:
|
||||
- export AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 && export AFL_SKIP_CPUFREQ=1
|
||||
- cd components/mdns/test_afl_fuzz_host/
|
||||
# run AFL fuzzer for one hour
|
||||
- ( make fuzz || pkill sleep ) &
|
||||
- ( sleep 3600 || mkdir -p out/crashes/env_failed ) && pkill afl-fuz
|
||||
# check no crashes found
|
||||
- "[ -z `ls out/crashes/` ] || exit 1"
|
||||
|
||||
test_spiffs_on_host:
|
||||
<<: *host_test_template
|
||||
tags:
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#define CONFIG_MDNS_MAX_SERVICES 25
|
||||
|
||||
#define ERR_OK 0
|
||||
#define ESP_OK 0
|
||||
|
|
Loading…
Reference in a new issue