clm5/lilac/ci/build_and_test_lilac.sh
2024-05-09 15:14:01 +08:00

23 lines
418 B
Bash

#!/usr/bin/env bash
set -e
set -x
echo "building lilac"
# build lilac
mkdir -p /lilac/build
export CMAKE_PREFIX_PATH=/usr/lib64/mpich/bin
cd /lilac/build && cmake -D CMAKE_BUILD_TYPE=DEBUG ..
make VERBOSE=1 # -j 4
echo "done building lilac, time to run the tests..."
# run test suite
ctest
# run system tests
# TODO: these should probably be run via ctest
/lilac/build/tests/rand_atm_rand_lnd/rand_atm_rand_lnd