mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
fate: Allow overriding what targets to make for running the tests
This can be useful if doing testing of uncommon CPU extensions by running tests with QEMU (by configuring with e.g. "target_exec=qemu-aarch64"), by only running the checkasm tests, to get a reasonable test coverage without excessive test runtime. For such a config, setting fate_targets="fate-checkasm fate-cpu" can be a good tradeoff. Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a97f5e1cc8
commit
19b46b8d2d
@ -31,3 +31,5 @@ makeopts= # extra options passed to 'make'
|
||||
# defaulting to makeopts above if this is not set
|
||||
#tar= # command to create a tar archive from its arguments on stdout,
|
||||
# defaults to 'tar c'
|
||||
#fate_targets= # targets to make when running fate; defaults to "fate",
|
||||
# can be set to run a subset of tests, e.g. "fate-checkasm".
|
||||
|
@ -75,7 +75,7 @@ compile()(
|
||||
fate()(
|
||||
test "$build_only" = "yes" && return
|
||||
cd ${build} || return
|
||||
${make} ${makeopts_fate-${makeopts}} -k fate
|
||||
${make} ${makeopts_fate-${makeopts}} -k ${fate_targets}
|
||||
)
|
||||
|
||||
clean(){
|
||||
@ -103,6 +103,7 @@ cd ${workdir} || die "cd ${workdir} failed"
|
||||
src=${workdir}/src
|
||||
: ${build:=${workdir}/build}
|
||||
: ${inst:=${workdir}/install}
|
||||
: ${fate_targets:=fate}
|
||||
|
||||
test -d "$src" && update || checkout || die "Error fetching source"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user