-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtestDMA4
executable file
·67 lines (65 loc) · 1.56 KB
/
testDMA4
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
62
63
64
65
66
67
#!/bin/csh
set log=testDMA$$.log
echo Start with $argv >& $log
echo Log is: `pwd`/$log
set tree=jk8
#set cmd="sudo -E LD_LIBRARY_PATH=$tree/lib:/usr/local $tree/core/dataplane/rpl_container/linux-bin/testRpl"
set cmd="sudo -E testRpl 0000:04:00.0"
if ($#argv == 0) then
echo Usage is: testDMA "<DP-roles> <nbufs> <message-sizes> <message-counts> [bd1] [bd2]"
echo Example: testDMA '"f" "1 2" "0 16" "1 1000"'
exit 1
endif
if ($#argv == 6) then
set args="$argv[5-]"
else
set args=""
endif
foreach r1i ($1)
foreach r3o ($1)
foreach n0o ($2)
foreach n1i ($2)
foreach n3o ($2)
foreach n0i ($2)
foreach I ($3)
foreach i ($4)
if ($#argv == 6) then
# two boards
foreach r6o ($1)
foreach n4i ($2)
foreach n6o ($2)
set params="-r1i$r1i -r3om -N0o $n0o -N1i $n1i -N3o $n3o -N0i $n0i -I $I -i $i -N4i $n4i -r6o$r6o -N6o $n6o"
echo -n For $params $args ..." "
echo For $params $args >>& $log
$cmd $params $args >>& $log
if ($status != 0) then
echo FAILED
exit 1
else
echo SUCCEEDED
endif
end
end
end
else
set params="-r1i$r1i -r3o$r3o -N0o $n0o -N1i $n1i -N3o $n3o -N0i $n0i -I $I -i $i"
echo -n For $params $args ..." "
echo For $params $args >>& $log
$cmd $params $args >>& $log
if ($status != 0) then
echo FAILED
exit 1
else
echo SUCCEEDED
endif
if ($status != 0) exit
endif
end
end
end
end
end
end
end
end
echo "testDMA done"