1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-22 02:32:02 +01:00
maybe-result-cpp/dev/run-tests.sh
2016-09-22 14:28:40 +03:00

14 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
SRC=`pwd`
rm -rf /tmp/build
mkdir -p /tmp/build
cd /tmp/build
if [ ! -d "optional" ]; then
mkdir -p optional
tar --strip-components=1 -xzf /opt/dev/optional.tar.gz -C optional
fi
cmake -DEXPERIMENTAL_OPTIONAL_INCLUDE=/tmp/build/optional ${SRC}
make -j8 tests && ./tests/tests