Skip to content
Snippets Groups Projects
Commit 5646e0ba authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Enforce ASCII check in regtest

parent 87a2d6be
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,14 @@ for file in *.reference ; do
../../../scripts/fixzeroes.sh "$file"
cp "$new" "$new.zfix"
../../../scripts/fixzeroes.sh "$new.zfix"
out="$(diff "$file" "$new.zfix")"
DIFFOPT=""
# this is to enforce ASCII check
# I add this option since sometime on travis some of the diff files are not shown
# (files are thought to be binary for some reason)
# In this way, at least PLUMED native files (with fields) will be assumed to be
# ASCII and diff will be shown in the log
test "$(cat "$file" | head -c 10)" = "#! FIELDS " && DIFFOPT="-a"
out="$(diff $DIFFOPT "$file" "$new.zfix")"
test -n "$out" && {
echo FAILURE
echo "Diff for ${file%.reference}:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment