faubackup2/tests reg_tester.cpp,1.2,1.3 test_time_simple.sh,1.10,1.11

Erik Merkel <[email protected]> Thu, 06 Oct 2005 01:49:57 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10163/tests

Modified Files:
	reg_tester.cpp test_time_simple.sh 
Log Message:
adding support for the old "Ignore filename" format from older faubackuprc versions


Index: test_time_simple.sh
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/tests/test_time_simple.sh,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_time_simple.sh	6 Jun 2005 20:00:51 -0000	1.10
--- test_time_simple.sh	6 Oct 2005 01:49:55 -0000	1.11
***************
*** 6,10 ****
  
  #never backup
! echo "* : * : * : * : * : * \"1k_file0\" @never" > testdir/old/faubackuprc
  #rule does not fit (only in year 2010)
  echo "10 : * : * : * : * : * \"1k_file1\" 10:0:0:0" >> testdir/old/faubackuprc
--- 6,11 ----
  
  #never backup
! #echo "* : * : * : * : * : * \"1k_file0\" @never" > testdir/old/faubackuprc
! echo "Ignore 1k_file0 " > testdir/old/faubackuprc
  #rule does not fit (only in year 2010)
  echo "10 : * : * : * : * : * \"1k_file1\" 10:0:0:0" >> testdir/old/faubackuprc

Index: reg_tester.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/tests/reg_tester.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** reg_tester.cpp	28 Jun 2005 22:26:13 -0000	1.2
--- reg_tester.cpp	6 Oct 2005 01:49:55 -0000	1.3
***************
*** 32,36 ****
  	cout << "##############   Regex Tests: #######################" << endl;
  
! 	string array[23];
  
  	array[0] = "lala\"/bla/blub\"didum";
--- 32,36 ----
  	cout << "##############   Regex Tests: #######################" << endl;
  
! 	string array[24];
  
  	array[0] = "lala\"/bla/blub\"didum";
***************
*** 60,63 ****
--- 60,64 ----
  	array[21] = " \n";
  	array[22] = "datum \"file_with_\"_and_\\*in_it\"laenge";
+ 	array[23] = "ignore **.lalal";
  
  
***************
*** 65,69 ****
  
  
! 	for (int i = 0; i <= 22; i++) {
  
  		cout << "------------------------------- "<< i << " -------------------------------------------" << endl;
--- 66,70 ----
  
  
! 	for (int i = 0; i <= 23; i++) {
  
  		cout << "------------------------------- "<< i << " -------------------------------------------" << endl;



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl