carrot/selfdrive/test/scons_build_test.sh
Vehicle Researcher 8eb8330d95 openpilot v0.9.9 release
date: 2025-03-08T09:09:29
master commit: ce355250be726f9bc8f0ac165a6cde41586a983d
2025-03-08 09:09:31 +00:00

21 lines
442 B
Bash
Executable File

#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(dirname "$0")
BASEDIR=$(realpath "$SCRIPT_DIR/../../")
cd $BASEDIR
# tests that our build system's dependencies are configured properly,
# needs a machine with lots of cores
# helpful commands:
# scons -Q --tree=derived
cd $BASEDIR/opendbc_repo/
scons --clean
scons --no-cache --random -j$(nproc)
if ! scons -q; then
echo "FAILED: all build products not up to date after first pass."
exit 1
fi