Changeset 24 for trunk/test
- Timestamp:
- Jan 2, 2006, 9:20:46 AM (18 years ago)
- Location:
- trunk/test
- Files:
-
- 4 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/Makefile.am
r9 r24 3 3 # $Id$ 4 4 5 TESTS = svnstattree5 TESTS = directory file stats tree 6 6 7 7 check_PROGRAMS = $(TESTS) … … 11 11 INCLUDES = -I@top_srcdir@/lib 12 12 13 svnstat_SOURCES = svnstat.cc 13 14 directory_SOURCES = directory.cc 15 file_SOURCES = file.cc 16 stats_SOURCES = stats.cc 14 17 tree_SOURCES = tree.cc -
trunk/test/tree.cc
r18 r24 5 5 #include <string> 6 6 #include <iostream> 7 #include <ctime> 7 8 8 9 int main(const int argc,const char* argv[]) … … 10 11 using namespace theplu::svnstat; 11 12 12 bool print = (argc>1 && argv[1]==std::string("-p")); 13 tm q; 14 std::cout << "== tm struct ==" << std::endl; 15 std::cout << q.tm_sec << std::endl; 16 std::cout << q.tm_min << std::endl; 17 std::cout << q.tm_hour << std::endl; 18 std::cout << q.tm_mday << std::endl; 19 std::cout << q.tm_mon << std::endl; 20 std::cout << q.tm_year << std::endl; 21 std::cout << q.tm_wday << std::endl; 22 std::cout << q.tm_yday << std::endl; 23 char* blaj = asctime(&q); 24 std::cout << *blaj << std::endl; 25 time_t tjo = mktime(&q); 26 std::cout << tjo << std::endl; 27 28 // bool print = (argc>1 && argv[1]==std::string("-p")); 13 29 bool ok = true; 14 30 15 Directory tree(std::string(" ."));31 Directory tree(std::string("c++_tools")); 16 32 17 std::cout << "================ Before purge" << std::endl;18 if (print)19 tree.print();20 21 std::cout << "================ Purging" << std::endl;22 33 tree.purge(); 23 24 std::cout << "================ After purge" << std::endl; 25 if (print) 26 tree.print(); 27 34 tree.parse(); 35 tree.print("svnstat_output/"); 36 28 37 return (ok ? 0 : -1); 29 38 }
Note: See TracChangeset
for help on using the changeset viewer.