Skip to content

Commit

Permalink
Made the REDACTION_PROPERTIES_PATH env var required for the build_and…
Browse files Browse the repository at this point in the history
…_run_unit_tests.sh script.
  • Loading branch information
dmccoystephenson committed Jan 19, 2023
1 parent 784a11a commit 58fd26f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build_and_run_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
#!/bin/sh

# check if REDACTION_PROPERTIES_PATH is set
if [ -z "$REDACTION_PROPERTIES_PATH" ] ; then
echo "REDACTION_PROPERTIES_PATH is not set"
exit 1
fi

# remove build directory if it exists
if [ -d build ] ; then
rm -r build
fi

# build
mkdir build
cd build
cmake ..
make

# run unit tests
./ppm_tests

0 comments on commit 58fd26f

Please sign in to comment.