add testcases for #732 #1065 #1102

This commit is contained in:
Ken Sato
2018-06-07 10:11:23 +09:00
parent 139123dc12
commit 9bb48186e6
35 changed files with 1653 additions and 0 deletions

38
test/issues/1065/CT_002.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/bin/sh
TESTNAME=CT_002
arg_path=./dummy_file
. ./config
fail=0
echo "*** ${TESTNAME} start *******************"
real_path=`realpath ${arg_path}`
echo "file map: ${arg_path}"
${MCEXEC} ./file_map ${arg_path} | tee ./${TESTNAME}.log
if [ X$? != X0 ]; then
fail=1
fi
echo ""
echo "** grep ${real_path} from maps"
grep -a -e "${real_path}$" ./${TESTNAME}.log
if [ X$? = X0 ]; then
echo "[OK] ${real_path} is found"
else
echo "[NG] ${real_path} is not found"
fail=1
fi
if [ X$fail = X0 ]; then
echo "*** ${TESTNAME} PASSED"
else
echo "*** ${TESTNAME} FAILED"
fi
echo ""
rm ./${TESTNAME}.log