summaryrefslogtreecommitdiff
path: root/netcon/docker-test
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2015-11-23 06:20:01 -0800
committerJoseph Henry <josephjah@gmail.com>2015-11-23 06:20:01 -0800
commit6a3f23055553f2715b369fdcaf5f2da42b2815ac (patch)
tree312ee0187dd76d4d4bef45882f0e9276bf51f02b /netcon/docker-test
parenta952ff2c61d3b724ad7779803c2b7de0a5f734c7 (diff)
downloadinfinitytier-6a3f23055553f2715b369fdcaf5f2da42b2815ac.tar.gz
infinitytier-6a3f23055553f2715b369fdcaf5f2da42b2815ac.zip
Unit test info added to README
Diffstat (limited to 'netcon/docker-test')
-rw-r--r--netcon/docker-test/README.md21
1 files changed, 13 insertions, 8 deletions
diff --git a/netcon/docker-test/README.md b/netcon/docker-test/README.md
index f3708e4d..a3b21e1d 100644
--- a/netcon/docker-test/README.md
+++ b/netcon/docker-test/README.md
@@ -1,25 +1,30 @@
+### Unit Tests
+
To run unit tests:
-1) Place a blank network config file in this directory (e.g. "e5cd7a9e1c5311ab.conf")
- - This will be used to inform test-specific scripts what network to use for testing (create your own, or use the given at your own risk)
+1) Set up your own network, use its network id as follows:
+
+2) Place a blank network config file in this directory (e.g. "e5cd7a9e1c5311ab.conf")
+ - This will be used to inform test-specific scripts what network to use for testing
-2) run build.sh
- - Builds ZeroTier with Network Containers enabled
+3) run build.sh
+ - Builds ZeroTier-One with Network Containers enabled
- Builds LWIP library
- - Builds library harness
+ - Builds intercept library
- Copies all aformentioned files into unit test directory to be used for building docker files
-3) run test.sh
- - Will (for now, one at a time), execute each unit test's (test.sh)
+4) run test.sh
+ - Will execute each unit test's (test.sh) one at a time and populate _results/
+### Anatomy of a unit test
A) Each unit test's test.sh will:
- temporarily copy all built files into local directory
- build test container
- build monitor container
- remove temporary files
- - run each container and perform test
+ - run each container and perform test and monitoring specified in netcon_entrypoint.sh and monitor_entrypoint.sh
B) Results will be written to the 'zerotierone/docker-test/_result' directory
- Results will be a combination of raw and formatted dumps to files whose names reflect the test performed