-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_multiple_syncs.sh: verify sequential syncs change nothing #620
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For shell script is there way to enforce 80 characters width?
looks good.
5c2b395
to
bccee3f
Compare
@carbonneau1 I modified the test so the lines are all <= 80 chars wide except for a couple that are 83 chars wide. I also found there was a bug in the rsync |
Hi @carbonneau1 please review this updated version of the PR, thanks |
rm -fr $DSYNC_SRC/stuff | ||
rm -fr $DSYNC_DEST/stuff | ||
mkdir $DSYNC_SRC/stuff | ||
${MFU_TEST_BIN}/dfilemaker -d 5-10 -n 100-300 -s 1MB-10MB $DSYNC_SRC/stuff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you generate the test data set with dfilemaker but you cal the same line from 183 and 191?
You delete the data test set once completed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, no need to generate source data over and over again. Fixed to only generate source data once.
Test multiple dsyncs, and test dsync against rsync. 1. Running dsync twice, the second time no changes should be reported. 2. Running rsync followed by dsync, the dsync should report no changes. 3. Running dsync followed by rsync, the rsync should report no changes. rsync is run with -av -HAX to copy hard links, ACLs, and xattrs. However, the test data copied is created with dfilemaker, which does not create ACLs or xattrs, or named pipes, and may not create files with multiple hard links. This should be improved. Signed-off-by: Olaf Faaland <[email protected]>
bccee3f
to
369addb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good.
Test multiple dsyncs, and test dsync against rsync.
rsync is run with -av -HAX to copy hard links, ACLs, and xattrs.
However, the test data copied is created with dfilemaker, which does not create ACLs or xattrs, and may not create files with multiple hard links. This should be improved.