VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/tests/oss-fuzz.sh@ 97642

Last change on this file since 97642 was 91612, checked in by vboxsync, 3 years ago

src/libs: Export libtpms-0.9.0, bugref:10078

  • Property svn:executable set to *
File size: 562 bytes
Line 
1#!/bin/bash
2
3set -ex
4
5export CC=${CC:-clang}
6export CXX=${CXX:-clang++}
7export WORK=${WORK:-$(pwd)}
8export OUT=${OUT:-$(pwd)/out}
9
10mkdir -p $OUT
11
12build=$WORK/build
13rm -rf $build
14mkdir -p $build
15
16export LIBTPMS=$(pwd)
17autoreconf -vfi
18
19cd $build
20$LIBTPMS/configure --disable-shared --enable-static --with-openssl --with-tpm2
21make -j$(nproc) && make -C tests fuzz
22
23zip -jqr $OUT/fuzz_seed_corpus.zip "$LIBTPMS/tests/corpus-execute-command"
24
25find $build -type f -executable -name "fuzz*" -exec mv {} $OUT \;
26find $build -type f -name "*.options" -exec mv {} $OUT \;
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette