fast_float/ci/script.sh
2021-05-24 16:01:43 -05:00

19 lines
342 B
Bash
Executable File

#!/bin/bash
TOOLCHAIN="$1"
mkdir build
cd build
if [ "$TOOLCHAIN" != "" ] ; then
cmake -DFASTFLOAT_TEST=ON .. -DCMAKE_TOOLCHAIN_FILE=/toolchains/"$TOOLCHAIN".cmake
else
cmake -DFASTFLOAT_TEST=ON ..
fi
make -j 2
if [ "$TOOLCHAIN" != "" ] ; then
qemu-"$TOOLCHAIN" tests/basictest
else
ctest --output-on-failure -R basictest
fi