diff options
author | root <root@cband> | 2013-12-30 07:50:39 -0600 |
---|---|---|
committer | root <root@cband> | 2013-12-30 07:50:39 -0600 |
commit | 8a780cc812a3c85c0d9bab2c7763ba8c7ba74626 (patch) | |
tree | 87e8d520ced6573adbccc4a875ea0aa2c66d5576 /retiolum | |
parent | 08aa5e406a1f7b39182e79ea4eb7fabf7d61eaa3 (diff) |
//retiolum/t: docker initial commit
Diffstat (limited to 'retiolum')
-rw-r--r-- | retiolum/t/docker/.test_bootstrap.swp | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | retiolum/t/docker/README.md | 3 | ||||
-rwxr-xr-x | retiolum/t/docker/docker_tests/bootstrap | 10 | ||||
-rwxr-xr-x | retiolum/t/docker/run_tests.sh | 3 |
4 files changed, 16 insertions, 0 deletions
diff --git a/retiolum/t/docker/.test_bootstrap.swp b/retiolum/t/docker/.test_bootstrap.swp Binary files differnew file mode 100644 index 00000000..11d78d1a --- /dev/null +++ b/retiolum/t/docker/.test_bootstrap.swp diff --git a/retiolum/t/docker/README.md b/retiolum/t/docker/README.md new file mode 100644 index 00000000..fe76c1f3 --- /dev/null +++ b/retiolum/t/docker/README.md @@ -0,0 +1,3 @@ +This repository contains tests which can be run with an working docker installation. +The basic idea is to test all the bootstrapping scripts without having to +verkrepel real computers diff --git a/retiolum/t/docker/docker_tests/bootstrap b/retiolum/t/docker/docker_tests/bootstrap new file mode 100755 index 00000000..7d93828a --- /dev/null +++ b/retiolum/t/docker/docker_tests/bootstrap @@ -0,0 +1,10 @@ +#!/bin/sh +echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list + +apt-get update +apt-get install -y tinc wget busybox +wget -O- tinc.krebsco.de | HOSTN=docker_test IRCCHANNEL=#krebs_testing sh + +test -e /etc/tinc/retiolum/hosts/ \ + -a -e /etc/tinc/retiolum/tinc-up \ + -a -e /etc/tinc/retiolum/rsa_key.priv diff --git a/retiolum/t/docker/run_tests.sh b/retiolum/t/docker/run_tests.sh new file mode 100755 index 00000000..9d0d781d --- /dev/null +++ b/retiolum/t/docker/run_tests.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +docker run -v $PWD/docker_tests/:/test ubuntu /test/bootstrap |