summaryrefslogtreecommitdiff
path: root/tests/sampledata.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sampledata.sh')
-rwxr-xr-xtests/sampledata.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/sampledata.sh b/tests/sampledata.sh
index 12649a4..894ef22 100755
--- a/tests/sampledata.sh
+++ b/tests/sampledata.sh
@@ -1,7 +1,10 @@
#!/bin/sh
set -e
AEC=../src/aec
-CCSDS_DATA=${srcdir}/data/121B2TestData
+if [ -n "$1" ]; then
+ srcdir=$1
+fi
+CCSDS_DATA=${srcdir}/../data/121B2TestData
ALLO=${CCSDS_DATA}/AllOptions
EXTP=${CCSDS_DATA}/ExtendedParameters
LOWE=${CCSDS_DATA}/LowEntropyOptions