2#include "HltTools/PathResolver.h"
14 sprintf (b1,
"APATH=../test:../test/A:../test/B");
18 const char* env_ptr = ::getenv (
"APATH");
21 std::string env = env_ptr;
23 std::cout <<
"APATH=" << env << std::endl;
29 std::cout <<
"1) [a.txt] Name = " << name <<
" [expected : ../test/A/a.txt]" << std::endl;
32 std::cout <<
"2) [x] Name = " << name <<
" [expected : ]" << std::endl;
35 std::cout <<
"3) [x] Name = " << name <<
" [expected : ../test/A/x]" << std::endl;
38 std::cout <<
"4) [b.txt] Name = " << name <<
" [expected : ../test/A/b.txt]" << std::endl;
41 std::cout <<
"5) [c.txt] Name = " << name <<
" [expected : ../src/dd.txt]" << std::endl;
44 std::cout <<
"6) [A/a.txt] Name = " << name <<
" [expected : ../test/A/a.txt]" << std::endl;
47 std::cout <<
"7) [A/d.txt] Name = " << name <<
" [expected : ]" << std::endl;
50 std::cout <<
"8) [A/e.txt] Name = " << name <<
" [expected : ]" << std::endl;
53 std::cout <<
"9) [e.txt] Name = " << name <<
" [expected : ./s/t/u/e.txt]" << std::endl;
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)