-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update scripts and Makefile for future forward compatibility
- Loading branch information
1 parent
76665ab
commit f9669c3
Showing
3 changed files
with
41 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ function usage() { | |
echo "--signed-only Run only signed integer tests, by default both signed and unsigned tests are run" | ||
echo "--cargo-profile The cargo profile used to build tests" | ||
echo "--avx512-support Set to ON to enable avx512" | ||
echo "--tfhe-package The package spec like [email protected], default=tfhe" | ||
echo | ||
} | ||
|
||
|
@@ -23,6 +24,7 @@ signed="" | |
not_signed="" | ||
cargo_profile="release" | ||
avx512_feature="" | ||
tfhe_package="tfhe" | ||
|
||
while [ -n "$1" ] | ||
do | ||
|
@@ -64,6 +66,11 @@ do | |
fi | ||
;; | ||
|
||
"--tfhe-package" ) | ||
shift | ||
tfhe_package="$1" | ||
;; | ||
|
||
*) | ||
echo "Unknown param : $1" | ||
exit 1 | ||
|
@@ -153,7 +160,7 @@ fi | |
cargo "${RUST_TOOLCHAIN}" nextest run \ | ||
--tests \ | ||
--cargo-profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--profile ci \ | ||
--features="${ARCH_FEATURE}",integer,internal-keycache,"${avx512_feature}" \ | ||
--test-threads "${test_threads}" \ | ||
|
@@ -162,7 +169,7 @@ cargo "${RUST_TOOLCHAIN}" nextest run \ | |
if [[ "${multi_bit}" == "" ]]; then | ||
cargo "${RUST_TOOLCHAIN}" test \ | ||
--profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--features="${ARCH_FEATURE}",integer,internal-keycache,"${avx512_feature}" \ | ||
--doc \ | ||
-- --test-threads="${doctest_threads}" integer:: | ||
|
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 |
---|---|---|
|
@@ -9,12 +9,14 @@ function usage() { | |
echo "--rust-toolchain The toolchain to run the tests with default: stable" | ||
echo "--multi-bit Run multi-bit tests only: default off" | ||
echo "--cargo-profile The cargo profile used to build tests" | ||
echo "--tfhe-package The package spec like [email protected], default=tfhe" | ||
echo | ||
} | ||
|
||
RUST_TOOLCHAIN="+stable" | ||
multi_bit="" | ||
cargo_profile="release" | ||
tfhe_package="tfhe" | ||
|
||
while [ -n "$1" ] | ||
do | ||
|
@@ -38,6 +40,11 @@ do | |
cargo_profile="$1" | ||
;; | ||
|
||
"--tfhe-package" ) | ||
shift | ||
tfhe_package="$1" | ||
;; | ||
|
||
*) | ||
echo "Unknown param : $1" | ||
exit 1 | ||
|
@@ -111,7 +118,7 @@ and not test(~smart_add_and_mul)""" # This test is too slow | |
cargo "${RUST_TOOLCHAIN}" nextest run \ | ||
--tests \ | ||
--cargo-profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--profile ci \ | ||
--features="${ARCH_FEATURE}",shortint,internal-keycache \ | ||
--test-threads "${n_threads_small}" \ | ||
|
@@ -128,7 +135,7 @@ and not test(~smart_add_and_mul)""" | |
cargo "${RUST_TOOLCHAIN}" nextest run \ | ||
--tests \ | ||
--cargo-profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--profile ci \ | ||
--features="${ARCH_FEATURE}",shortint,internal-keycache \ | ||
--test-threads "${n_threads_big}" \ | ||
|
@@ -137,7 +144,7 @@ and not test(~smart_add_and_mul)""" | |
if [[ "${multi_bit}" == "" ]]; then | ||
cargo "${RUST_TOOLCHAIN}" test \ | ||
--profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--features="${ARCH_FEATURE}",shortint,internal-keycache \ | ||
--doc \ | ||
-- shortint:: | ||
|
@@ -177,7 +184,7 @@ and not test(~smart_add_and_mul)""" # This test is too slow | |
cargo "${RUST_TOOLCHAIN}" nextest run \ | ||
--tests \ | ||
--cargo-profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--profile ci \ | ||
--features="${ARCH_FEATURE}",shortint,internal-keycache \ | ||
--test-threads "$(${nproc_bin})" \ | ||
|
@@ -186,7 +193,7 @@ and not test(~smart_add_and_mul)""" # This test is too slow | |
if [[ "${multi_bit}" == "" ]]; then | ||
cargo "${RUST_TOOLCHAIN}" test \ | ||
--profile "${cargo_profile}" \ | ||
--package tfhe \ | ||
--package "${tfhe_package}" \ | ||
--features="${ARCH_FEATURE}",shortint,internal-keycache \ | ||
--doc \ | ||
-- --test-threads="$(${nproc_bin})" shortint:: | ||
|