3 #necessary to make the testing prefix deterministic, so we can access the config files
4 GNUNET_TESTING_PREFIX=/tmp/test-scalarproduct1337
5 CFGA="-c ./test_scalarproduct_alice.conf"
6 CFGB="-c ./test_scalarproduct_bob.conf"
8 SESSIONDATA="-k AAAA -e 10,10,10"
16 IDB=`gnunet-peerinfo -s $CFGB | awk -F "\x60" '{print $2}' | awk -F "'" '{print $1}'`
18 gnunet-scalarproduct $CFGB $SESSIONDATA
20 RESULT=`gnunet-scalarproduct $CFGA $SESSIONDATA -p $IDB`
25 if [ "$RESULT" == "$EXPECTED" ]
30 echo "Result $RESULT NOTOK"