GildedRose-Refactoring-Kata/cpp/run-approval-once.sh
Anders Arnholm c503bf8a2b Add Approval Tests for cpp
* Add testcase using https://github.com/approvals/ApprovalTests.cpp and google test.
* Change google test to be downloaded if not installed with cmake
* Add a run-once-cmake.sh script to build and test with cmake
* Add a run-approval-once.sh script to build and run approval test
2018-10-13 15:55:30 +02:00

9 lines
180 B
Bash
Executable File

#!/bin/bash
if [[ ! -d build ]]; then
mkdir -p build
fi
cd build
cmake .. -DCMAKE_BUILD_TYPE=DEBUG && cmake --build . && ctest --output-on-failure -R GildedRoseApprovalTests