diff options
| author | Joseph Henry <josephjah@gmail.com> | 2015-11-19 16:21:59 -0800 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2015-11-19 16:21:59 -0800 |
| commit | 31bc5e1559848db374d8d9dd039939c802d91649 (patch) | |
| tree | eb3f9ddb521f667ab5cffb4c584ad62014ef945a /docker-test/throughput_httpd_2.4.6 | |
| parent | b1100b3d130598d73534c5e324e1a079364f6146 (diff) | |
| download | infinitytier-31bc5e1559848db374d8d9dd039939c802d91649.tar.gz infinitytier-31bc5e1559848db374d8d9dd039939c802d91649.zip | |
WIP: Unit tests
Diffstat (limited to 'docker-test/throughput_httpd_2.4.6')
| -rw-r--r-- | docker-test/throughput_httpd_2.4.6/Dockerfile | 40 | ||||
| -rwxr-xr-x | docker-test/throughput_httpd_2.4.6/build.sh | 18 | ||||
| -rw-r--r-- | docker-test/throughput_httpd_2.4.6/entrypoint.sh | 16 | ||||
| -rw-r--r-- | docker-test/throughput_httpd_2.4.6/generate_file.sh | 1 | ||||
| -rwxr-xr-x | docker-test/throughput_httpd_2.4.6/intercept | 54 | ||||
| -rwxr-xr-x | docker-test/throughput_httpd_2.4.6/test.sh | 2 |
6 files changed, 0 insertions, 131 deletions
diff --git a/docker-test/throughput_httpd_2.4.6/Dockerfile b/docker-test/throughput_httpd_2.4.6/Dockerfile deleted file mode 100644 index 9ce81551..00000000 --- a/docker-test/throughput_httpd_2.4.6/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# ZT Netcon Throughput test -FROM centos:7 -MAINTAINER https://www.zerotier.com/ - -# Install apps -RUN yum -y update -RUN yum -y install httpd-2.4.17-3.fc23 -RUN yum -y install nano -RUN yum -y install strace -RUN yum clean all - -EXPOSE 9993/udp 9992/udp 9991/udp 9990/udp - -# Install sys-call intercept library -ADD intercept / -ADD libintercept.so.1.0 / -RUN cp libintercept.so.1.0 lib/libintercept.so.1.0 -RUN cp libintercept.so.1.0 /lib/libintercept.so.1.0 -RUN ln -sf /lib/libintercept.so.1.0 /lib/libintercept -RUN /usr/bin/install -c intercept /usr/bin - -# Add ZT files -RUN mkdir -p /var/lib/zerotier-one/networks.d -RUN touch /var/lib/zerotier-one/networks.d/e5cd7a9e1c5311ab.conf -ADD zerotier-one / -ADD zerotier-cli / - -# Install test-setup scripts -ADD generate_file.sh /generate_file.sh -RUN chmod -v +x /generate_file.sh -ADD entrypoint.sh /entrypoint.sh -RUN chmod -v +x /entrypoint.sh - -# Install LWIP library used by service -ADD liblwip.so / -RUN mkdir -p ext/bin/lwip -RUN cp liblwip.so ext/bin/lwip/liblwip.so - -# Start ZeroTier-One -CMD ["./entrypoint.sh"] diff --git a/docker-test/throughput_httpd_2.4.6/build.sh b/docker-test/throughput_httpd_2.4.6/build.sh deleted file mode 100755 index 360b7c42..00000000 --- a/docker-test/throughput_httpd_2.4.6/build.sh +++ /dev/null @@ -1,18 +0,0 @@ -cd ../../ -make clean -make -cd netcon -make -f make-intercept.mk lib -rm *.o -rm liblwip.so -make -f make-liblwip.mk - -cd ../docker-test/throughput_httpd_2.4.6 - -cp ../../zerotier-one zerotier-one -cp ../../zerotier-cli zerotier-cli - -cp ../../netcon/liblwip.so liblwip.so -cp ../../netcon/libintercept.so.1.0 libintercept.so.1.0 -cp ../../netcon/intercept intercept - diff --git a/docker-test/throughput_httpd_2.4.6/entrypoint.sh b/docker-test/throughput_httpd_2.4.6/entrypoint.sh deleted file mode 100644 index 27f28717..00000000 --- a/docker-test/throughput_httpd_2.4.6/entrypoint.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -touch /opt/results/results.txt - -export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/ - -echo '***' -echo '*** ZeroTier Network Containers Test Image' -echo '*** https://www.zerotier.com/' -echo '***' - -./zerotier-one & -./zerotier-cli join e5cd7a9e1c5311ab -./zerotier-cli listnetworks - - diff --git a/docker-test/throughput_httpd_2.4.6/generate_file.sh b/docker-test/throughput_httpd_2.4.6/generate_file.sh deleted file mode 100644 index ac5b2433..00000000 --- a/docker-test/throughput_httpd_2.4.6/generate_file.sh +++ /dev/null @@ -1 +0,0 @@ -dd if=/dev/urandom of=/var/www/html/big bs=100M count=1 diff --git a/docker-test/throughput_httpd_2.4.6/intercept b/docker-test/throughput_httpd_2.4.6/intercept deleted file mode 100755 index 3eb27ff7..00000000 --- a/docker-test/throughput_httpd_2.4.6/intercept +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# usage: -# /usr/bin/intercept program <args> - -if [ $# = 0 ] ; then - echo "$0: insufficient arguments" - exit -fi - -case "$1" in - on) - if [ -z "$LD_PRELOAD" ] - then - export LD_PRELOAD="/lib/libintercept.so.1.0" - else - echo $LD_PRELOAD | grep -q "/lib/libintercept\.so.1.0" || \ - export LD_PRELOAD="/lib/libintercept.so $LD_PRELOAD" - fi - ;; - off) - export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/lib\/libintercept.so.1.0 \?//'` - if [ -z "$LD_PRELOAD" ] - then - unset LD_PRELOAD - fi - ;; - show|sh) - echo "LD_PRELOAD=\"$LD_PRELOAD\"" - ;; - -h|-?) - echo "" - ;; - *) - if [ -z "$LD_PRELOAD" ] - then - export LD_PRELOAD="/lib/libintercept.so.1.0" - else - echo $LD_PRELOAD | grep -q "/lib/libintercept\.so.1.0" || \ - export LD_PRELOAD="/lib/libintercept.so.1.0 $LD_PRELOAD" - fi - - if [ $# = 0 ] - then - ${SHELL:-/bin/sh} - fi - - if [ $# -gt 0 ] - then - exec "$@" - fi - ;; -esac - -#EOF diff --git a/docker-test/throughput_httpd_2.4.6/test.sh b/docker-test/throughput_httpd_2.4.6/test.sh deleted file mode 100755 index ad78f9b1..00000000 --- a/docker-test/throughput_httpd_2.4.6/test.sh +++ /dev/null @@ -1,2 +0,0 @@ -docker build --tag="throughput_httpd_2.4.6" . -docker run -it -v $PWD/../_results:/opt/results --device=/dev/net/tun throughput_httpd_2.4.6:latest |
