parent
c1eef33b5d
commit
c1006c4d38
@ -1,11 +1,24 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# cargo build --release
|
||||
# PWD=$(pwd)
|
||||
# export CC="$PWD/target/release/libafl_cc"
|
||||
# export CXX="$PWD/target/release/libafl_cxx"
|
||||
|
||||
export CC=afl-clang-fast
|
||||
export CXX=afl-clang-fast++
|
||||
# Check if afl-clang-fast exists in PATH
|
||||
if ! command -v afl-clang-fast &> /dev/null
|
||||
then
|
||||
echo "afl-clang-fast not found. Cloning and compiling AFLplusplus..."
|
||||
git clone https://github.com/AFLplusplus/AFLplusplus.git
|
||||
pushd AFLplusplus
|
||||
make
|
||||
popd
|
||||
else
|
||||
echo "afl-clang-fast already exists in PATH."
|
||||
fi
|
||||
|
||||
export CC="$(pwd)/AFLplusplus/afl-clang-fast"
|
||||
export CXX="$(pwd)/AFLplusplus/afl-clang-fast++"
|
||||
|
||||
curl -C - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.gz --output libxml2-v2.9.14.tar.gz
|
||||
tar -xf ./libxml2-v2.9.14.tar.gz --transform s/libxml2-v2.9.14/libxml2/ || exit
|
||||
cd ./libxml2/ || exit
|
||||
|
@ -1,11 +1,23 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# cargo build --release
|
||||
# PWD=$(pwd)
|
||||
# export CC="$PWD/target/release/libafl_cc"
|
||||
# export CXX="$PWD/target/release/libafl_cxx"
|
||||
|
||||
export CC=afl-clang-fast
|
||||
export CXX=afl-clang-fast++
|
||||
# Check if afl-clang-fast exists in PATH
|
||||
if ! command -v afl-clang-fast &> /dev/null
|
||||
then
|
||||
echo "afl-clang-fast not found. Cloning and compiling AFLplusplus..."
|
||||
git clone https://github.com/AFLplusplus/AFLplusplus.git
|
||||
pushd AFLplusplus
|
||||
make
|
||||
popd
|
||||
else
|
||||
echo "afl-clang-fast already exists in PATH."
|
||||
fi
|
||||
|
||||
export CC="$(pwd)/AFLplusplus/afl-clang-fast"
|
||||
export CXX="$(pwd)/AFLplusplus/afl-clang-fast++"
|
||||
curl -C - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.gz --output libxml2-v2.9.14.tar.gz
|
||||
tar -xf ./libxml2-v2.9.14.tar.gz --transform s/libxml2-v2.9.14/libxml2/ || exit
|
||||
cd ./libxml2/ || exit
|
||||
|
@ -7,11 +7,11 @@ cd "$SCRIPT_DIR/.." || exit 1
|
||||
if [[ -z "${RUN_ON_CI}" ]]; then
|
||||
fuzzers=$(find ./fuzzers -mindepth 1 -maxdepth 1 -type d)
|
||||
backtrace_fuzzers=$(find ./fuzzers/backtrace_baby_fuzzers -mindepth 1 -maxdepth 1 -type d)
|
||||
export PROFILE=dev
|
||||
else
|
||||
cargo build -p build_and_test_fuzzers
|
||||
fuzzers=$(cargo run -p build_and_test_fuzzers -- "remotes/origin/main" "HEAD^")
|
||||
backtrace_fuzzers=""
|
||||
export PROFILE=dev
|
||||
fi
|
||||
|
||||
libafl=$(pwd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user