Andrew Bettison
757e6c62ab
Merge network simulator into development
2014-05-26 15:52:40 +09:30
Jeremy Lakeman
9f23b9bdcd
Fix remove obsolete debug flags from test scripts
2014-05-26 14:16:35 +09:30
Jeremy Lakeman
3373d64079
Routing tests shouldn't care about prefer_unicast default value
2014-05-26 13:57:27 +09:30
Jeremy Lakeman
06f7eed260
Add msp test over unreliable link
2014-05-23 10:47:22 +09:30
Jeremy Lakeman
4dd2d2991e
Use simulator for existing msp tests
2014-05-23 10:47:22 +09:30
Jeremy Lakeman
7420f46653
Create new AF_UNIX based network simulator
2014-05-23 10:47:22 +09:30
Jeremy Lakeman
c0c5412931
Add support for STOPping a connection before shutdown
2014-05-21 17:17:07 +09:30
Jeremy Lakeman
ca9faeef9b
Remove respawn_on_crash behaviour, we aren't using or testing it
2014-05-12 13:44:51 +09:30
Jeremy Lakeman
672104bdd8
Create extensible service discovery protocol, with initial basic implementation
2014-05-09 11:21:18 +09:30
Jeremy Lakeman
4204973052
Allow for more duplicates in 2hop test
2014-05-09 11:21:16 +09:30
Andrew Bettison
df1814309b
Improve MDP filter rules file syntax
2014-05-05 14:45:33 +09:30
Jeremy Lakeman
8ddd256b5c
Add more asserts for ping stats, with some slack
2014-05-05 14:35:31 +09:30
Jeremy Lakeman
ab915a13fc
Use routing table to check if a node is unreachable
2014-05-05 13:22:36 +09:30
Andrew Bettison
206aa936c0
Refactor 'vomp' test fifo handling
...
Use new execute --stdout-file=PATH test framework feature
Remove unnecessary shell variable indirection
2014-04-30 17:21:58 +09:30
Andrew Bettison
5035abde34
Improve test framework: assert_fork_is_running
...
Also assert_fork_is_not_running
Added 'framework' test case for fork primitives
2014-04-30 11:10:20 +09:30
Andrew Bettison
525aee88c5
Fix test framework bug: needed shopt -s extglob
2014-04-30 11:08:53 +09:30
Andrew Bettison
ea9de737a2
MDP packet filter rules configuration
...
Configurable rules file path: mdp.filter_rules_path
Add filter rules parsing code, add filtering to outgoing as well as
incoming packets
New test script: tests/mdp with two test cases
Improve test defs: new execute_servald() function
Widen MDP port number format from 8 to ten chars to accommodate leading
"0x"
2014-04-29 15:31:50 +09:30
Andrew Bettison
684735b11c
Fix config file timestamp bug
...
Ensure that timestamp always advances by at least one second every time
the config file is modified, add test case
Refactor test defs: detecting started HTTPD is not specific to Rhizome
Refactor struct file_meta and associated functions into "io.h" and io.c
Add various strbuf helper functions for formatting struct timespec
and struct file_meta to assist debug logging
2014-04-29 15:04:20 +09:30
Andrew Bettison
459c5a2303
Improve "mdp ping" command
...
Packet stats now exclude duplicate pong replies
With <count> arg, exits immediately once a pong has been received for
every ping, unless new --wait-for-duplicates option given
Routing tests for unreliable links now assert all pongs received and
very few duplicates
2014-04-17 16:09:34 +09:30
Andrew Bettison
8bc746af25
New "config sync" command
2014-04-16 19:28:16 +09:30
Andrew Bettison
2716228074
Add server watchdog and config reload test
2014-04-16 18:06:27 +09:30
Jeremy Lakeman
c6e461bcb0
Attempt to create folders for binding AF_UNIX sockets
2014-04-11 17:00:47 +09:30
Jeremy Lakeman
14be44d211
Enhance console command to allow multiple concurrent calls
2014-04-10 13:46:07 +09:30
Jeremy Lakeman
23cb4600e2
Improve VOMP testing
2014-04-10 11:14:46 +09:30
Andrew Bettison
6371203703
Finish removing SLIP code and test case
...
More simplification of "serval.h"
2014-04-07 16:22:31 +09:30
Andrew Bettison
53c1b1c04c
Filesystem Heirarchy Standard (FHS) paths
...
If no instance directory specified, then use paths like
/etc/serval/serval.conf
/var/cache/serval
/var/log/serval
/var/run/serval
etc. for files, instead of all in a single directory.
Log all directory creation as INFO messages.
Interpretation of log.file.directory_path has changed slightly.
Updated servald configuration tech doc.
2014-03-26 15:35:43 +10:30
Andrew Bettison
53d5a8734b
Fix Rhizome cleanup to remove temporary payloads
...
Fix test case to properly assert that all stale payloads are
deleted
2014-03-18 16:03:26 +10:30
Andrew Bettison
dc588e964d
Fix "name=/file" bug in Rhizome add
...
Improved Rhizome test scripts and added new assert_manifest_fields()
function to Rhizome test defs
2014-03-12 15:48:00 +10:30
Jeremy Lakeman
a6d6175576
Add config set warning if attempting to drop packets on datagram sockets
2014-03-12 14:55:46 +10:30
Jeremy Lakeman
2e4835d7d6
Ensure tests with packet filtering are using the dummy network interface
2014-03-12 14:32:59 +10:30
Jeremy Lakeman
ee68856878
Reduce log spam from debug.rhizome
2014-03-12 14:32:59 +10:30
Andrew Bettison
0bef066949
Store Rhizome external blob files in "blob" subdirectory
...
This will make issue #50 a bit easier to tackle
2014-03-07 16:55:38 +10:30
Jeremy Lakeman
6b17cd580f
Enable rhizome HTTP transfers over loopback while using local sockets
2014-03-05 09:55:23 -08:00
Andrew Bettison
fd1b36a9da
Refactor new MissingPayload test case
...
Move more code into fixture, add TODO comment
2014-03-03 15:14:34 +10:30
Andrew Bettison
19aed8ecb5
Fix test defs: pop_instance did not restore instance
...
Add push_and_set_instance() function
Remove redundant set_instance calls in test cases
Cope if error() returns (can happen during teardown)
2014-03-03 15:14:34 +10:30
Andrew Bettison
08e02b18db
Improve test framework: tfw_run() function
2014-03-03 15:14:34 +10:30
Jeremy Lakeman
974c87adf2
Remove orphan file rows if we notice the payload is missing
2014-03-01 05:45:32 +10:30
Jeremy Lakeman
1ade36f8df
A missing payload should be re-fetched
2014-02-28 10:00:49 +10:30
Jeremy Lakeman
a6f408f013
Return mdp inet & http port numbers in servald start & status
2014-02-25 12:42:36 +10:30
Jeremy Lakeman
33cbc98300
Add proc files for http server & mdp udp ports
2014-02-24 17:15:28 +10:30
Jeremy Lakeman
dfda3f7a74
Move generic command line API to test package
2014-02-24 17:13:41 +10:30
Jeremy Lakeman
20494a90d5
Add Java MDP Client API
...
- support mdp clients over loopback UDP
Note this is using an environment variable to specify the port number
In future we expect to support environments where this port is already bound
- monitor mdp sockets in a single & separate thread
2014-02-21 16:39:47 +10:30
Jeremy Lakeman
693d1e9b60
Add clearer example java api usage
2014-02-20 15:35:31 +10:30
Jeremy Lakeman
7ed6be3690
Introduce basic vomp console test
2014-02-19 16:39:05 +10:30
Jeremy Lakeman
6f75d93460
Shift echo service to new internal api, ensure local services can respond to local clients
2014-02-19 16:34:47 +10:30
Jeremy Lakeman
487df0408d
Refactor mdp packet processing to avoid using struct overlay_mdp_frame
2014-02-19 16:34:11 +10:30
Jeremy Lakeman
9e704e5b01
Capture servald log from test completion
2014-02-19 16:03:57 +10:30
Jeremy Lakeman
46ef40cf23
Migrate and refactor more interfaces from batphone
2014-02-19 15:35:08 +10:30
Andrew Bettison
4062b3adbf
Fix typos in 'keyring' test suite
2014-02-17 17:13:58 +10:30
Jeremy Lakeman
348fc5f23b
Fix meshms conversations parsing when looking for a single SID
2014-02-12 15:08:24 +10:30