-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
73 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/env bash | ||
|
||
function prepare_tests_data_and_cd_to_build_dir() { | ||
build_dir="$1" | ||
if [ -d "$build_dir" ]; then rm -r "$build_dir"; fi | ||
mkdir -p "$build_dir" | ||
cp ../number_theory/u64-primes.txt "./$build_dir/u64-primes.txt" | ||
cp ../number_theory/u128-primes.txt "./$build_dir/u128-primes.txt" | ||
cp ../tf_idf_actrie/Anglo_Saxon_Chronicle.txt "./$build_dir/Anglo_Saxon_Chronicle.txt" | ||
cd "./$build_dir" || return 1 | ||
} |
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,16 +1,16 @@ | ||
#!/bin/bash | ||
|
||
build_dir=cmake-build-tests-clang | ||
#!/bin/env bash | ||
|
||
set -e | ||
|
||
if [ -d "$build_dir" ]; then rm -r "$build_dir"; fi | ||
mkdir -p "$build_dir" | ||
cp ../number_theory/u64-primes.txt ./$build_dir/u64-primes.txt | ||
cp ../number_theory/u128-primes.txt ./$build_dir/u128-primes.txt | ||
cp ../tf_idf_actrie/Anglo_Saxon_Chronicle.txt ./$build_dir/Anglo_Saxon_Chronicle.txt | ||
cd ./$build_dir | ||
build_dir=cmake-build-tests-clang | ||
|
||
. ./prepare_stage_for_tests.sh | ||
prepare_tests_data_and_cd_to_build_dir "$build_dir" | ||
|
||
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S .. -B . && | ||
make all --jobs "$(nproc)" && | ||
cmake -G "Unix Makefiles" \ | ||
-D CMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-D CMAKE_C_COMPILER=clang \ | ||
-D CMAKE_CXX_COMPILER=clang++ \ | ||
-S .. -B . && | ||
cmake --build . --parallel "$(nproc)" && | ||
env CTEST_OUTPUT_ON_FAILURE=1 make test |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/bash | ||
|
||
build_dir=cmake-build-tests-gcc | ||
#!/bin/env bash | ||
|
||
set -e | ||
|
||
if [ -d "$build_dir" ]; then rm -r "$build_dir"; fi | ||
mkdir -p "$build_dir" | ||
cp ../number_theory/u64-primes.txt ./$build_dir/u64-primes.txt | ||
cp ../number_theory/u128-primes.txt ./$build_dir/u128-primes.txt | ||
cp ../tf_idf_actrie/Anglo_Saxon_Chronicle.txt ./$build_dir/Anglo_Saxon_Chronicle.txt | ||
cd ./$build_dir | ||
build_dir=cmake-build-tests-gcc | ||
|
||
. ./prepare_stage_for_tests.sh | ||
prepare_tests_data_and_cd_to_build_dir "$build_dir" | ||
|
||
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -S .. -B . && | ||
make all --jobs "$(nproc)" && | ||
cmake -G "Unix Makefiles" \ | ||
-D CMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-D CMAKE_C_COMPILER=gcc \ | ||
-D CMAKE_CXX_COMPILER=g++ \ | ||
-S .. -B . && | ||
cmake --build . --parallel "$(nproc)" && | ||
env CTEST_OUTPUT_ON_FAILURE=1 make test |
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,16 +1,16 @@ | ||
#!/bin/bash | ||
|
||
build_dir=cmake-build-tests-macos-clang | ||
#!/bin/env bash | ||
|
||
set -e | ||
|
||
if [ -d "$build_dir" ]; then rm -r "$build_dir"; fi | ||
mkdir -p "$build_dir" | ||
cp ../number_theory/u64-primes.txt ./$build_dir/u64-primes.txt | ||
cp ../number_theory/u128-primes.txt ./$build_dir/u128-primes.txt | ||
cp ../tf_idf_actrie/Anglo_Saxon_Chronicle.txt ./$build_dir/Anglo_Saxon_Chronicle.txt | ||
cd ./$build_dir | ||
build_dir=cmake-build-tests-macos-clang | ||
|
||
. ./prepare_stage_for_tests.sh | ||
prepare_tests_data_and_cd_to_build_dir "$build_dir" | ||
|
||
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S .. -B . && | ||
make all --jobs "$(sysctl -n hw.logicalcpu)" && | ||
cmake -G "Unix Makefiles" \ | ||
-D CMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-D CMAKE_C_COMPILER=clang \ | ||
-D CMAKE_CXX_COMPILER=clang++ \ | ||
-S .. -B . && | ||
cmake --build . --parallel "$(sysctl -n hw.logicalcpu)" && | ||
env CTEST_OUTPUT_ON_FAILURE=1 make test |