rsync.git
17 years agoAdd a little implementation of ls(1) so that we can look at all and
Martin Pool [Fri, 7 Sep 2001 07:52:09 +0000 (07:52 +0000)]
Add a little implementation of ls(1) so that we can look at all and
only the attributes of files that rsync is meant to synchronize.

17 years agoRemove test trace stuff.
Martin Pool [Fri, 7 Sep 2001 07:50:31 +0000 (07:50 +0000)]
Remove test trace stuff.

17 years agoTry to exit 0 if nothing fails.
Martin Pool [Fri, 7 Sep 2001 07:49:34 +0000 (07:49 +0000)]
Try to exit 0 if nothing fails.

17 years agoUpdate copyright notice.
Martin Pool [Fri, 7 Sep 2001 07:35:08 +0000 (07:35 +0000)]
Update copyright notice.

17 years agoDebug exit status -- on Sun1/cc all the tests pass, but make sees an
Martin Pool [Thu, 6 Sep 2001 13:12:28 +0000 (13:12 +0000)]
Debug exit status -- on Sun1/cc all the tests pass, but make sees an
exit status of 1. ???

17 years agoOops, some machines don't have `which`.
Martin Pool [Thu, 6 Sep 2001 13:07:52 +0000 (13:07 +0000)]
Oops, some machines don't have `which`.

17 years agoOops, some machines don't have `which`.
Martin Pool [Thu, 6 Sep 2001 13:04:48 +0000 (13:04 +0000)]
Oops, some machines don't have `which`.

17 years agoSee if head(1) works -- broken on some systems?
Martin Pool [Thu, 6 Sep 2001 06:34:24 +0000 (06:34 +0000)]
See if head(1) works -- broken on some systems?

17 years agoYou cannot do "export VAR=VALUE" all on one line; the export must be
Martin Pool [Thu, 6 Sep 2001 06:30:09 +0000 (06:30 +0000)]
You cannot do "export VAR=VALUE" all on one line; the export must be
separate from the assignment.  (SCO SysV)

17 years agoFix selective definition of *snprintf. (Welcome to mbp's breakage world.)
Martin Pool [Thu, 6 Sep 2001 06:27:02 +0000 (06:27 +0000)]
Fix selective definition of *snprintf.  (Welcome to mbp's breakage world.)

17 years agoMore testsuite cleanups. Now I hope we cope without 'cp -a', though
Martin Pool [Thu, 6 Sep 2001 06:21:15 +0000 (06:21 +0000)]
More testsuite cleanups.  Now I hope we cope without 'cp -a', though
we still need 'cp -p'.

17 years agoBSD machines don't seem to have head(1).
Martin Pool [Thu, 6 Sep 2001 06:06:13 +0000 (06:06 +0000)]
BSD machines don't seem to have head(1).

17 years agoSplit the 'longdir' test into its own script, and make it work without
Martin Pool [Thu, 6 Sep 2001 05:57:27 +0000 (05:57 +0000)]
Split the 'longdir' test into its own script, and make it work without
'mkdir -p'.

17 years agoAdd a makepath() function to cope with machines that do not have
Martin Pool [Thu, 6 Sep 2001 05:52:40 +0000 (05:52 +0000)]
Add a makepath() function to cope with machines that do not have
'mkdir -p'.  (Stone knives and bearskins...)

17 years agoDoc.
Martin Pool [Thu, 6 Sep 2001 05:50:48 +0000 (05:50 +0000)]
Doc.

Look at $whichtests to run just a subset -- good for calling from Make.

17 years agoFix comment.
Martin Pool [Thu, 6 Sep 2001 04:56:55 +0000 (04:56 +0000)]
Fix comment.

17 years agoFiddle umask again.
Martin Pool [Thu, 6 Sep 2001 04:56:02 +0000 (04:56 +0000)]
Fiddle umask again.

17 years agoClean up output a little.
Martin Pool [Thu, 6 Sep 2001 02:30:06 +0000 (02:30 +0000)]
Clean up output a little.

17 years agoSet umask so that symlinks will have the right permissions on BSD.
Martin Pool [Thu, 6 Sep 2001 02:26:21 +0000 (02:26 +0000)]
Set umask so that symlinks will have the right permissions on BSD.

17 years agoFor log messages containing ridiculously long strings that might
Martin Pool [Tue, 4 Sep 2001 03:12:55 +0000 (03:12 +0000)]
For log messages containing ridiculously long strings that might
overflow a buffer rsync no longer aborts, but rather prints an
ellipsis at the end of the string.  (Patch from Ed Santiago.)

17 years agoClean up from rsync+ patch; fix compiler warning.
Martin Pool [Fri, 31 Aug 2001 09:27:35 +0000 (09:27 +0000)]
Clean up from rsync+ patch; fix compiler warning.

17 years agoFix sh syntax for FreeBSD.
Martin Pool [Fri, 31 Aug 2001 09:26:34 +0000 (09:26 +0000)]
Fix sh syntax for FreeBSD.

17 years agoIf we're using built-in *printf functions, then provide prototypes.
Martin Pool [Fri, 31 Aug 2001 09:23:06 +0000 (09:23 +0000)]
If we're using built-in *printf functions, then provide prototypes.

17 years agoCope on machines without INADDR_LOOPBACK.
Martin Pool [Fri, 31 Aug 2001 08:22:00 +0000 (08:22 +0000)]
Cope on machines without INADDR_LOOPBACK.

17 years agoIgnore test tmp dir.
Martin Pool [Fri, 31 Aug 2001 08:16:23 +0000 (08:16 +0000)]
Ignore test tmp dir.

17 years agoRun the daemon test using faked tcp connections.
Martin Pool [Fri, 31 Aug 2001 08:13:57 +0000 (08:13 +0000)]
Run the daemon test using faked tcp connections.

17 years agoGrammar fix.
Martin Pool [Fri, 31 Aug 2001 08:12:35 +0000 (08:12 +0000)]
Grammar fix.

17 years agoAdd comment about handling of 'use chroot'
Martin Pool [Fri, 31 Aug 2001 08:08:42 +0000 (08:08 +0000)]
Add comment about handling of 'use chroot'

17 years agoMerge in the LIBSMB_PROG idea from samba, so that you can do
Martin Pool [Fri, 31 Aug 2001 07:06:13 +0000 (07:06 +0000)]
Merge in the LIBSMB_PROG idea from samba, so that you can do

  RSYNC_CONNECT_PROG='./rsync --daemon' ./rsync -vvvvvv  localhost::

to test as a daemon without actually having to listen on a port.

17 years agoDoc.
Martin Pool [Fri, 31 Aug 2001 06:48:35 +0000 (06:48 +0000)]
Doc.

Try to give a better error message when there is a remote option error.

17 years agoOption should be --recursive, not --recurse. (This is what it was in
Martin Pool [Fri, 31 Aug 2001 06:29:45 +0000 (06:29 +0000)]
Option should be --recursive, not --recurse.   (This is what it was in
--help and 2.4.6.)

17 years agoFix rsyncd.conf generation.
Martin Pool [Fri, 31 Aug 2001 05:49:16 +0000 (05:49 +0000)]
Fix rsyncd.conf generation.

17 years agoFix message.
Martin Pool [Fri, 31 Aug 2001 05:48:19 +0000 (05:48 +0000)]
Fix message.

17 years agoShow rsync version before doing anything else.
Martin Pool [Fri, 31 Aug 2001 05:45:49 +0000 (05:45 +0000)]
Show rsync version before doing anything else.

17 years agoSkip SSH tests if $rsync_enable_ssh_tests is not set
Martin Pool [Fri, 31 Aug 2001 05:41:45 +0000 (05:41 +0000)]
Skip SSH tests if $rsync_enable_ssh_tests is not set

17 years agoThe --compare-dest option was not listed as accepting a string parameter
David Dykstra [Thu, 30 Aug 2001 16:24:03 +0000 (16:24 +0000)]
The --compare-dest option was not listed as accepting a string parameter
like it was supposed to.  There should probably be a testsuite test for
--compare-dest.

17 years agofix bashism
Martin Pool [Thu, 30 Aug 2001 08:28:53 +0000 (08:28 +0000)]
fix bashism

17 years agoSplit out generic functions for starting rsyncd.
Martin Pool [Thu, 30 Aug 2001 07:14:57 +0000 (07:14 +0000)]
Split out generic functions for starting rsyncd.

17 years agoNotes on an interactive shell for rsync.
Martin Pool [Thu, 30 Aug 2001 07:11:46 +0000 (07:11 +0000)]
Notes on an interactive shell for rsync.

17 years agoStart testing daemon functionality
Martin Pool [Thu, 30 Aug 2001 07:10:45 +0000 (07:10 +0000)]
Start testing daemon functionality

17 years agoRun all scripts in the testsuite/ directory, not just named ones. I'd
Martin Pool [Thu, 30 Aug 2001 07:10:20 +0000 (07:10 +0000)]
Run all scripts in the testsuite/ directory, not just named ones.  I'd
like to make this script not rsync-specific if possible.

17 years agoAbandoned
Martin Pool [Thu, 30 Aug 2001 06:56:57 +0000 (06:56 +0000)]
Abandoned

17 years agoObsolete
Martin Pool [Thu, 30 Aug 2001 06:54:59 +0000 (06:54 +0000)]
Obsolete

17 years agoOn BSD, this seemed to always exit after test failure. Try different
Martin Pool [Thu, 30 Aug 2001 06:54:15 +0000 (06:54 +0000)]
On BSD, this seemed to always exit after test failure.  Try different
shell syntax.

17 years agoMore debug output for testing SSH.
Martin Pool [Thu, 30 Aug 2001 06:51:58 +0000 (06:51 +0000)]
More debug output for testing SSH.

17 years agoTry using `diff -c' not `diff -u' because the latter seems to be
Martin Pool [Thu, 30 Aug 2001 06:35:48 +0000 (06:35 +0000)]
Try using `diff -c' not `diff -u' because the latter seems to be
broken on SCO2.

18 years agoUse rsync source rather than /etc for files because things in /etc
Martin Pool [Wed, 29 Aug 2001 09:38:28 +0000 (09:38 +0000)]
Use rsync source rather than /etc for files because things in /etc
might be protected or missing on some systems.

18 years agoBSD doesn't have /etc/resolv.conf or /etc/inittab, and hands.test was
Martin Pool [Wed, 29 Aug 2001 09:27:43 +0000 (09:27 +0000)]
BSD doesn't have /etc/resolv.conf or /etc/inittab, and hands.test was
trying to use them as a source of noise.

18 years agoApparently `set -x' in the shell works on some Bourne shells, but not SCO.
Martin Pool [Wed, 29 Aug 2001 09:24:35 +0000 (09:24 +0000)]
Apparently `set -x' in the shell works on some Bourne shells, but not SCO.

18 years agoApparently '!' to invert a pipeline result doesn't work on UnixWare.
Martin Pool [Wed, 29 Aug 2001 09:23:19 +0000 (09:23 +0000)]
Apparently '!' to invert a pipeline result doesn't work on UnixWare.

18 years agoReturn the *number of tests that failed*, so that it will show up
Martin Pool [Wed, 29 Aug 2001 09:20:35 +0000 (09:20 +0000)]
Return the *number of tests that failed*, so that it will show up
nicely in the overall summary.

18 years agoCleanup check_logs feature.
Martin Pool [Wed, 29 Aug 2001 09:18:45 +0000 (09:18 +0000)]
Cleanup check_logs feature.

`ps ax' is not portable -- don't use it to generate random text.  Use
`ls -lR' instead.

18 years agoCleanup check_logs feature.
Martin Pool [Wed, 29 Aug 2001 09:15:17 +0000 (09:15 +0000)]
Cleanup check_logs feature.

18 years agoClean up Phil's test more.
Martin Pool [Wed, 29 Aug 2001 09:13:01 +0000 (09:13 +0000)]
Clean up Phil's test more.

Make the checkit() routine more generic.

Split out ssh tests.

18 years ago$RSYNC and similar variables must be set to absolute path so that it
Martin Pool [Wed, 29 Aug 2001 09:12:05 +0000 (09:12 +0000)]
$RSYNC and similar variables must be set to absolute path so that it
can be passed to --rsync-path.

Add a nopersist=yes option that makes runtests bomb out as soon as one
test fails -- this is good if you're watching the trace output.

18 years ago$RSYNC must be set to absolute path so that it can be passed to --rsync-path
Martin Pool [Wed, 29 Aug 2001 09:11:14 +0000 (09:11 +0000)]
$RSYNC must be set to absolute path so that it can be passed to --rsync-path

18 years agoCount overall failure if some expected scripts were missing.
Martin Pool [Wed, 29 Aug 2001 08:48:00 +0000 (08:48 +0000)]
Count overall failure if some expected scripts were missing.

18 years agoRemove testtmp directory on 'clean'.
Martin Pool [Wed, 29 Aug 2001 08:46:18 +0000 (08:46 +0000)]
Remove testtmp directory on 'clean'.

Run test scripts in POSIX mode to try to catch portability problems.

18 years agoMore test case work:
Martin Pool [Wed, 29 Aug 2001 08:13:19 +0000 (08:13 +0000)]
More test case work:

 * make sure to build rsync before running 'make check'

 * Put back in the loglevel concept from the samba scripts.  If >8,
   then turn on shell tracing.

 * Allow tests to return 77 if they want to count as 'skipped'.

 * Add more docs.

 * Mangle Phil's script to get ready to run on non-Linux systems: we
   need to not use shell functions, cp -a, etc.  Not there yet.

18 years agoRedraft testsuite driver script to unify 'make check', 'make
Martin Pool [Wed, 29 Aug 2001 07:33:27 +0000 (07:33 +0000)]
Redraft testsuite driver script to unify 'make check', 'make
installcheck' and buildfarm tests.

Add note from discussion with Tim about finding files/directories
under different circumstances.  Now works (?) with VPATH build.

18 years agoAdd comment: cyeoh says that getpass is deprecated, because it may
Martin Pool [Wed, 29 Aug 2001 07:23:30 +0000 (07:23 +0000)]
Add comment: cyeoh says that getpass is deprecated, because it may
return a truncated password on some systems, and it is not in the LSB.

18 years agoThe --with-rsync-path configure option was using the wrong configure
David Dykstra [Mon, 27 Aug 2001 16:23:41 +0000 (16:23 +0000)]
The --with-rsync-path configure option was using the wrong configure
variable "$with_rsync_name" instead of "$with_rsync_path".

18 years agoOnly use the "@RSYNC EXIT" tag if we're talking to a client about
Martin Pool [Thu, 23 Aug 2001 06:14:54 +0000 (06:14 +0000)]
Only use the "@RSYNC EXIT" tag if we're talking to a client about
version 25.  This prevents it appearing and messing up the module list
when an old client connects to a 2.4.7 server.

18 years agoAllow the server to terminate the module list by just closing the
Martin Pool [Wed, 22 Aug 2001 04:15:50 +0000 (04:15 +0000)]
Allow the server to terminate the module list by just closing the
socket, rather than sending a proper EXIT command.  Keep the
global-variable hack to do this, but try to make it only apply in the
specific case where that occurs, not on all lines we read.

18 years agoAdd a little more protocol documentation.
Martin Pool [Wed, 22 Aug 2001 04:14:05 +0000 (04:14 +0000)]
Add a little more protocol documentation.

18 years agoNote about cross-testing different versions.
Martin Pool [Wed, 22 Aug 2001 04:09:07 +0000 (04:09 +0000)]
Note about cross-testing different versions.

18 years agoReturn 1 if any tests failed so that the build farm can pick it up.
Martin Pool [Tue, 21 Aug 2001 14:06:52 +0000 (14:06 +0000)]
Return 1 if any tests failed so that the build farm can pick it up.

18 years agoChange test directory again.
Martin Pool [Tue, 21 Aug 2001 13:44:08 +0000 (13:44 +0000)]
Change test directory again.

18 years agoDon't look at $srcdir if it's not set. (Why isn't it set??)
Martin Pool [Tue, 21 Aug 2001 13:26:30 +0000 (13:26 +0000)]
Don't look at $srcdir if it's not set.  (Why isn't it set??)

18 years agoShow trace while testing.
Martin Pool [Tue, 21 Aug 2001 13:20:53 +0000 (13:20 +0000)]
Show trace while testing.

18 years agoTry again to find the right directory on both local and farm builds.
Martin Pool [Tue, 21 Aug 2001 13:10:18 +0000 (13:10 +0000)]
Try again to find the right directory on both local and farm builds.

18 years agoMore test suite stuff
Martin Pool [Tue, 21 Aug 2001 13:00:55 +0000 (13:00 +0000)]
More test suite stuff

18 years agoPrint source directory.
Martin Pool [Tue, 21 Aug 2001 12:49:23 +0000 (12:49 +0000)]
Print source directory.

18 years agoUpdate notes; add idea about rsyncsh
Martin Pool [Sat, 18 Aug 2001 23:50:27 +0000 (23:50 +0000)]
Update notes; add idea about rsyncsh

18 years agoExport autoconf settings to test scripts. Use this to cope with
Martin Pool [Fri, 17 Aug 2001 01:57:42 +0000 (01:57 +0000)]
Export autoconf settings to test scripts.  Use this to cope with
systems that don't use "echo -n".

18 years agoSet up scratch directory for tests.
Martin Pool [Fri, 17 Aug 2001 01:44:13 +0000 (01:44 +0000)]
Set up scratch directory for tests.

18 years agoDon't pause at end of tests.
Martin Pool [Fri, 17 Aug 2001 01:43:13 +0000 (01:43 +0000)]
Don't pause at end of tests.

18 years agoTry to fix "make check" directory path.
Martin Pool [Fri, 17 Aug 2001 01:34:31 +0000 (01:34 +0000)]
Try to fix "make check" directory path.

Don't wait for input at end of tests.

18 years agoFind the right directory to run the test components.
Martin Pool [Fri, 17 Aug 2001 00:58:21 +0000 (00:58 +0000)]
Find the right directory to run the test components.

18 years agoTry to get test scripts to run properly.
Martin Pool [Fri, 17 Aug 2001 00:51:20 +0000 (00:51 +0000)]
Try to get test scripts to run properly.

18 years agoShow number of passed/failed/skipped tests.
Martin Pool [Thu, 16 Aug 2001 09:37:54 +0000 (09:37 +0000)]
Show number of passed/failed/skipped tests.

18 years agoDon't print test headers unless the test is about to run.
Martin Pool [Thu, 16 Aug 2001 09:35:21 +0000 (09:35 +0000)]
Don't print test headers unless the test is about to run.

18 years agoNote test suite.
Martin Pool [Thu, 16 Aug 2001 09:16:08 +0000 (09:16 +0000)]
Note test suite.

Note autoconf2.52 is required.

18 years agoMove Phil Hand's test under the control of the master test suite.
Martin Pool [Thu, 16 Aug 2001 09:13:37 +0000 (09:13 +0000)]
Move Phil Hand's test under the control of the master test suite.

18 years agoStart to unify the "make check" and build farm test suites
Martin Pool [Thu, 16 Aug 2001 09:08:29 +0000 (09:08 +0000)]
Start to unify the "make check" and build farm test suites

18 years agoUse set -x until this script works properly.
Martin Pool [Thu, 16 Aug 2001 08:13:13 +0000 (08:13 +0000)]
Use set -x until this script works properly.

18 years agoFix typo.
Martin Pool [Thu, 16 Aug 2001 08:12:55 +0000 (08:12 +0000)]
Fix typo.

18 years agoGave directory its proper name
Martin Pool [Thu, 16 Aug 2001 07:08:26 +0000 (07:08 +0000)]
Gave directory its proper name

18 years agofix filename
Martin Pool [Thu, 16 Aug 2001 06:27:51 +0000 (06:27 +0000)]
fix filename

18 years agoUpdated directory name for rsync tests
Martin Pool [Thu, 16 Aug 2001 06:24:56 +0000 (06:24 +0000)]
Updated directory name for rsync tests

18 years agoTry to execute rsync --version as part of the test suite -- see if
Martin Pool [Thu, 16 Aug 2001 05:44:17 +0000 (05:44 +0000)]
Try to execute rsync --version as part of the test suite -- see if
this works on the farm.

18 years agoFix cast warning.
Martin Pool [Wed, 15 Aug 2001 08:52:10 +0000 (08:52 +0000)]
Fix cast warning.

18 years agoTry to get tests to run with old buildfarm clients
Martin Pool [Wed, 15 Aug 2001 08:06:26 +0000 (08:06 +0000)]
Try to get tests to run with old buildfarm clients

18 years agoCheck that gethostbyname does actually return AF_INET addresses, since
Martin Pool [Wed, 15 Aug 2001 07:52:28 +0000 (07:52 +0000)]
Check that gethostbyname does actually return AF_INET addresses, since
that's all we can handle.

Also, try a new method of handling in_addr and hostent that will
hopefully work on Cray machines without 32-bit types.

18 years agoFix a bug introduced in 1.119, whereby strings like
Martin Pool [Wed, 15 Aug 2001 07:50:07 +0000 (07:50 +0000)]
Fix a bug introduced in 1.119, whereby strings like
"mirror.aarnet.edu.au::" were not properly digested.

It wasn't even my bug! :-)

18 years agoFix another format cast.
Martin Pool [Wed, 15 Aug 2001 06:50:46 +0000 (06:50 +0000)]
Fix another format cast.

18 years agoUse socklen_t for getpeername, since we hopefully now have it defined
Martin Pool [Wed, 15 Aug 2001 06:47:40 +0000 (06:47 +0000)]
Use socklen_t for getpeername, since we hopefully now have it defined
on all platforms.

18 years agoFix casts when some variables are printed out.
Martin Pool [Wed, 15 Aug 2001 06:41:24 +0000 (06:41 +0000)]
Fix casts when some variables are printed out.

18 years agoDrop dead variables introduced in rsync+ patch.
Martin Pool [Wed, 15 Aug 2001 06:38:23 +0000 (06:38 +0000)]
Drop dead variables introduced in rsync+ patch.

18 years agoFix trace message which was missing a parameter.
Martin Pool [Wed, 15 Aug 2001 06:34:28 +0000 (06:34 +0000)]
Fix trace message which was missing a parameter.

Drop dead variable introduced in rsync+ patch.