tests/gdb-testsuite-sanity: add config flags relevant to testsuite

This commit is contained in:
Michal Kolar 2021-12-15 16:24:38 +00:00
parent e2a1df0b4f
commit dac5d9920c

View File

@ -75,8 +75,9 @@ rlJournalStart
rlRun "su -c 'bash ./configure &>$TmpDir/configure-gnulib.log' $BUILD_USER"
rlRun "rlFileSubmit $TmpDir/configure-gnulib.log configure-gnulib.log"
fi
rlRun "configure_flags=\$(rpmspec -D \"_topdir $TmpDir\" -P $TmpDir/SPECS/*.spec | grep -o -E '\-\-(prefix|with\-gdb\-datadir|with\-separate\-debug\-dir|with\-python)=\S+' | tr '\n' ' ')"
rlRun "cd $TmpDir/BUILD/gdb-*/gdb"
rlRun "su -c './configure &>$TmpDir/configure.log' $BUILD_USER"
rlRun "su -c './configure $configure_flags &>$TmpDir/configure.log' $BUILD_USER"
rlRun "rlFileSubmit $TmpDir/configure.log configure.log"
rlRun "DATADIR=`gdb -ex 'show data-directory' -batch | grep -o -E '/[^\"]+'`"
rlRun "mv data-directory data-directory.orig"