Andrew Bettison
08a8ec13e8
Start rhizome HTTP server on first available port
2012-07-02 16:24:07 +09:30
Andrew Bettison
1193763abd
Fix server test fixtures to isolate concurrent running tests
2012-07-02 16:08:39 +09:30
Andrew Bettison
53e159b8f1
Redice dnaproctcol test sleep to 0.5 seconds
2012-07-02 16:08:15 +09:30
Andrew Bettison
d689e96454
Fix rhizome HTTP port number in packet
2012-07-02 16:07:35 +09:30
Andrew Bettison
0a667a374e
Fix bug in self-announce full/prefix logic
2012-07-02 16:06:38 +09:30
Andrew Bettison
5764a09b43
Rename dnaprotocol tests to assist filtering
2012-07-02 14:44:11 +09:30
Andrew Bettison
4516628c14
Replace fprintf(stderr,...) with DEBUGF
2012-07-02 12:52:21 +09:30
Andrew Bettison
f76ef9a7e6
Improve test framework: log timestamps
2012-07-02 12:26:58 +09:30
Andrew Bettison
fc8df7d5d4
Config options for tick duration
2012-07-02 12:26:01 +09:30
Andrew Bettison
cf8baca824
Fix dna protocol tests for concurrent execution
2012-07-02 11:00:06 +09:30
Andrew Bettison
7b4b37aff5
Improve test framework: provide $TFWUNIQUE
2012-07-02 10:59:34 +09:30
Andrew Bettison
7307c991a2
Add mdp.selfannounce.ticks_per_full_address config option
2012-06-28 18:20:38 +09:30
Andrew Bettison
b368a3aab4
Add confValueGetInt64() function
2012-06-28 18:19:36 +09:30
Andrew Bettison
5f4dfc5fd4
Improve test framework: colour results
2012-06-28 18:14:52 +09:30
Andrew Bettison
b9836af8a2
Fix debug logging in overlay_interface.c
...
Also fix bug that closed the logfile when forking the server process.
2012-06-28 17:34:21 +09:30
Andrew Bettison
a5ba1ecacd
Clean up debugging code
...
Only use DEBUG inside "if (debug & DEBUG_BLAH)", not INFO or WARN or WHY!
INFO messages for starting/stopping servald server.
2012-06-28 15:37:36 +09:30
Andrew Bettison
9625190c6a
Improve debug code:
...
Debug bit mask is unsigned int everywhere.
Refactor DEBUG() macros a bit.
Add SERVALD_DEBUG_FILE env var to support test scripts.
Test defs put instance directories under $TFWVAR not $TFWTMP.
2012-06-28 15:24:43 +09:30
Andrew Bettison
f7483c2c15
Fix test framework: broken --filter logic
2012-06-28 15:18:48 +09:30
Andrew Bettison
3e92eb6bb8
Improve test framework: --jobs uses terminfo for progress reporting
2012-06-28 10:54:04 +09:30
Andrew Bettison
db04f30b08
Ignore test log directory
2012-06-27 17:23:43 +09:30
Andrew Bettison
0928ade78a
Fix test defs to cope with parallel execution
2012-06-27 17:23:13 +09:30
Andrew Bettison
c0c95bf6ac
Improve test framework: --jobs (parallel test execution)
2012-06-27 17:22:37 +09:30
Andrew Bettison
3822d067e7
Remove unnecessary double-fork from server start
2012-06-26 17:27:19 +09:30
Andrew Bettison
d7828f9409
Improve test defs: stop_all_servald_servers
...
Only attempts an orderly stop if a pidfile is present
2012-06-26 16:44:34 +09:30
Andrew Bettison
c5024a0546
Improve test framework: --stop-on-error --stop-on-failure
...
Also an expanded usage message, provoked by the --help option as before
2012-06-26 16:34:42 +09:30
Andrew Bettison
f5a99238cb
Add test case for server start while already running
2012-06-26 16:09:22 +09:30
Andrew Bettison
889f9c4628
Re-instate prior server start code
...
Do not use server_probe().
Use setsid() instead of setpgrp().
Still uses double-fork technique, as advised in setsid(2) man page.
Return exit status 10 if already running, instead of logging an error and exit
status 255.
2012-06-26 16:07:24 +09:30
Andrew Bettison
4afdbe1b5e
Add server start/stop tests
2012-06-26 15:52:37 +09:30
Andrew Bettison
6f7eef80f6
Improve test framework: tfw_log function
2012-06-26 15:51:38 +09:30
Andrew Bettison
981afb795e
Overhaul rhizome HTTP server start code
2012-06-26 11:07:01 +09:30
Andrew Bettison
3d0038754b
Add HTTP port number to rhizome advertise packet
2012-06-25 18:03:00 +09:30
Andrew Bettison
4764cf2ace
Get rid of fprintf(stderr,...) in overlay_packetformats.c
2012-06-25 17:04:03 +09:30
Andrew Bettison
5c819fce7e
Get rid of fprintf(stderr,...) in overlay.c
...
Replace with calls to DEBUGF() etc.
2012-06-25 16:32:52 +09:30
Andrew Bettison
5cff81e0c0
Add strbuf_reset()
2012-06-25 16:32:52 +09:30
Daniel O'Connor
8e0ba3f168
Tidyup various things (signal hander, use WRITE_STR, staticise stuff)
2012-06-25 16:24:34 +09:30
Daniel O'Connor
271454aee3
Use WRITE_STR instead of writeLine.
...
staticise a bunch of variables & functions in monitor-cli.c
2012-06-25 16:24:33 +09:30
Daniel O'Connor
930280a17d
Move signal handler setup to main so it's only done once.
2012-06-25 16:24:33 +09:30
Andrew Bettison
6a941cbc4d
Convert two #warnings to //TODO comments
2012-06-25 15:46:22 +09:30
Andrew Bettison
c335310b45
Remove more obsolete and unused code
2012-06-25 15:40:35 +09:30
Andrew Bettison
67e2e98867
Expunge old DNA protocol code (cleans up warnings)
2012-06-25 15:37:11 +09:30
Andrew Bettison
1fbf957a9d
Clean up compiler warnings in commandline.c
2012-06-25 15:06:35 +09:30
Andrew Bettison
a960ed4e8a
Clean up compiler warning in monitor.c
2012-06-25 15:00:07 +09:30
Andrew Bettison
208b9c15fd
Factor out rhizome_hex_to_bytes() and chartonybl()
2012-06-25 14:51:21 +09:30
Daniel O'Connor
05d8ac5d05
Don't treat the server already running as an error otherwise the Java code complains.
...
Emit a useful error if we couldn't get the PID.
2012-06-25 14:14:33 +09:30
Daniel O'Connor
8ad51554b4
Use the right variable to display the PID.
2012-06-25 14:11:16 +09:30
Daniel O'Connor
b0dad81b0c
Don't call daemon as the parent can't exit in JNI otherwise bad things will happen.
...
Copy the code for daemon from FreeBSD 8.x instead of the flying circus that was there before.
2012-06-25 14:01:50 +09:30
Daniel O'Connor
3a606b7d91
Check the socket isn't too long before copying it to prevent a seg fault.
2012-06-25 14:01:50 +09:30
Daniel O'Connor
80b972c455
The number of clients we have is not a warning.
2012-06-25 14:01:50 +09:30
Jeremy Lakeman
5dcf274bc1
Only allow 2 duplicate audio packets
2012-06-25 11:38:07 +09:30
Daniel O'Connor
2fe520f7a2
Fix peer credential checking on BSD, replace write(s, m, strlen(m)) with a macro, factor out new monitor socke code.
...
Note this code has issues with signed/unsigned chars. They should become uint8_t's if they hold binary data, otherwise just char. If they ARE binary then it is broken because it calls strlen() on them.
2012-06-22 20:40:30 +09:30