-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·39 lines (34 loc) · 815 Bytes
/
test.sh
File metadata and controls
executable file
·39 lines (34 loc) · 815 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
#!/bin/bash
MT=${MT:-4}
test()
{
args=$(grep '^SEQ' src/$1.sac | sed -e "s/^SEQ //")
if [ -n "$args" ]; then
echo "=== Testing $1 SEQ with input: $args ==="
./bin/$1 $args
else
echo "=== Skipping $1 SEQ ==="
fi
args=$(grep '^CHECK' src/$1.sac | sed -e "s/^CHECK //")
if [ -n "$args" ]; then
echo "=== Testing $1 CHECK with input: $args ==="
./bin/$1_p $args
else
echo "=== Skipping $1 CHECK ==="
fi
args=$(grep '^MT' src/$1.sac | sed -e "s/^MT //")
if [ -n "$args" ]; then
echo "== Testing $1 MT with input: $args ==="
SAC_PARALLEL=$MT ./bin/$1_mt $args
else
echo "=== Skipping $1 MT ==="
fi
}
test fft
test flash
test fmg
test mandelbrot
test matmul
test nbody
test quickhull
test stencil