Let the test script work on multiple targets
This commit is contained in:
parent
b2822ce028
commit
d86cdee3f3
@ -100,7 +100,7 @@ _tests()
|
|||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
echo "Usage: $PROGNAME target" 1>&2
|
echo "Usage: $PROGNAME [-c] target..." 1>&2
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,12 +122,16 @@ while getopts "cP:" name; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $(($OPTIND - 1))
|
shift $(($OPTIND - 1))
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
_usage
|
_usage
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$clean" -ne 0 ] && exit 0
|
[ "$clean" -ne 0 ] && exit 0
|
||||||
|
|
||||||
target="$1"
|
while [ $# -gt 0 ]; do
|
||||||
_tests > "$target"
|
target="$1"
|
||||||
|
shift
|
||||||
|
|
||||||
|
_tests > "$target" || exit 2
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user