Skip to content
Snippets Groups Projects
Commit 749989b6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

small utility to test many geo files in batch

parent 65c24658
No related branches found
No related tags found
No related merge requests found
#/bin/sh
if [ $# -lt 2 ]; then
echo "Usage: $0 path program [options]" 1>&2;
exit 1;
fi
path=$1
shift 1
program=$*
files=`find $path -name "*.geo"`
for file in $files ; do
echo "Running $program $file" ;
$program $file -o /tmp/tmp.msh >& log ;
grep -i "Warning" log ;
grep -i "Error" log ;
done
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