--- /dev/null
+//-----------------------------------------------------------
+//
+// Copyright (C) 2014 - 2017 by the deal.II authors
+//
+// This file is subject to LGPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//-----------------------------------------------------------
+
+// Test that the GMSH executable actually works.
+// This is a reduced version of gmsh/create_tria_01.
+
+#include <deal.II/grid/grid_in.h>
+#include <deal.II/grid/tria.h>
+
+#include <fstream>
+
+int main ()
+{
+ std::ofstream geo("file.geo");
+
+ geo << "Lx = 25.0;" << std::endl
+ << "Ly = 1.0;" << std::endl
+ << "Point(1) = {0, 0, 0, Lx};" << std::endl
+ << "Point(2) = {Lx, 0, 0, Lx};" << std::endl
+ << "Point(3) = {Lx, Ly, 0, Lx};" << std::endl
+ << "Point(4) = {0, Ly, 0, Lx};" << std::endl
+ << "Line(1) = {1, 2};" << std::endl
+ << "Line(2) = {2, 3};" << std::endl
+ << "Line(3) = {3, 4};" << std::endl
+ << "Line(4) = {4, 1};" << std::endl
+ << "Line Loop(5) = {3, 4, 1, 2};" << std::endl
+ << "Plane Surface(0) = {5};" << std::endl
+ << "Transfinite Surface{0} = {5};" << std::endl
+ << "Recombine Surface {0};" << std::endl;
+ geo.close();
+
+ const int ierr = std::system(DEAL_II_GMSH_EXECUTABLE_PATH " -2 file.geo 1>file.log 2>file_warn.log");
+ Assert(ierr==0, dealii::ExcInternalError());
+
+ std::remove ("file.geo");
+ std::remove ("file.log");
+ std::remove ("file_warn.log");
+ return 0;
+}