Skip to content

Commit

Permalink
Change to match current resync-client arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon committed Aug 1, 2012
1 parent a662005 commit 00f45fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/resync-client/test.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ echo "I am file_a" > /tmp/rs_test/src/file_a
echo "I am file_b, bigger than file_a" > /tmp/rs_test/src/file_b echo "I am file_b, bigger than file_a" > /tmp/rs_test/src/file_b
mkdir /tmp/rs_test/dst mkdir /tmp/rs_test/dst
echo "### Make sitemap for this local collection" echo "### Make sitemap for this local collection"
./resync-client -s /tmp/rs_test/src=/tmp/rs_test/src > /tmp/rs_test/src/sitemap.xml ./resync-client -w /tmp/rs_test/src=/tmp/rs_test/src > /tmp/rs_test/src/sitemap.xml
ls -l /tmp/rs_test/src ls -l /tmp/rs_test/src
echo "### Do resync... (should copy 2 new resources)" echo "### Do resync... (should copy 2 new resources)"
./resync-client /tmp/rs_test/src/sitemap.xml /tmp/rs_test/dst ./resync-client -s /tmp/rs_test/src=/tmp/rs_test/dst
ls -l /tmp/rs_test/src /tmp/rs_test/dst ls -l /tmp/rs_test/src /tmp/rs_test/dst
echo "### Do resync again, no changes" echo "### Do resync again, no changes"
./resync-client /tmp/rs_test/src/sitemap.xml /tmp/rs_test/dst ./resync-client -s /tmp/rs_test/src=/tmp/rs_test/dst
echo "### Updating file_a on src" echo "### Updating file_a on src"
echo "I am the new version of file_a" > /tmp/rs_test/src/file_a echo "I am the new version of file_a" > /tmp/rs_test/src/file_a
./resync-client -s /tmp/rs_test/src=/tmp/rs_test/src > /tmp/rs_test/src/sitemap.xml ./resync-client -w /tmp/rs_test/src=/tmp/rs_test/src > /tmp/rs_test/src/sitemap.xml
ls -l /tmp/rs_test/src /tmp/rs_test/dst ls -l /tmp/rs_test/src /tmp/rs_test/dst
echo "### Do resync... (should report 1 changed resource)" echo "### Do resync... (should report 1 changed resource)"
./resync-client /tmp/rs_test/src/sitemap.xml /tmp/rs_test/dst ./resync-client -s /tmp/rs_test/src=/tmp/rs_test/dst
ls -l /tmp/rs_test/src /tmp/rs_test/dst ls -l /tmp/rs_test/src /tmp/rs_test/dst
echo "### Delete file_a on src" echo "### Delete file_a on src"
rm /tmp/rs_test/src/file_a rm /tmp/rs_test/src/file_a
./resync-client -s /tmp/rs_test/src=/tmp/rs_test/src > /tmp/rs_test/src/sitemap.xml ./resync-client -w /tmp/rs_test/src=/tmp/rs_test/src > /tmp/rs_test/src/sitemap.xml
ls -l /tmp/rs_test/src /tmp/rs_test/dst ls -l /tmp/rs_test/src /tmp/rs_test/dst
echo "### Do resync... (should report 1 deleted resource, but no update)" echo "### Do resync... (should report 1 deleted resource, but no update)"
./resync-client /tmp/rs_test/src/sitemap.xml /tmp/rs_test/dst ./resync-client -s /tmp/rs_test/src=/tmp/rs_test/dst
ls -l /tmp/rs_test/src /tmp/rs_test/dst ls -l /tmp/rs_test/src /tmp/rs_test/dst
echo "### Do resync... (should report 1 deleted resource, now actually deletes)" echo "### Do resync... (should report 1 deleted resource, now actually deletes)"
./resync-client --delete /tmp/rs_test/src/sitemap.xml /tmp/rs_test/dst ./resync-client -s --delete /tmp/rs_test/src=/tmp/rs_test/dst
ls -l /tmp/rs_test/src /tmp/rs_test/dst ls -l /tmp/rs_test/src /tmp/rs_test/dst

0 comments on commit 00f45fe

Please sign in to comment.