-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_out
50 lines (43 loc) · 2.01 KB
/
create_out
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
#!/bin/bash
function create_out1() {
echo "Creating output files for basic case..."
./sim_main ./tests/example1.img 20 > ./output/out1
diff -q ./tests_results/res_example1.img ./output/out1
./sim_main ./tests/example2.img 20 > ./output/out2
diff -q ./tests_results/res_example2.img ./output/out2
./sim_main ./tests/example3.img 20 > ./output/out3
diff -q ./tests_results/res_example3.img ./output/out3
./sim_main ./tests/example4.img 20 > ./output/out4
diff -q ./tests_results/res_example4.img ./output/out4
# We will now create extra output files that have no comparison
./sim_main ./tests/example5.img 20 > ./output/out5
}
function create_out2() {
echo "Creating output files for split-regfile case..."
./sim_main ./tests/example1.img 20 -s > ./output/split1
diff -q ./tests_results/res_example1_split.img ./output/split1
./sim_main ./tests/example2.img 20 -s > ./output/split2
diff -q ./tests_results/res_example2_split.img ./output/split2
./sim_main ./tests/example3.img 20 -s > ./output/split3
diff -q ./tests_results/res_example3_split.img ./output/split3
./sim_main ./tests/example4.img 20 -s > ./output/split4
diff -q ./tests_results/res_example4_split.img ./output/split4
# We will now create extra output files that have no comparison
./sim_main ./tests/example5.img 20 -s > ./output/split5
}
function create_out3() {
echo "Creating output files for forwarding case..."
./sim_main ./tests/example1.img 20 -f > ./output/forward1
diff -s ./tests_results/res_example1_forwarding.img ./output/forward1
./sim_main ./tests/example2.img 20 -f > ./output/forward2
diff -s ./tests_results/res_example1_forwarding.img ./output/forward2
./sim_main ./tests/example3.img 20 -f > ./output/forward3
diff -s ./tests_results/res_example1_forwarding.img ./output/forward3
./sim_main ./tests/example4.img 20 -f > ./output/forward4
diff -s ./tests_results/res_example1_forwarding.img ./output/forward4
# We will now create extra output files that have no comparison
./sim_main ./tests/example5.img 20 -f > ./output/forward5
}
create_out1
create_out2
#create_out3