summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-28 21:16:02 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-28 21:16:02 +0200
commit5a85d83e3e099c5781c205b62fecd25474f0985a (patch)
tree8885d89e1f6ea2547f767eb7b2498eca916aac5c /tests
parente1265fa32837f457ee2c2fa259d12c9545af4bbf (diff)
downloadipecamera-5a85d83e3e099c5781c205b62fecd25474f0985a.tar.gz
ipecamera-5a85d83e3e099c5781c205b62fecd25474f0985a.tar.bz2
ipecamera-5a85d83e3e099c5781c205b62fecd25474f0985a.tar.xz
ipecamera-5a85d83e3e099c5781c205b62fecd25474f0985a.zip
Link against ufodecode
Diffstat (limited to 'tests')
-rwxr-xr-xtests/autotrigger.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/autotrigger.sh b/tests/autotrigger.sh
index b7318c8..678f854 100755
--- a/tests/autotrigger.sh
+++ b/tests/autotrigger.sh
@@ -1,9 +1,16 @@
#! /bin/bash
function pci {
- PCILIB_PATH=`which pci`
- #LD_LIBRARY_PATH="$PCILIB_PATH"
- $PCILIB_PATH/pci $*
+ APP_PATH=`dirname $0`/..
+ if [ -d $APP_PATH/../pcitool ]; then
+ PCILIB_BINARY="$APP_PATH/../pcitool/pcitool/pci"
+ PCILIB_PATH="$APP_PATH/../pcitool/pcilib"
+ else
+ PCILIB_BINARY=`which pci`
+ PCILIB_PATH=""
+ fi
+
+ LD_LIBRARY_PATH="$PCILIB_PATH" PCILIB_PLUGIN_DIR="$APP_PATH" $PCILIB_BINARY $*
}
echo "Starting the grabber"