File: get_all_corpora

package info (click to toggle)
libpsl 0.21.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,828 kB
  • sloc: ansic: 2,468; python: 515; sh: 309; makefile: 262
file content (18 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -eu
#
# 

if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
  echo "The build environment hasn't been set up for fuzzing (likely for regression testing)."
  echo "Please built regarding README.md and try again."
  exit 1
fi

if $(grep -q '^#define WITH_LIBIDN2 1' ../config.h); then RUNTIME="_idn2";
elif $(grep -q '^#define WITH_LIBIDN 1' ../config.h); then RUNTIME="_idn";
elif $(grep -q '^#define WITH_LIBICU 1' ../config.h); then RUNTIME="_icu";
else RUNTIME=""; fi

for fuzzer in `ls *_fuzzer.c|cut -d'_' -f2-|cut -d'.' -f1`; do
  ./get_ossfuzz_corpora libpsl${RUNTIME}_$fuzzer
done