renderdiff: fix breakage (#8648)

- Re-enable renderdiff test.
- Cache the mesa directory so that we're not spending time pulling
  and compiling it.
- Move python prereqs into the script and use venv.
This commit is contained in:
Powei Feng
2025-04-22 11:23:05 -07:00
committed by GitHub
parent 597ced13e1
commit 7967157fbb
3 changed files with 67 additions and 30 deletions

View File

@@ -41,10 +41,10 @@ function prepare_mesa() {
# - Run the python script that runs the test
# - Zip up the result
set -e && set -x && prepare_mesa && \
set -ex && prepare_mesa && \
mkdir -p ${OUTPUT_DIR} && \
./build.sh -X ${MESA_DIR} -p desktop debug gltf_viewer && \
python3 ${RENDERDIFF_TEST_DIR}/src/run.py \
CXX=`which clang++` CC=`which clang` ./build.sh -X ${MESA_DIR} -p desktop debug gltf_viewer && \
python3 ${RENDERDIFF_TEST_DIR}/src/run.py \
--gltf_viewer="$(pwd)/out/cmake-debug/samples/gltf_viewer" \
--test=${RENDERDIFF_TEST_DIR}/tests/presubmit.json \
--output_dir=${OUTPUT_DIR} \