clixon/test/fuzz/netconf/README.md
Olof hagsand 8ede8a87b2 Moved fuzz dir to test/fuzz
Extended contributing document to testing and licensing
2021-10-10 18:05:45 +02:00

629 B

Clixon fuzzing

This dir contains code for fuzzing clixon netconf.

Prereqs

Install AFL, see ..

Build and install a clixon system (in particular the backend, the netconf will be replaced)

Build

Build clixon netconf statically with the afl-clang compiler:

  CC=/usr/bin/afl-clang-fast LINKAGE=static ./configure # Dont care about restconf
  make clean
  cd apps/netconf
  make clixon_netconf
  sudo make install

Run tests

Run the script runfuzz.sh to run one test with a cli spec and an input string, eg:

  ./runfuzz.sh

After (or during) the test, investigate results in the output dir.