prjxray/.github/kokoro/db-quick.sh

77 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
set -x
set -e
sudo apt-get update
sudo apt-get install -y \
bison \
build-essential \
ca-certificates \
clang-format \
cmake \
curl \
flex \
fontconfig \
git \
jq \
python \
python3 \
python3-dev \
python3-virtualenv \
python3-yaml \
virtualenv \
ls -l ~/.Xilinx
sudo chown -R $USER ~/.Xilinx
CORES=$(nproc --all)
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
export
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
find .
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
echo $PWD
echo "----------------------------------------"
cd github/$KOKORO_DIR/
git fetch --tags || true
git describe --tags || true
# Build the C++ tools
make build --output-sync=target --warn-undefined-variables
# Setup the Python environment
make env --output-sync=target --warn-undefined-variables
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
find .
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
source settings/$XRAY_SETTINGS.sh
(
export XILINX_LOCAL_USER_DATA=no
cd fuzzers
make --output-sync=target --warn-undefined-variables QUICK=y -j$CORES
)