Skip to content

Commit

Permalink
Update instructions in build&test script & environment setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeekman committed Dec 6, 2024
1 parent 876eb1f commit e11ca4a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activate-salt-fm-env.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
# Sourec this file on UO machines to setup your SALT-FM development environment
# `source activate-salt-fm-env.sh`
# After this you can quickly configure, build, and test using `./build_and_test.sh`

export SALT_ROOT=/storage/packages/salt-fm
export PATH="$SALT_ROOT/base/tools/bin:$PATH"
export PATH="$SALT_ROOT/opt/tau/x86_64/bin:$PATH"
Expand Down
13 changes: 13 additions & 0 deletions build_and_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Quick script to configure, build and test SALT-FM
# On Gilgamesh or other UO systems, you can load the SALT-FM stack/environment with:
# `source activate-salt-fm-env.sh`

set -o errexit
set -o nounset
set -o pipefile
set -o verbose

cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -Wdev -Wdeprecated -G Ninja -S . -B build
cmake --build build --parallel 8 --verbose || cmake --build build --verbose
( cd build && ctest --output-on-failure )

0 comments on commit e11ca4a

Please sign in to comment.