-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90c40f2
commit eced2d8
Showing
4 changed files
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Save the root directory of the project | ||
ROOT_DIR=$(pwd) | ||
|
||
# Compile libzstd | ||
cd $ROOT_DIR/libzstd | ||
make libzstd | ||
cd libzstd && cargo build --release && cd .. | ||
sudo cp -f $(pwd)/libzstd/target/release/libscroll_zstd.so $(pwd)/ | ||
find $(pwd)/libzstd/target/release | grep libzktrie.so | xargs -I{} cp -f {} $(pwd)/ | ||
sudo cp -f libscroll_zstd.so libzktrie.so /usr/local/lib | ||
|
||
# Set the environment variable | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
|
||
# Run module tests | ||
cd $ROOT_DIR | ||
env GO111MODULE=on go test -v -race -gcflags="-l" -ldflags="-s=false" -coverprofile=coverage.txt -covermode=atomic ./... |