forked from lspestrip/striptease
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_reference_test_procedures.sh
More file actions
executable file
·61 lines (54 loc) · 2.13 KB
/
create_reference_test_procedures.sh
File metadata and controls
executable file
·61 lines (54 loc) · 2.13 KB
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
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
set -e
readonly output_dir="$1"
readonly short_wait_time_s=120
readonly proc3_long_wait_time_s=1800
readonly proc4_long_wait_time_s=7200
if [ "$output_dir" == "" ]; then
echo "Usage: $(basename $0) OUTPUT_DIR"
echo ""
echo "Create the set of JSON files to run the reference test for each board"
exit 1
fi
# Create the directory, if it does not exist
mkdir -p "$output_dir"
for board in R O Y G B V I; do
python3 program_reference_test1.py \
--wait-time-s=$short_wait_time_s \
$board > "${output_dir}/reftest_${board}_1.json"
python3 program_reference_test2.py \
--wait-time-s=$short_wait_time_s \
$board > "${output_dir}/reftest_${board}_2.json"
python3 program_reference_test3.py \
--wait-time-s=$short_wait_time_s \
--long-wait-time-s=$proc3_long_wait_time_s \
$board > "${output_dir}/reftest_${board}_3.json"
python3 program_reference_test4.py \
--wait-time-s=$short_wait_time_s \
--long-wait-time-s=$proc4_long_wait_time_s \
$board > "${output_dir}/reftest_${board}_4.json"
done
python3 program_reference_test1.py \
--wait-time-s=$short_wait_time_s \
> "${output_dir}/reftest_all_1.json"
python3 program_reference_test2.py \
--wait-time-s=$short_wait_time_s \
> "${output_dir}/reftest_all_2.json"
python3 program_reference_test3.py \
--wait-time-s=$short_wait_time_s \
--turn-on \
--long-wait-time-s=$proc3_long_wait_time_s \
> "${output_dir}/reftest_all_3_turnon.json"
python3 program_reference_test4.py \
--wait-time-s=$short_wait_time_s \
--turn-on \
--long-wait-time-s=$proc4_long_wait_time_s \
> "${output_dir}/reftest_all_4_turnon.json"
python3 program_reference_test3.py \
--wait-time-s=$short_wait_time_s \
--long-wait-time-s=$proc3_long_wait_time_s \
> "${output_dir}/reftest_all_3_no_turnon.json"
python3 program_reference_test4.py \
--wait-time-s=$short_wait_time_s \
--long-wait-time-s=$proc4_long_wait_time_s \
> "${output_dir}/reftest_all_4_no_turnon.json"