test: Refactor test programs

Change-Id: I77fec2f5f30f6fda3bda6f85ce00f1c2e7f7a9b3
This commit is contained in:
Ken Sato
2018-09-18 16:02:20 +09:00
parent c862b29d65
commit e803698618
93 changed files with 1127 additions and 2748 deletions

View File

@ -1,27 +1,8 @@
#!/bin/sh
BIN=
SBIN=
USELTP=0
USEOSTEST=0
BOOTPARAM="-c 1-7 -m 2G@0"
. ../../common.sh
if [ -f ../../../config.h ]; then
str=`grep "^#define BINDIR " ../../../config.h | head -1 | sed 's/^#define BINDIR /BINDIR=/'`
eval $str
fi
if [ -f ../../../Makefile ]; then
str=`grep ^SBINDIR ../../../Makefile | head -1 | sed 's/ //g'`
eval $str
fi
if [ "x$BINDIR" = x ];then
BINDIR="$BIN"
fi
if [ "x$SBINDIR" = x ];then
SBINDIR="$SBIN"
fi
if ! lsmod | grep mcctrl > /dev/null 2>&1; then
$SBINDIR/mcreboot.sh $BOOTPARAM
fi
$BINDIR/mcexec ./C926
$MCEXEC ./C926

View File

@ -17,9 +17,10 @@ C926T10 shmget->shmat->RMID->shmatで同じ領域が使われることを確認
□ 実行手順
$ make test
実行できない場合は、C926.shの以下の行を適切に書き換えた後に実行。
BIN= mcexec が存在するパス
SBIN= mcreboot.sh が存在するパス
McKernelのインストール先や、OSTEST, LTPの配置場所は、
$HOME/.mck_test_config を参照している
.mck_test_config は、McKernelをビルドした際に生成されるmck_test_config.sample ファイルを
$HOMEにコピーし、適宜編集する
□ 実行結果
C926.txt 参照。