diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /qa/qt/setup-executables | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'qa/qt/setup-executables')
-rwxr-xr-x | qa/qt/setup-executables | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/qa/qt/setup-executables b/qa/qt/setup-executables new file mode 100755 index 0000000..2751da1 --- /dev/null +++ b/qa/qt/setup-executables @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Very ugly picker for executables from a build. +# +# Problem is that /var/lib/pcp/testsuite/qa is populated from the +# packaging, but in a build context the qmc headers are defined in +# ../../src/libpcp_qmc/src but the qmc library and the standard +# PCP headers are not in ../../src they are out in the build area +# c/o Makepkgs +# + +if [ -z "$PCP_DIR" ] +then + . /etc/pcp.conf +else + . "$PCP_DIR"/etc/pcp.conf +fi + +builddir='' +for builddir in ../../build/deb/pcp-$PCP_VERSION/qa/qt $PCP_VAR_DIR/testsuite/qt '' +do + [ -n "$builddir" -a -d "$builddir" ] && break +done + +for x in qmc_* +do + [ -x $x/$x ] && continue + echo -n "Hunting for $x executable ... " + if [ -z "$builddir" ] + then + echo "no build dir, not found" + elif [ -x $builddir/$x/$x ] + then + cp $builddir/$x/$x $x/$x + echo OK + else + echo "not found" + fi +done |