Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed May 2, 2024
1 parent 8b22cf9 commit e0f2e24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ run: build
docker run -it --rm -v "$(PWD):/workspace" -w /workspace my-dev-container

test:
go test -v -race -gcflags="-l" -ldflags="-s=false" -coverprofile=coverage.txt -covermode=atomic ./...
./run_test.sh
15 changes: 15 additions & 0 deletions run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Save the root directory of the project
ROOT_DIR=$(pwd)

# Set the environment variable
export LD_LIBRARY_PATH=$ROOT_DIR/rs:$LD_LIBRARY_PATH

# Compile libzstd
cd $ROOT_DIR/rs
make libzstd

# Run unit tests
cd $ROOT_DIR
go test -v -race -gcflags="-l" -ldflags="-s=false" -coverprofile=coverage.txt -covermode=atomic ./...

0 comments on commit e0f2e24

Please sign in to comment.