-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·47 lines (38 loc) · 1.14 KB
/
run_tests.sh
File metadata and controls
executable file
·47 lines (38 loc) · 1.14 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
#! /bin/bash
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)/../bin/"
block_size=1048576
blocks_count=10
input="input"
bufsize=$((1024 * 1024))
nrbufs=$(($block_size * $blocks_count / $bufsize))
dd if=/dev/urandom of=$input bs=$block_size count=$blocks_count &> /dev/null
nprod=2
ncons=2
nserv=1
nlist=1
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)/bin/"
export BUFFERING_NUMBER_OF_PRODUCERS=$nprod
export BUFFERING_NUMBER_OF_CONSUMERS=$ncons
export BUFFERING_NUMBER_OF_SERVERS=$nserv
export BUFFERING_NR_SERVER_LISTENERS=$nlist
export BUFFERING_BUFFER_SIZE=$bufsize
export BUFFERING_MAX_POOL_SIZE=$nrbufs
for file in bin/cpp_test*; do
echo ">>>> Test $file started"
./$file $input $nprod $ncons
echo ">>>> Test $file finished"
done
for file in bin/mpi_*; do
echo ">>>> Test $file started"
ulimit -s unlimited
if [ "$file" == "bin/mpi_p2p_filetransfer.bin" ]; then
export BUFFERING_NUMBER_OF_SERVERS=0
mpiexec -n $(($nprod + $ncons)) ./$file $input
export BUFFERING_NUMBER_OF_SERVERS=$nserv
else
mpiexec -n $(($nprod + $ncons + $nserv)) ./$file $input
fi
diff $input output
echo ">>>> Test $file finished"
done
rm $input