File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -35,30 +35,36 @@ jobs:
35
35
# Next we run the pytest (using the console app)
36
36
pytest
37
37
38
- build_afl_host_test_mdns :
38
+ host_compat_checks :
39
39
if : contains(github.event.pull_request.labels.*.name, 'mdns') || github.event_name == 'push'
40
- name : Build AFL host test
40
+ name : Set of compatibility checks
41
41
strategy :
42
42
matrix :
43
43
idf_ver : ["latest"]
44
- idf_target : ["esp32"]
45
44
46
45
runs-on : ubuntu-22.04
47
46
container : espressif/idf:${{ matrix.idf_ver }}
48
47
steps :
49
48
- name : Checkout esp-protocols
50
49
uses : actions/checkout@v4
51
- with :
52
- path : esp-protocols
53
50
- name : Install Necessary Libs
54
51
run : |
55
52
apt-get update -y
56
53
apt-get install -y libbsd-dev
57
- - name : Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
58
- env :
59
- IDF_TARGET : ${{ matrix.idf_target }}
54
+ - name : Test AFL compat build
60
55
shell : bash
61
56
run : |
62
57
. ${IDF_PATH}/export.sh
63
- cd $GITHUB_WORKSPACE/esp-protocols/ components/mdns/tests/test_afl_fuzz_host/
58
+ cd components/mdns/tests/test_afl_fuzz_host/
64
59
make INSTR=off
60
+ - name : Test no malloc functions
61
+ shell : bash
62
+ run : |
63
+ cd components/mdns
64
+ for file in $(ls *.c); do
65
+ cp $file /tmp
66
+ echo -n "Checking that $file does not call any std allocations directly..."
67
+ python mem_prefix_script.py $file
68
+ diff -q $file /tmp/$file || exit 1
69
+ echo "OK"
70
+ done
You can’t perform that action at this time.
0 commit comments