17 lines
277 B
Bash
Executable File
17 lines
277 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
pushd "$DIR/.."
|
|
if [[ ! -e test-bin ]]; then
|
|
cmake -B test-bin/ -G Ninja -D enable_testing=on -D CMAKE_ASM-ATT_COMPILER=gcc
|
|
fi
|
|
pushd test-bin/
|
|
ninja build_test
|
|
ctest --output-on-failure
|
|
popd
|
|
popd
|
|
|