ceremonyclient/rpm/test.sh
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

18 lines
577 B
Bash
Executable File

#!/bin/bash
set -euxo pipefail
# Run tests for the rpm package. Takes care of linking the native RPM library.
# Assumes that the RPM library has been built by running the generate.sh script in the same directory.
ROOT_DIR="${ROOT_DIR:-$( cd "$(dirname "$(realpath "$( dirname "${BASH_SOURCE[0]}" )")")" >/dev/null 2>&1 && pwd )}"
NODE_DIR="$ROOT_DIR/rpm"
BINARIES_DIR="$ROOT_DIR/target/release"
# Link the native RPM library and execute tests
pushd "$NODE_DIR" > /dev/null
CGO_LDFLAGS="-L$BINARIES_DIR -lrpm -ldl" \
CGO_ENABLED=1 \
GOEXPERIMENT=arenas \
go test "$@"