projects
/
platform
/
upstream
/
libaec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd429c7
)
Allow benchmarks in VPATH builds.
author
Thomas Jahns
<jahns@dkrz.de>
Mon, 3 Mar 2014 12:39:48 +0000
(13:39 +0100)
committer
Thomas Jahns
<jahns@dkrz.de>
Mon, 3 Mar 2014 15:05:36 +0000
(16:05 +0100)
* Also check for errors in benchmark script.
tests/Makefile.am
patch
|
blob
|
history
tests/bdec.sh
patch
|
blob
|
history
diff --git
a/tests/Makefile.am
b/tests/Makefile.am
index
6fd6f55
..
27140af
100644
(file)
--- a/
tests/Makefile.am
+++ b/
tests/Makefile.am
@@
-17,7
+17,7
@@
LDADD = libcheck_aec.la $(top_builddir)/src/libaec.la
EXTRA_DIST = sampledata.sh benc.sh bdec.sh
bench: benc bdec
benc:
-
.
/benc.sh
+
$(srcdir)
/benc.sh
bdec:
-
.
/bdec.sh
+
$(srcdir)
/bdec.sh
.PHONY: bench benc bdec
diff --git
a/tests/bdec.sh
b/tests/bdec.sh
index
f27bfca
..
9a8544f
100755
(executable)
--- a/
tests/bdec.sh
+++ b/
tests/bdec.sh
@@
-4,7
+4,8
@@
AEC=../src/aec
if [ ! -f bench.rz ]; then
echo "No encoded file found. Encoding now..."
- ./benc.sh
+ path=$(echo $0 | sed -e 's:[^/]*$::')
+ "${path}"/benc.sh
fi
rm -f dec.dat
bsize=$(stat -c "%s" bench.dat)