Files
mckernel/test/issues/1195/C1195.sh
Ken Sato 764948b51f test: Fix test programs for #1195
Add chmod 666 /dev/mcos0 for fork after setuid()

Refs: #1195
Change-Id: I2bec6a9a8378d246f50a9fc08a345b3235096a06
2019-02-28 00:57:22 +00:00

33 lines
737 B
Bash

#!/bin/sh
USELTP=1
USEOSTEST=0
. ../../common.sh
# for fork after setuid()
chmod 666 /dev/mcos0
tid=001
echo "*** CT$tid start *******************************"
sudo ${MCEXEC} ${LTPBIN}/nftw01 2>&1 | tee ./CT${tid}.txt
ok=`grep TPASS CT${tid}.txt | wc -l`
ng=`grep TFAIL CT${tid}.txt | wc -l`
if [ $ng = 0 ]; then
echo "*** CT$tid: PASSED (ok:$ok, ng:$ng)"
else
echo "*** CT$tid: FAILED (ok:$ok, ng:$ng)"
fi
echo ""
tid=002
echo "*** CT$tid start *******************************"
sudo ${MCEXEC} ${LTPBIN}/nftw6401 2>&1 | tee ./CT${tid}.txt
ok=`grep TPASS CT${tid}.txt | wc -l`
ng=`grep TFAIL CT${tid}.txt | wc -l`
if [ $ng = 0 ]; then
echo "*** CT$tid: PASSED (ok:$ok, ng:$ng)"
else
echo "*** CT$tid: FAILED (ok:$ok, ng:$ng)"
fi