From 0740d39fdc89ab0569e9aa2f7599515d81dc6d76 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 3 Mar 2005 16:52:43 +0000 Subject: [PATCH] missing file git-svn-id: https://svn.dealii.org/trunk@9973 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/path_search.cc | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/base/path_search.cc diff --git a/tests/base/path_search.cc b/tests/base/path_search.cc new file mode 100644 index 0000000000..a798e6cd75 --- /dev/null +++ b/tests/base/path_search.cc @@ -0,0 +1,50 @@ +//----------------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2005 by the deal.II authors +// +// This file is subject to QPL 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. +// +//----------------------------------------------------------------------------- + +#include "../tests.h" +#include +#include + +int main() +{ + std::ofstream logfile("path_search.output"); + deallog.attach(logfile); + deallog.depth_console(0); + + PathSearch::add_class("CC"); + + // Open with full debugging + PathSearch cc("CC", 2); + cc.add_path(DEAL_II_PATH "/lac/source/"); + cc.add_path(DEAL_II_PATH "/lac/include/lac/", PathSearch::front); + cc.add_suffix(".c"); + cc.add_suffix(".cc"); + + cc.open("block_vector.cc"); + cc.open("block_vector"); + cc.add_suffix(".h", PathSearch::after_none); + cc.open("block_vector"); + + cc.show(deallog); + + PathSearch mesh("MESH", 2); + mesh.show(deallog); + std::istream& in = mesh.open("backstep"); + std::string line; + for (unsigned int i=0;i<4;++i) + { + in >> line; + deallog << ' ' << line; + } + deallog << std::endl; +} -- 2.39.5