summaryrefslogtreecommitdiff
path: root/test/basicserver
Commit message (Collapse)AuthorAge
* Extend timeout in test/basicserver for slow machines.Chris Wilson2016-09-29
|
* Fix case of filenames of "text" files used to generate protocols and docs.Chris Wilson2016-08-28
|
* Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake.Chris Wilson2015-12-12
|
* Remove more references to unistd.h.Chris Wilson2015-12-10
|
* Fix test failures caused by renaming the test executable, thanks to Achim ↵Chris Wilson2015-02-15
| | | | for reporting.
* Refactor handling of exceptions in protocol server command executors.Chris Wilson2014-10-31
| | | | | | | | | | Add a standard method to Replyable that will be called if a recoverable exception (a BoxException) occurs, and can return a protocol Message to be sent to the client, such as an error code for various standard errors, or rethrow the exception. If you want something different, catch exceptions and return the desired reply yourself, or you'll get the default handling.
* Whitespace, comment and readability fixesChris Wilson2014-10-31
|
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Add missing network operation timeouts to test/basicserver.Chris Wilson2014-08-15
|
* Fix compile error caused by auto consume streams patch.Chris Wilson2014-08-15
|
* Make Protocol take control of the socket object passed in.Chris Wilson2014-03-01
| | | | | | | | | | | | | We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we construct it, and it takes control of this object. This reduces the risk of: * accidentally reusing the same SocketStream for multiple Protocols (it happened to me in testbackupstore); * holding onto a reference to the SocketStream; * allowing a locally-scoped SocketStream to go out of scope and be released while still being referenced by a live Protocol.
* Fix test fallout from SendStream ptr to auto_ptr change.Chris Wilson2013-09-30
| | | | | You can only pass a std::auto_ptr<IOStream> to SendStream now. Nothing else will do for Clang. But you can cast a std::auto_ptr<subclass>.
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Log the line numbers where basicserver comms tests failed.Chris Wilson2011-04-23
|
* Run Perl scripts quietly during make.Chris Wilson2010-01-24
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Send data back from test daemon to test code, and wait for it to beChris Wilson2007-12-18
| | | | | | | received in the test code, to avoid synchronisation issue where the QUIT command appears to be part of the received data. Mostly harmless, but gives a false alarm when viewing the test output.
* Pass test options to test daemons.Chris Wilson2007-12-16
|
* Revert to Unix paths (refs #3)Chris Wilson2007-04-28
|
* Listen on an inet socket as well, to keep tests happy on WindowsChris Wilson2007-04-28
| | | | | (refs #3, merges part of [582])
* Use LaunchServer to remove the need for some #ifdefs.Chris Wilson2007-04-22
| | | | | | | Use directory separator constant instead of forward slash. Add some blank lines for readability. (refs #3)
* Win32 fixes (paths to executables, and don't try things that don't workChris Wilson2007-03-25
| | | | | on Windows, like sending HUP signals) (refs #3)
* Moved SendCommands(), HUPServer(), KillServer() to lib/server/ServerCommands.h.Chris Wilson2007-03-10
| | | | | | | | | | | | | | | | | All of these use lib/server/WinNamedPipeStream on Win32, so they don't belong in lib/common. Made LaunchServer() work on Win32. Added constants for paths to executables, for use in tests, removing the need for #ifdefs and clumsy DIRECTORY_SEPARATORs in paths. Added terminate_bbackupd() and wait_for_operation() functions. Update unit tests to #include "ServerControl.h" if they need it. (refs #3)
* (refs #3)Chris Wilson2006-09-02
| | | | | Sleep without nanosleep() on Win32
* Revert to trunkChris Wilson2006-09-02
|
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* This is part 1 of a patch from James O'Gorman.Martin Ebourne2006-03-04
| | | | | configure now detects perl executable location and updates all scripts to use the correct path; also adds PERL_EXECUTABLE define to BoxConfig.h. makebuildenv.pl adds PERL define to all makefiles.
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Marged chris/win32/merge/07-win32-fixes at r210 to trunkMartin Ebourne2005-12-12
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14