forked from zama-ai/concrete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shortint-tests.sh
executable file
·38 lines (32 loc) · 1.1 KB
/
shortint-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
filter_expression=''\
'('\
' test(/^server_key::.*_param_message_1_carry_1$/)'\
'or test(/^server_key::.*_param_message_1_carry_2$/)'\
'or test(/^server_key::.*_param_message_1_carry_3$/)'\
'or test(/^server_key::.*_param_message_1_carry_4$/)'\
'or test(/^server_key::.*_param_message_1_carry_5$/)'\
'or test(/^server_key::.*_param_message_1_carry_6$/)'\
'or test(/^server_key::.*_param_message_2_carry_2$/)'\
'or test(/^server_key::.*_param_message_2_carry_2$/)'\
'or test(/^server_key::.*_param_message_3_carry_3$/)'\
'or test(/^server_key::.*_param_message_4_carry_4$/)'\
'or test(/^treepbs::.*_param_message_1_carry_1$/)'\
'or test(/^treepbs::.*_param_message_2_carry_2$/)'\
')'\
'and not test(~smart_add_and_mul)' # This test is too slow
export RUSTFLAGS="-C target-cpu=native"
cargo nextest run \
--release \
--package concrete-shortint \
--profile ci \
--features internal-keycache \
--test-threads 10 \
-E "$filter_expression"
cargo test \
--release \
--package concrete-shortint \
--features internal-keycache \
--doc
echo "Test ran in $SECONDS seconds"