Skip to content

Commit e65f22a

Browse files
committed
ci(mdns): Check mdns sources for std alloc functions
1 parent 7d29b47 commit e65f22a

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/mdns__host-tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,36 @@ jobs:
3535
# Next we run the pytest (using the console app)
3636
pytest
3737
38-
build_afl_host_test_mdns:
38+
host_compat_checks:
3939
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
4141
strategy:
4242
matrix:
4343
idf_ver: ["latest"]
44-
idf_target: ["esp32"]
4544

4645
runs-on: ubuntu-22.04
4746
container: espressif/idf:${{ matrix.idf_ver }}
4847
steps:
4948
- name: Checkout esp-protocols
5049
uses: actions/checkout@v4
51-
with:
52-
path: esp-protocols
5350
- name: Install Necessary Libs
5451
run: |
5552
apt-get update -y
5653
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
6055
shell: bash
6156
run: |
6257
. ${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/
6459
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

0 commit comments

Comments
 (0)