-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.test_binaries.sh
More file actions
executable file
·40 lines (36 loc) · 988 Bytes
/
.test_binaries.sh
File metadata and controls
executable file
·40 lines (36 loc) · 988 Bytes
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
#!/bin/bash
echo $PWD
REVELATION=${HOME}/revelation/
function test_binaries {
# Single-core ASM tests.
for FILE in $REVELATION/revelation/test/asm/*.elf ;
do
echo
echo $1 --max-insts 1000 $FILE
$1 --max-insts 1000 $FILE ;
done
# Single-core C tests.
for FILE in $REVELATION/revelation/test/c/*.elf ;
do
echo
echo $1 $FILE
$1 $FILE ;
done
# Multicore tests.
for FILE in $REVELATION/revelation/test/multicore/*.elf ;
do
echo
echo $1 -r 1 -c 2 $FILE
$1 -r 1 -c 2 $FILE;
done
# Single-core benchmarks.
echo
echo $1 $REVELATION/benchmarks/single-core/fib_large.elf
$1 $REVELATION/benchmarks/single-core/fib_large.elf
# Zigzag.
echo
echo $1 -r 2 -c 2 $REVELATION/revelation/test/zigzag/zigzag4.elf
$1 -r 2 -c 2 $REVELATION/revelation/test/zigzag/zigzag4.elf
}
test_binaries ./pydgin-revelation-jit
test_binaries ./pydgin-revelation-nojit