Slightly improved the tests
This commit is contained in:
parent
18c69f4d85
commit
f2d23966ea
|
@ -61,7 +61,7 @@ sparc.o_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS) -a sparc
|
||||||
sparc64.o_OBJS = sparc64.o
|
sparc64.o_OBJS = sparc64.o
|
||||||
sparc64.o_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS) -a sparc64
|
sparc64.o_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS) -a sparc64
|
||||||
|
|
||||||
tests.log: amd64.o arm.o armeb.o armel.o i386.o i386_real.o i486.o i586.o i686.o sparc.o sparc64.o yasep.o yasep16.o yasep32.o
|
tests.log: amd64.o arm.o armeb.o armel.o i386.o i386_real.o i486.o i586.o i686.o sparc.o sparc64.o tests.sh yasep.o yasep16.o yasep32.o
|
||||||
./tests.sh -P "$(PREFIX)" -- "tests.log"
|
./tests.sh -P "$(PREFIX)" -- "tests.log"
|
||||||
|
|
||||||
yasep.o_OBJS = yasep.o
|
yasep.o_OBJS = yasep.o
|
||||||
|
|
|
@ -133,7 +133,7 @@ depends=../src/asm
|
||||||
[tests.log]
|
[tests.log]
|
||||||
type=script
|
type=script
|
||||||
script=./tests.sh
|
script=./tests.sh
|
||||||
depends=amd64.o,arm.o,armeb.o,armel.o,i386.o,i386_real.o,i486.o,i586.o,i686.o,sparc.o,sparc64.o,yasep.o,yasep16.o,yasep32.o
|
depends=amd64.o,arm.o,armeb.o,armel.o,i386.o,i386_real.o,i486.o,i586.o,i686.o,sparc.o,sparc64.o,tests.sh,yasep.o,yasep16.o,yasep32.o
|
||||||
|
|
||||||
[yasep.o]
|
[yasep.o]
|
||||||
type=object
|
type=object
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
|
DATE="date"
|
||||||
DEASM="../src/deasm-static"
|
DEASM="../src/deasm-static"
|
||||||
DEBUG="debug"
|
DEBUG="debug"
|
||||||
|
|
||||||
|
@ -48,14 +49,18 @@ debug()
|
||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
echo "Usage: tests.sh" 1>&2
|
echo "Usage: tests.sh [-c][-P prefix]" 1>&2
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#main
|
#main
|
||||||
while getopts "P:" "name"; do
|
clean=0
|
||||||
|
while getopts "cP:" "name"; do
|
||||||
case "$name" in
|
case "$name" in
|
||||||
|
c)
|
||||||
|
clean=1
|
||||||
|
;;
|
||||||
P)
|
P)
|
||||||
#XXX ignored
|
#XXX ignored
|
||||||
;;
|
;;
|
||||||
|
@ -72,7 +77,9 @@ if [ $# -ne 1 ]; then
|
||||||
fi
|
fi
|
||||||
target="$1"
|
target="$1"
|
||||||
|
|
||||||
> "$target"
|
[ "$clean" -ne 0 ] && exit 0
|
||||||
|
|
||||||
|
$DATE > "$target"
|
||||||
FAILED=
|
FAILED=
|
||||||
_deasm amd64 >> "$target" || FAILED="$FAILED amd64(error $?)"
|
_deasm amd64 >> "$target" || FAILED="$FAILED amd64(error $?)"
|
||||||
_deasm arm >> "$target" || FAILED="$FAILED arm(error $?)"
|
_deasm arm >> "$target" || FAILED="$FAILED arm(error $?)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user