Add a verbose mode for tests (default)

This commit is contained in:
Pierre Pronchery 2016-02-25 02:25:14 +01:00
parent 3f90b7c4b0
commit 38f099604d
2 changed files with 7 additions and 4 deletions

View File

@ -162,7 +162,7 @@ sources=template.asm
[tests.log] [tests.log]
type=script type=script
script=./tests.sh script=./tests.sh -v
depends=$(OBJDIR)amd64.o,$(OBJDIR)arm.o,$(OBJDIR)armeb.o,$(OBJDIR)armel.o,$(OBJDIR)i386.o,$(OBJDIR)i386_real.o,$(OBJDIR)i486.o,$(OBJDIR)i586.o,$(OBJDIR)i686.o,python.sh,$(OBJDIR)sparc.o,$(OBJDIR)sparc64.o,tests.sh,$(OBJDIR)yasep.o,$(OBJDIR)yasep16.o,$(OBJDIR)yasep32.o,$(OBJDIR)../tools/asm-static,$(OBJDIR)../tools/deasm-static depends=$(OBJDIR)amd64.o,$(OBJDIR)arm.o,$(OBJDIR)armeb.o,$(OBJDIR)armel.o,$(OBJDIR)i386.o,$(OBJDIR)i386_real.o,$(OBJDIR)i486.o,$(OBJDIR)i586.o,$(OBJDIR)i686.o,python.sh,$(OBJDIR)sparc.o,$(OBJDIR)sparc64.o,tests.sh,$(OBJDIR)yasep.o,$(OBJDIR)yasep16.o,$(OBJDIR)yasep32.o,$(OBJDIR)../tools/asm-static,$(OBJDIR)../tools/deasm-static
[yasep.o] [yasep.o]

View File

@ -21,7 +21,7 @@ PROGNAME="tests.sh"
#executables #executables
DATE="date" DATE="date"
DEASM="${OBJDIR}../tools/deasm-static" DEASM="${OBJDIR}../tools/deasm-static"
DEBUG="_debug" DEBUG=
#functions #functions
@ -95,14 +95,14 @@ _test()
#usage #usage
_usage() _usage()
{ {
echo "Usage: $PROGNAME [-c][-P prefix] target" 1>&2 echo "Usage: $PROGNAME [-cv][-P prefix] target" 1>&2
return 1 return 1
} }
#main #main
clean=0 clean=0
while getopts "cP:" name; do while getopts "cP:v" name; do
case "$name" in case "$name" in
c) c)
clean=1 clean=1
@ -110,6 +110,9 @@ while getopts "cP:" name; do
P) P)
#XXX ignored #XXX ignored
;; ;;
v)
DEBUG="_debug"
;;
?) ?)
_usage _usage
exit $? exit $?