2025-03-08 09:09:31 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2024-06-11 01:36:40 +00:00
|
|
|
|
|
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
|
|
BASEDIR=$(realpath "$SCRIPT_DIR/../../")
|
|
|
|
cd $BASEDIR
|
|
|
|
|
2025-03-08 09:09:31 +00:00
|
|
|
# tests that our build system's dependencies are configured properly,
|
2024-06-11 01:36:40 +00:00
|
|
|
# needs a machine with lots of cores
|
2025-03-08 09:09:31 +00:00
|
|
|
|
|
|
|
# helpful commands:
|
|
|
|
# scons -Q --tree=derived
|
|
|
|
|
|
|
|
cd $BASEDIR/opendbc_repo/
|
2024-06-11 01:36:40 +00:00
|
|
|
scons --clean
|
2025-03-08 09:09:31 +00:00
|
|
|
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
|