#!/bin/sh

. ./test-functions

echo -n "Tainted transitive sh. mem. test:	"
_wget=$(copy wget)
ipcrm -a
./programs/shmpipe 1 2 2 &
./programs/shmpipe 2 3 3 &
./programs/shmwritefromfile 1 confidential 1 &
./programs/shmread 3 4 | test_evil_bit $_wget --no-check-certificate -i - --quiet -O /dev/null
wait
ipcrm -a
rm -f $_wget
