mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-12 02:27:08 +00:00
23 lines
420 B
Bash
Executable File
23 lines
420 B
Bash
Executable File
#!/bin/sh
|
|
|
|
trap 'exit' ERR
|
|
|
|
mkdir build
|
|
pushd build
|
|
if [[ "$RELEASE_BUILD" == "1" ]]; then
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
else
|
|
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
fi
|
|
make -j2
|
|
popd # build
|
|
|
|
echo "--- Running unit tests ---"
|
|
|
|
if [[ "$RELEASE_BUILD" == "1" ]]; then
|
|
echo "Not running tests on release build"
|
|
else
|
|
./build/bin/renderdoccmd test unit
|
|
./build/bin/qrenderdoc.app/Contents/MacOS/qrenderdoc --unittest
|
|
fi
|