summaryrefslogtreecommitdiff
path: root/docker-test/README.md
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2015-11-19 17:34:56 -0800
committerJoseph Henry <josephjah@gmail.com>2015-11-19 17:34:56 -0800
commit9a25a627bba4a00465a3648b82fc89f61b980ed1 (patch)
tree460a51fdfc8a1a09a3ee59031d939198e73752f6 /docker-test/README.md
parent31bc5e1559848db374d8d9dd039939c802d91649 (diff)
downloadinfinitytier-9a25a627bba4a00465a3648b82fc89f61b980ed1.tar.gz
infinitytier-9a25a627bba4a00465a3648b82fc89f61b980ed1.zip
WIP: Unit tests -- more generalization
Diffstat (limited to 'docker-test/README.md')
-rw-r--r--docker-test/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docker-test/README.md b/docker-test/README.md
new file mode 100644
index 00000000..f3708e4d
--- /dev/null
+++ b/docker-test/README.md
@@ -0,0 +1,28 @@
+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)
+
+2) run build.sh
+ - Builds ZeroTier with Network Containers enabled
+ - Builds LWIP library
+ - Builds library harness
+ - 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)
+
+
+
+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
+
+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
+ - In the event of failure, 'FAIL.' will be appended to the result file's name
+ - (e.g. FAIL.my_application_1.0.2.x86_64)
+ - In the event of success, 'OK.' will be appended