Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ fi

os_type=$(uname)
MODULE_EXT=".so"
if [[ "$os_type" == "Darwin" ]]; then
if [ "$os_type" = "Darwin" ]; then
MODULE_EXT=".dylib"
elif [[ "$os_type" == "Linux" ]]; then
elif [ "$os_type" = "Linux" ]; then
MODULE_EXT=".so"
else
echo "Unsupported OS type: $os_type"
Expand All @@ -112,7 +112,7 @@ export MODULE_PATH="$SCRIPT_DIR/target/release/libvalkey_bloom$MODULE_EXT"
echo "Running the integration tests..."
if [ ! -z "${ASAN_BUILD}" ]; then
# TEST_PATTERN can be used to run specific tests or test patterns.
if [[ -n "$TEST_PATTERN" ]]; then
if [ -n "$TEST_PATTERN" ]; then
python3 -m pytest --capture=sys --cache-clear -v "$SCRIPT_DIR/tests/" -k $TEST_PATTERN 2>&1 | tee test_output.tmp
else
echo "TEST_PATTERN is not set. Running all integration tests."
Expand Down Expand Up @@ -141,7 +141,7 @@ if [ ! -z "${ASAN_BUILD}" ]; then
rm test_output.tmp
else
# TEST_PATTERN can be used to run specific tests or test patterns.
if [[ -n "$TEST_PATTERN" ]]; then
if [ -n "$TEST_PATTERN" ]; then
python3 -m pytest --cache-clear -v "$SCRIPT_DIR/tests/" -k $TEST_PATTERN
else
echo "TEST_PATTERN is not set. Running all integration tests."
Expand Down