Test "mcexec additional options (h, m, n, O, stack-premap)" on arm64

Change-Id: I85d5deb0433cc1208e4b6837dcc6d6dc2a7b7b52
This commit is contained in:
Shiratori, Takehiro
2018-11-23 16:03:33 +09:00
committed by Masamichi Takagi
parent dc1f96fee3
commit 00395d68d4
13 changed files with 866 additions and 0 deletions

View File

@ -0,0 +1,57 @@
#!/bin/sh
## run_nr_partitions.sh COPYRIGHT FUJITSU LIMITED 2018 ##
USELTP=0
USEOSTEST=0
. ../../common.sh
. ./config
result=0
####################
## -n option test ##
####################
${MCEXEC} -n 2 ls > /dev/null &
sleep 1
${MCEXEC} -n 2 ls > /dev/null
if [ `echo $?` == 0 ]; then
echo "TEST017: OK"
else
echo "TEST017: NG, -n 2 setting."
result=-1
fi
${MCEXEC} -n 4 ls > /dev/null &
sleep 1
${MCEXEC} -n 4 ls > /dev/null &
sleep 1
${MCEXEC} -n 4 ls > /dev/null &
sleep 1
${MCEXEC} -n 4 ls > /dev/null
if [ `echo $?` == 0 ]; then
echo "TEST018: OK"
else
echo "TEST018: NG, -n 4 setting."
result=-1
fi
${MCEXEC} -n 8 ls
if [ `echo $?` != 0 ]; then
echo "TEST019: OK"
else
echo "TEST019: NG, -n <over mckcores> setting."
result=-1
fi
${MCEXEC} -n abcde ls
if [ `echo $?` != 0 ]; then
echo "TEST020: OK"
else
echo "TEST020: NG, -n <invalid strings> setting."
result=-1
fi
exit ${result}