From 749989b6df4167555b027016c697480c3f0c9697 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 30 Nov 2001 16:38:07 +0000 Subject: [PATCH] small utility to test many geo files in batch --- utils/test-gmsh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 utils/test-gmsh diff --git a/utils/test-gmsh b/utils/test-gmsh new file mode 100644 index 0000000000..47a4c15f0f --- /dev/null +++ b/utils/test-gmsh @@ -0,0 +1,18 @@ +#/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 + -- GitLab