1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-23 02:43:26 +01:00
maybe-result-cpp/dev/run-tests.sh

14 lines
306 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
SRC=`pwd`
rm -rf /tmp/build
mkdir -p /tmp/build
cd /tmp/build
if [ ! -d "optional" ]; then
mkdir -p optional
2016-09-22 13:28:40 +02:00
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