3 #necessary to make the testing prefix deterministic, so we can access the config files
4 GNUNET_TESTING_PREFIX=/tmp/test-scalarproduct`date +%H%M%S`
5 CFGALICE="-c $GNUNET_TESTING_PREFIX/0/config"
6 CFGBOB="-c $GNUNET_TESTING_PREFIX/1/config"
8 ../testbed/gnunet-testbed-profiler -c test_scalarproduct.conf -p 2 2>gnunet_error.log &
11 PEERIDBOB=`gnunet-peerinfo -qs $CFGB`
12 INPUTALICE="-k AAAA -e 10,10,10"
13 INPUTBOB="-k AAAA -e 10,10,10"
16 gnunet-scalarproduct $CFGBOB $INPUTBOB
17 RESULT=`gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB 2>client_error.log`
19 if [ "$RESULT" == "$EXPECTED" ]
24 echo "Result $RESULT NOTOK"