Skip to content

Commit

Permalink
Finer choice of files to update in regtest script
Browse files Browse the repository at this point in the history
removes spurious error messages
  • Loading branch information
jhenin committed Sep 22, 2024
1 parent 106c36a commit 8be8e50
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions namd/tests/library/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ cleanup_files() {
fi
for f in ${script%.namd}.*diff; do if [ ! -s $f ]; then rm -f $f; fi; done # remove empty diffs only
rm -f ${script%.namd}.*{BAK,old,backup}
for f in ${script%.namd}.*{state,state.stripped,out,traj,coor,vel,xsc,dcd,pmf,hills,grad,force,count,histogram?.dat,hist.dat,corrfunc.dat,histogram?.dx,count.dx,pmf.dx,output.dat}
for f in ${script%.namd}.*{state,state.stripped,out,traj,coor,vel,xsc,dcd,pmf,hills,grad,force,count,histogram?.dat,hist.dat,corrfunc.dat,histogram?.dx,count.dx,pmf.dx,output.dat,ti}
do
if [ ! -f "$f.diff" ]; then rm -f $f; fi # keep files that have a non-empty diff
done
Expand Down Expand Up @@ -221,8 +221,11 @@ for dir in ${DIRLIST} ; do
fi

# Update any additional files with current versions
for file in AutoDiff/*; do
cp -uf `basename ${file}` AutoDiff/
for file in AutoDiff/${basename}*; do
source=`basename ${file}`
if [ -f ${source} ] ; then
cp -uf ${source} AutoDiff/
fi
done
fi

Expand Down

0 comments on commit 8be8e50

Please sign in to comment.