Add generic_check function and add new default check target to build.sh.
The check target is excluded from the all target since it can often take a very long time to run.
This commit is contained in:
@@ -154,6 +154,10 @@ generic_configure=1
|
||||
# We default to an empty string so the default target will be built
|
||||
make_build_target=""
|
||||
|
||||
# Allow overriding the make target for running the testsuite
|
||||
# We default to 'check'
|
||||
make_check_target="check"
|
||||
|
||||
# Allow skipping the configure run
|
||||
no_configure=0
|
||||
|
||||
@@ -686,6 +690,14 @@ generic_build()
|
||||
fi
|
||||
}
|
||||
|
||||
# generic_check(): Run the check target
|
||||
# params: $1 = dir to descend to *inside* "source" - optional
|
||||
generic_check()
|
||||
{
|
||||
setdir ${srcdir}/${topsrcdir}/$1
|
||||
$MAKE_PROG -k $(_upls $make_check_target)
|
||||
}
|
||||
|
||||
# generic_build_perl(): Build a perl module from source
|
||||
# params: same as generic_build
|
||||
# This is based on code ripped out of a RPM specfile generated
|
||||
|
||||
Reference in New Issue
Block a user