Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / test / t_pcari_1.sh @ master

History | View | Annotate | Download (652 Bytes)

1
#!/bin/sh
2

    
3
# configuration
4
export GDP_NAME_ROOT="swarmlab.gdp.test.pcari_1"
5
log1="log1"
6
log2="log2"
7

    
8
# find local binaries and support files
9
dir=`dirname $0`
10
cd $dir/..
11
gdp=`pwd`
12
. adm/common-support.sh
13
export PATH="$gdp/apps:$PATH"
14

    
15
# create test logs if needed
16
log-exists $log1 || gdp-create -e none $log1
17
log-exists $log2 || gdp-create -e none $log2
18

    
19
warn "May need to manually add these logs to HONGD:"
20
warn "    gdp-name-add $GDP_NAME_ROOT/$log1 <internal name from above>"
21
warn "    gdp-name-add $GDP_NAME_ROOT/$log2 <internal name from above>"
22

    
23
# now run the test itself
24
cd $gdp/test
25
make t_common_support.o t_pcari_1
26
./t_pcari_1 $* $log1 $log2