#!/bin/sh
set -eu

script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
test_tmp=${AUTOPKGTEST_TMP:-${TMPDIR:-/tmp}}
build_dir="$test_tmp/gmpfrxx-installed-smoke"

cmake -S "$script_dir/smoke" -B "$build_dir" -DCMAKE_BUILD_TYPE=Release
cmake --build "$build_dir" --parallel 2
"$build_dir/gmpfrxx-mpc-log2-smoke"
