-
Notifications
You must be signed in to change notification settings - Fork 14
/
test_all_configs.sh
51 lines (46 loc) · 1.48 KB
/
test_all_configs.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
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
CHANGE_DEFINES_SCRIPT=./scripts/change_defines.py
BUILD_DIR=./build
# ifft 0, 1
# ntt 0, 1, 2, 3
# index_map_type 0, 1, 2, 3, 4
# sk_type 0, 1, 2
# data_load_type 0, 1
# python3 $CHANGE_DEFINES_SCRIPT -i 0 -n 0 -m 0 -s 0 -d 0
# cmake --build build -j || exit 1
# $BUILD_DIR/bin/seal_embedded_tests
# status=$?
# echo "status = "$status
# if [ $status -ne "0" ]
# then
# echo "THERE WAS AN ERROR."
# exit
# fi
# exit
for d in 0 1
do
for i in 0 1
do
for n in 0 1 2 3
do
for m in 0 1 2 3 4
do
for s in 0 1
do
python3 $CHANGE_DEFINES_SCRIPT -i $i -n $n -m $m -s $s -d $d
cmake --build $BUILD_DIR -j || exit 1
$BUILD_DIR/bin/seal_embedded_tests
status=$?
echo "status = "$status
if [ $status -ne 0 ]
then
echo "THERE WAS AN ERROR."
exit
fi
done
done
done
done
done