mirror of https://github.com/ecmwf/eccodes.git
Simplify test
This commit is contained in:
parent
f65bde0a32
commit
98c19b88c4
|
@ -12,24 +12,11 @@
|
|||
|
||||
REDIRECT=/dev/null
|
||||
|
||||
# First check if Adaptive Entropy Coding (AEC) feature is enabled
|
||||
skip_test=0
|
||||
# Disable if autotools being used
|
||||
src_config=${src_dir}/config.h
|
||||
if [ -f ${src_config} ]; then
|
||||
set +e
|
||||
grep '#undef HAVE_LIBAEC' ${src_config} >/dev/null
|
||||
status=$?
|
||||
set -e
|
||||
if [ $status -eq 0 ]; then
|
||||
# Found the string so feature is disabled
|
||||
skip_test=1
|
||||
fi
|
||||
fi
|
||||
if [ $skip_test -eq 1 ]; then
|
||||
#echo "AEC feature was not enabled. Skipping this test."
|
||||
exit 0
|
||||
fi
|
||||
echo "AEC feature was enabled."
|
||||
|
||||
BLACKLIST="totalLength,section5Length,section7Length,dataRepresentationTemplateNumber"
|
||||
|
||||
|
|
Loading…
Reference in New Issue