faubackup2/tests test_full_link.sh,1.3,1.4 test_incremental_backup.sh,1.3,1.4 test_time_simple.sh,1.3,1.4
Erik Merkel <[email protected]> Fri, 03 Jun 2005 21:03:06 +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-serv13967 Modified Files: test_full_link.sh test_incremental_backup.sh test_time_simple.sh Log Message: modified 'find' calls to work with mac Index: test_time_simple.sh =================================================================== RCS file: /cvsroot/faubackup/faubackup2/tests/test_time_simple.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_time_simple.sh 3 Jun 2005 07:48:28 -0000 1.3 --- test_time_simple.sh 3 Jun 2005 21:03:03 -0000 1.4 *************** *** 27,31 **** export FAUBACKUP_BIN=../src/faubackup ! export FAUBACKUP_CONF=`pwd`/testdir/faubackup2.conf export FAUBACKUP_TIME=20040511101010 --- 27,31 ---- export FAUBACKUP_BIN=../src/faubackup ! export FAUBACKUP_CONF=`pwd`/testdir/faubackup.conf export FAUBACKUP_TIME=20040511101010 *************** *** 36,40 **** echo "running faubackup with old/" ! $FAUBACKUP_BIN -vv testdir/old testdir/ 2>out_old.txt || exit -1 --- 36,40 ---- echo "running faubackup with old/" ! $FAUBACKUP_BIN -v testdir/old testdir/ 2>out_old.txt || exit -1 *************** *** 43,59 **** echo "running faubackup with new/" ! $FAUBACKUP_BIN -vv testdir/new testdir/ 2>out_new.txt|| exit -1 cd testdir/2004-05-11@10:10:10 ! find -type f -maxdepth 1| sort > ../old_base.txt cd ../.. cd testdir/2005-07-09@12:30:40 ! find -links 1 -type f -maxdepth 1| sort > ../1link_base.txt ! find -links 2 -type f -maxdepth 1| sort > ../2link_base.txt ! find -links 1 -type f -mindepth 2| sort > ../1link_sub.txt ! find -links 2 -type f -mindepth 2| sort > ../2link_sub.txt cd .. --- 43,59 ---- echo "running faubackup with new/" ! $FAUBACKUP_BIN -v testdir/new testdir/ 2>out_new.txt|| exit -1 cd testdir/2004-05-11@10:10:10 ! find . -type f -maxdepth 1| sort > ../old_base.txt cd ../.. cd testdir/2005-07-09@12:30:40 ! find . -links 1 -type f -maxdepth 1| sort > ../1link_base.txt ! find . -links 2 -type f -maxdepth 1| sort > ../2link_base.txt ! find . -links 1 -type f -mindepth 2| sort > ../1link_sub.txt ! find . -links 2 -type f -mindepth 2| sort > ../2link_sub.txt cd .. *************** *** 61,71 **** cd new ! find -mindepth 2 -type f -name "1k_file2?" -a \( -name "*1" -o -name "*3" -o -name "*5" -o -name "*7" -o -name "*9" \) | sort > ../ungerade.txt ! find -mindepth 2 -type f -name "1k_file2?" -a \( -name "*0" -o -name "*2" -o -name "*4" -o -name "*6" -o -name "*8" \) | sort > ../gerade.txt ! find -mindepth 2 -maxdepth 2 -type f -name "1k_file3?" -a \( -name "*1" -o -name "*3" -o -name "*5" -o -name "*7" -o -name "*9" \) | sort >> ../ungerade.txt ! find -mindepth 2 -maxdepth 2 -type f -name "1k_file3?" -a \( -name "*0" -o -name "*2" -o -name "*4" -o -name "*6" -o -name "*8" \) | sort >> ../gerade.txt ! find -maxdepth 1 -type f -name "1k_file*" -a \( -name "*e2" -o -name "*e4" -o -name "*e5" -o -name "*e6" -o -name "*e8" -o -name "*e10" -o -name "*e12" -o -name "*e14" \) -o -name "faubackup*" | sort > ../base.txt ! find -maxdepth 1 -type f -name "1k_file*" -a \( -name "*e4" -o -name "*e5" -o -name "*e6" \) -o -name "faubackup*" | sort > ../base_linked.txt ! find -maxdepth 1 -type f -name "1k_file*" -a \( -name "*e2" -o -name "*e3" -o -name "*e8" -o -name "*e10" -o -name "*e12" -o -name "*e14" \) | sort > ../base_unlinked.txt cat ../ungerade.txt | sort > ../ungerade_fertig.txt --- 61,71 ---- cd new ! find . -mindepth 2 -type f -name "1k_file2?" -a \( -name "*1" -o -name "*3" -o -name "*5" -o -name "*7" -o -name "*9" \) | sort > ../ungerade.txt ! find . -mindepth 2 -type f -name "1k_file2?" -a \( -name "*0" -o -name "*2" -o -name "*4" -o -name "*6" -o -name "*8" \) | sort > ../gerade.txt ! find . -mindepth 2 -maxdepth 2 -type f -name "1k_file3?" -a \( -name "*1" -o -name "*3" -o -name "*5" -o -name "*7" -o -name "*9" \) | sort >> ../ungerade.txt ! find . -mindepth 2 -maxdepth 2 -type f -name "1k_file3?" -a \( -name "*0" -o -name "*2" -o -name "*4" -o -name "*6" -o -name "*8" \) | sort >> ../gerade.txt ! find . -maxdepth 1 -type f -name "1k_file*" -a \( -name "*e2" -o -name "*e4" -o -name "*e5" -o -name "*e6" -o -name "*e8" -o -name "*e10" -o -name "*e12" -o -name "*e14" \) -o -name "faubackup*" | sort > ../base.txt ! find . -maxdepth 1 -type f -name "1k_file*" -a \( -name "*e4" -o -name "*e5" -o -name "*e6" \) -o -name "faubackup*" | sort > ../base_linked.txt ! find . -maxdepth 1 -type f -name "1k_file*" -a \( -name "*e2" -o -name "*e3" -o -name "*e8" -o -name "*e10" -o -name "*e12" -o -name "*e14" \) | sort > ../base_unlinked.txt cat ../ungerade.txt | sort > ../ungerade_fertig.txt Index: test_full_link.sh =================================================================== RCS file: /cvsroot/faubackup/faubackup2/tests/test_full_link.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_full_link.sh 3 Jun 2005 07:48:28 -0000 1.3 --- test_full_link.sh 3 Jun 2005 21:03:02 -0000 1.4 *************** *** 4,8 **** export FAUBACKUP_BIN=../src/faubackup export FAUBACKUP_TIME=20041111101010 ! export FAUBACKUP_CONF=`pwd`/testdir/faubackup.conf test -d testdir/new || echo "Creating testfiles" test -d testdir/new || $srcdir/create_test_files.sh > /dev/null --- 4,8 ---- export FAUBACKUP_BIN=../src/faubackup export FAUBACKUP_TIME=20041111101010 ! export FAUBACKUP_CONF=$srcdir/testdir/faubackup.conf test -d testdir/new || echo "Creating testfiles" test -d testdir/new || $srcdir/create_test_files.sh > /dev/null *************** *** 13,18 **** cd .. echo "running faubackup" ! $FAUBACKUP_BIN testdir/new testdir/ || exit -1 echo "diff..." ! diff -qr testdir/2004-11-11@10:10:10 testdir/2004-10-10@10:10:00/ || exit -1 ! rm -rf testdir/2004-1* --- 13,18 ---- cd .. echo "running faubackup" ! $FAUBACKUP_BIN $srcdir/testdir/new testdir/ || exit -1 echo "diff..." ! diff -qr $srcdir/testdir/2004-11-11@10:10:10 $srcdir/testdir/2004-10-10@10:10:00/ || exit -1 ! rm -rf $srcdir/testdir/2004-1* Index: test_incremental_backup.sh =================================================================== RCS file: /cvsroot/faubackup/faubackup2/tests/test_incremental_backup.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_incremental_backup.sh 3 Jun 2005 07:48:28 -0000 1.3 --- test_incremental_backup.sh 3 Jun 2005 21:03:03 -0000 1.4 *************** *** 4,8 **** export FAUBACKUP_BIN=../src/faubackup export FAUBACKUP_TIME=20041111101010 ! export FAUBACKUP_CONF=`pwd`/testdir/faubackup.conf test -d testdir/new || echo "Creating testfiles" test -d testdir/new || $srcdir/create_test_files.sh > /dev/null --- 4,8 ---- export FAUBACKUP_BIN=../src/faubackup export FAUBACKUP_TIME=20041111101010 ! export FAUBACKUP_CONF=testdir/faubackup.conf test -d testdir/new || echo "Creating testfiles" test -d testdir/new || $srcdir/create_test_files.sh > /dev/null *************** *** 18,23 **** $FAUBACKUP_BIN testdir/new testdir/ || exit -1 cd testdir/new ! find -not -newer ../old/1M_file -type f | sort > ../old.txt ! find -newer ../old/1M_file -type f | sort > ../new.txt cd ../.. --- 18,23 ---- $FAUBACKUP_BIN testdir/new testdir/ || exit -1 cd testdir/new ! find . -not -newer ../old/1M_file -type f | sort > ../old.txt ! find . -newer ../old/1M_file -type f | sort > ../new.txt cd ../.. *************** *** 25,30 **** diff -qr testdir/2004-11-12@10:10:10 testdir/new/ || exit -1 cd testdir/2004-11-12@10:10:10 ! find -links 1 -type f | sort > ../1link.txt ! find -links 2 -type f | sort > ../2link.txt cd ../.. --- 25,30 ---- diff -qr testdir/2004-11-12@10:10:10 testdir/new/ || exit -1 cd testdir/2004-11-12@10:10:10 ! find . -links 1 -type f | sort > ../1link.txt ! find . -links 2 -type f | sort > ../2link.txt cd ../.. ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20