Changeset 855:8c44b64dd436 in lemon-0.x
- Timestamp:
- 09/15/04 13:50:50 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1155
- Location:
- src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/Makefile.am
r845 r855 1 1 AM_CPPFLAGS = -I$(top_srcdir)/src 2 2 3 #dist_noinst_DATA = preflow_graph 4 EXTRA_DIST = preflow_graph.inp 5 CLEANFILES = preflow_graph.out 3 EXTRA_DIST = preflow_graph.inp #input file for preflow_test.cc 6 4 7 5 noinst_HEADERS = test_tools.h graph_test.h … … 24 22 xy_test 25 23 26 SUFFIXES = .inp .out27 .inp.out:28 -cp $< $@29 30 24 TESTS = $(check_PROGRAMS) 31 25 XFAIL_TESTS = test_tools_fail … … 41 35 path_test_SOURCES = path_test.cc 42 36 preflow_test_SOURCES = preflow_test.cc 43 preflow_test_DEPENDENCIES = preflow_graph.out44 37 time_measure_test_SOURCES = time_measure_test.cc 45 38 test_tools_fail_SOURCES = test_tools_fail.cc -
src/test/preflow_test.cc
r845 r855 6 6 #include <hugo/skeletons/graph.h> 7 7 #include <hugo/skeletons/maps.h> 8 9 #include <string.h> 10 8 11 using namespace hugo; 9 12 … … 67 70 typedef Preflow<Graph, int> PType; 68 71 69 std::ifstream file("preflow_graph.out"); 72 char *f_name; 73 74 f_name=new char[strlen(getenv("srcdir"))+50]; 75 strcpy(f_name,getenv("srcdir")); 76 strcat(f_name,"/preflow_graph.inp"); 77 78 std::ifstream file(f_name); 79 80 check(file,"Input file '" << f_name << "' not found."); 81 82 delete [] f_name; 70 83 71 84 Graph G;
Note: See TracChangeset
for help on using the changeset viewer.