trackgen: check more renamed files in regression tests
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9466 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: dc645fc0ddfad202b2c9d05a265d9e444c07261c Former-commit-id: a30acd4b958cf635bc0282363410e8a9d78ecb95
This commit is contained in:
parent
2e0d19fdf8
commit
7f246e9029
2 changed files with 60 additions and 0 deletions
|
@ -35,6 +35,34 @@ check () {
|
|||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-src.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-src.ac $temp_dir/$2.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2.ac GOOD" || echo "$1/$2.ac BAD"
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-trk.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-trk.ac $temp_dir/$2-trk.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-trk.ac GOOD" || echo "$1/$2-trk.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-trk-src.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-trk-src.ac $temp_dir/$2-trk.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-trk.ac GOOD" || echo "$1/$2-trk.ac BAD"
|
||||
fi
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-msh.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-msh.ac $temp_dir/$2-msh.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-msh.ac GOOD" || echo "$1/$2-msh.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-msh-src.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-msh-src.ac $temp_dir/$2-msh.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-msh.ac GOOD" || echo "$1/$2-msh.ac BAD"
|
||||
fi
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-1.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-1.ac $temp_dir/$2-obj-1.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-obj-1.ac GOOD" || echo "$1/$2-obj-1.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-1-src.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-1-src.ac $temp_dir/$2-obj-1.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-obj-1.ac GOOD" || echo "$1/$2-obj-1.ac BAD"
|
||||
fi
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-2.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-2.ac $temp_dir/$2-obj-2.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-obj-2.ac GOOD" || echo " $1/$2-obj-2.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-2-src.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-2-src.ac $temp_dir/$2-obj-2.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo "$1/$2-obj-2.ac GOOD" || echo "$1/$2-obj-2.ac BAD"
|
||||
fi
|
||||
else
|
||||
echo "$1 $2 no $2.ac file"
|
||||
fi
|
||||
|
|
|
@ -39,6 +39,38 @@ check () {
|
|||
echo " FOUND $2-src.ac"
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-src.ac $temp_dir/$2.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2.ac GOOD" || echo " $1/$2.ac BAD"
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-trk.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-trk.ac $temp_dir/$2-trk.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-trk.ac GOOD" || echo " $1/$2-trk.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-trk-src.ac"; then
|
||||
echo " FOUND $2-trk-src.ac"
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-trk-src.ac $temp_dir/$2-trk.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-trk.ac GOOD" || echo " $1/$2-trk.ac BAD"
|
||||
fi
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-msh.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-msh.ac $temp_dir/$2-msh.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-msh.ac GOOD" || echo " $1/$2-msh.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-msh-src.ac"; then
|
||||
echo " FOUND $2-msh-src.ac"
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-msh-src.ac $temp_dir/$2-msh.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-msh.ac GOOD" || echo " $1/$2-msh.ac BAD"
|
||||
fi
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-1.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-1.ac $temp_dir/$2-obj-1.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-obj-1.ac GOOD" || echo " $1/$2-obj-1.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-1-src.ac"; then
|
||||
echo " FOUND $2-obj-1-src.ac"
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-1-src.ac $temp_dir/$2-obj-1.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-obj-1.ac GOOD" || echo " $1/$2-obj-1.ac BAD"
|
||||
fi
|
||||
if test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-2.ac"; then
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-2.ac $temp_dir/$2-obj-2.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-obj-2.ac GOOD" || echo " $1/$2-obj-2.ac BAD"
|
||||
elif test -f "$pwd/../../../data/tracks/$1/$2/$2-obj-2-src.ac"; then
|
||||
echo " FOUND $2-obj-2-src.ac"
|
||||
diff $pwd/../../../data/tracks/$1/$2/$2-obj-2-src.ac $temp_dir/$2-obj-2.ac > $temp_dir/$2.ac.diff
|
||||
[ $? -eq 0 ] && echo " $1/$2-obj-2.ac GOOD" || echo " $1/$2-obj-2.ac BAD"
|
||||
fi
|
||||
else
|
||||
echo " SKIPPED no $2.ac file"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue