Compatibility with all kind of installations.
This commit is contained in:
parent
7849bedb7a
commit
d355b92651
|
@ -1,156 +1,154 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
LOG_RES=/tmp/res_mips_"$$"
|
|
||||||
LOG_MSG=/tmp/msg_mips_"$$"
|
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
LOG_RES=/tmp/res_mips_"$$"
|
||||||
|
LOG_MSG=/tmp/msg_mips_"$$"
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
echo "usage: $0 <bench_file>"
|
echo "usage: $0 <bench_file>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -f $1.u ]; then
|
if [ ! -f $1.u ]; then
|
||||||
echo "error: can't find '$1.u'"
|
echo "error: can't find '$1.u'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TOP=$ALLIANCE_TOP
|
if [ -z "$ALLIANCE_TOP" ]; then
|
||||||
MBK_CATA_LIB=.:$TOP/cells/sclib:$TOP/cells/sxlib:$TOP/cells/padlib:$TOP/cells/dplib:$TOP/cells/dp_sxlib
|
ALLIANCE_TOP="${HOME}/alliance/Linux.slsoc6x/install"
|
||||||
MBK_CATA_LIB=$MBK_CATA_LIB:$TOP/cells/fplib:$TOP/cells/rfg:$TOP/cells/dplib:$TOP/cells/rflib
|
fi
|
||||||
MBK_CATA_LIB=$MBK_CATA_LIB:../sce/
|
if [ "$ALLIANCE_TOP" != "/usr/lib/alliance" ]; then
|
||||||
export MBK_CATA_LIB
|
ALLIANCE_BIN=${ALLIANCE_TOP}/bin
|
||||||
MBK_IN_LO=vst
|
CELLS_TOP=${ALLIANCE_TOP}/cells
|
||||||
export MBK_IN_LO
|
else
|
||||||
|
ALLIANCE_BIN=/usr/bin
|
||||||
|
CELLS_TOP=/usr/share/alliance/cells
|
||||||
|
fi
|
||||||
|
|
||||||
rm -f $LOG_RES $LOG_MSG
|
|
||||||
|
|
||||||
echo "################# ---- Test de : $1 ---- #################"
|
MBK_CATA_LIB=.
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/sclib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/sxlib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/padlib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/dplib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/dp_sxlib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/fplib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/rfg
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/dplib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:$CELLS_TOP/rflib
|
||||||
|
MBK_CATA_LIB=${MBK_CATA_LIB}:../sce/
|
||||||
|
export MBK_CATA_LIB
|
||||||
|
|
||||||
if [ -f $1.e ]; then
|
MBK_IN_LO=vst
|
||||||
|
export MBK_IN_LO
|
||||||
|
|
||||||
|
rm -f $LOG_RES $LOG_MSG
|
||||||
|
|
||||||
|
echo "################# ---- Test de : $1 ---- #################"
|
||||||
|
|
||||||
|
if [ -f $1.e ]; then
|
||||||
cp -f $1.e rome.e
|
cp -f $1.e rome.e
|
||||||
$TOP/bin/mips_asm rome.e rome foo 1> /dev/null
|
$ALLIANCE_BIN/mips_asm rome.e rome foo 1> /dev/null
|
||||||
fi
|
fi
|
||||||
|
if [ -f $1.u ]; then
|
||||||
if [ -f $1.u ]; then
|
|
||||||
cp -f $1.u romu.u
|
cp -f $1.u romu.u
|
||||||
$TOP/bin/mips_asm romu.u romu foo 1> /dev/null
|
$ALLIANCE_BIN/mips_asm romu.u romu foo 1> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$ALLIANCE_BIN/asimut -zerodelay -i 0 -bdd -p 100 mips_cpu mips_cpu $1 1> $LOG_MSG 2> $LOG_RES
|
||||||
|
#$ALLIANCE_BIN/asimut -zerodelay -bdd -p 100 mips_cpu mips_cpu $1 2>$LOG_RES
|
||||||
|
#$ALLIANCE_BIN/asimut -zerodelay -bdd -p 100 mips_cpu mips_cpu $1
|
||||||
|
|
||||||
|
grep -i bad $LOG_RES >/dev/null
|
||||||
$TOP/bin/asimut -zerodelay -i 0 -bdd -p 100 mips_cpu mips_cpu $1 1> $LOG_MSG 2> $LOG_RES
|
|
||||||
|
|
||||||
#asimut -zerodelay -bdd -p 100 mips_cpu mips_cpu $1 2>$LOG_RES
|
|
||||||
|
|
||||||
#asimut -zerodelay -bdd -p 100 mips_cpu mips_cpu $1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
grep -i bad $LOG_RES >/dev/null
|
|
||||||
|
|
||||||
#grep -i bad $LOG_RES
|
#grep -i bad $LOG_RES
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "ERROR !"
|
echo "ERROR !"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
grep -i good $LOG_RES > /dev/null
|
|
||||||
|
|
||||||
|
grep -i good $LOG_RES > /dev/null
|
||||||
#grep -i good $LOG_RES
|
#grep -i good $LOG_RES
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "No error, you're lucky !"
|
echo "No error, you're lucky !"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
grep -i "No such file or directory" $LOG_RES > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
|
||||||
grep -i "No such file or directory" $LOG_RES > /dev/null
|
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
echo "================= By jove ! a file is missing (asimut) ... ============== "
|
echo "================= By jove ! a file is missing (asimut) ... ============== "
|
||||||
grep -i "No such file or directory" $LOG_RES
|
grep -i "No such file or directory" $LOG_RES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
grep -i "No such file or directory" $LOG_MSG > /dev/null
|
||||||
|
|
||||||
grep -i "No such file or directory" $LOG_MSG > /dev/null
|
if [ $? -eq 0 ] ; then
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
echo "================= By jove ! Il manque un fichier (asimut) ... ============== "
|
echo "================= By jove ! Il manque un fichier (asimut) ... ============== "
|
||||||
grep -i "No such file or directory" $LOG_MSG
|
grep -i "No such file or directory" $LOG_MSG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
grep -i "core dump" $LOG_RES > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
|
||||||
grep -i "core dump" $LOG_RES > /dev/null
|
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
echo "================= core dump (asimut) ... ========= "
|
echo "================= core dump (asimut) ... ========= "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep -i "core dump" $LOG_MSG > /dev/null
|
grep -i "core dump" $LOG_MSG > /dev/null
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "================= core dump (asimut) ... ========= "
|
echo "================= core dump (asimut) ... ========= "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
grep "Error" $LOG_RES > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
grep "Error" $LOG_RES > /dev/null
|
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
echo "================= Error (asimut) ... ==== "
|
echo "================= Error (asimut) ... ==== "
|
||||||
grep -i "Error" $LOG_RES
|
grep -i "Error" $LOG_RES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep "Error" $LOG_MSG > /dev/null
|
grep "Error" $LOG_MSG > /dev/null
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "================= Error ! (asimut) ... ==== "
|
echo "================= Error ! (asimut) ... ==== "
|
||||||
grep -i "Error" $LOG_MSG
|
grep -i "Error" $LOG_MSG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
grep "can't open file" $LOG_RES > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
grep "can't open file" $LOG_RES > /dev/null
|
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
echo "================= A file is missing (asimut) ... ========== "
|
echo "================= A file is missing (asimut) ... ========== "
|
||||||
grep -i "can't open file" $LOG_RES
|
grep -i "can't open file" $LOG_RES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep "can't open file" $LOG_MSG > /dev/null
|
grep "can't open file" $LOG_MSG > /dev/null
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "================= A file is missing (asimut) ... ========== "
|
echo "================= A file is missing (asimut) ... ========== "
|
||||||
grep -i "can't open file" $LOG_MSG
|
grep -i "can't open file" $LOG_MSG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
grep "exception occured" $LOG_RES > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
grep "exception occured" $LOG_RES > /dev/null
|
grep "exc" $1.u > /dev/null
|
||||||
|
if [ ! $? -eq 0 ] ; then
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
grep "exc" $1.u > /dev/null
|
|
||||||
if [ ! $? -eq 0 ] ; then
|
|
||||||
echo "================= Exception (asimut) ... ======== "
|
echo "================= Exception (asimut) ... ======== "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep "exception occured" $LOG_MSG > /dev/null
|
grep "exception occured" $LOG_MSG > /dev/null
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
grep "exc" $1.u > /dev/null
|
grep "exc" $1.u > /dev/null
|
||||||
if [ ! $? -eq 0 ] ; then
|
if [ ! $? -eq 0 ] ; then
|
||||||
echo "================= Exception (asimut) ... ======== "
|
echo "================= Exception (asimut) ... ======== "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f toto.vbe
|
rm -f toto.vbe
|
||||||
rm -f romu.u
|
rm -f romu.u
|
||||||
rm -f rome.e
|
rm -f rome.e
|
||||||
rm -f $LOG_RES
|
rm -f $LOG_RES
|
||||||
rm -f $LOG_MSG
|
rm -f $LOG_MSG
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue