From c2999ab10ccd8260677e4f1617478ab8e12e98ce Mon Sep 17 00:00:00 2001 From: Martin Thomas Fleischer Date: Sun, 5 May 2019 13:14:41 +0200 Subject: [PATCH] [test] Initialize kitchen.ci environment https://kitchen.ci/ Kitchen CI helps testing infrastructure code. Since ipmininet supports various distributions kitchen.ci can help testing the provisioning scripts. --- .gitignore | 2 ++ kitchen.openr.yml | 19 +++++++++++++++++++ kitchen.yml | 19 +++++++++++++++++++ util/install.py | 2 ++ 4 files changed, 42 insertions(+) create mode 100644 kitchen.openr.yml create mode 100644 kitchen.yml diff --git a/.gitignore b/.gitignore index 5bd9e4ef..a7c0979a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ __ipmininet_temp_key.pub tags .eggs *.ropeproject +.kitchen/ +.kitchen.local.yml diff --git a/kitchen.openr.yml b/kitchen.openr.yml new file mode 100644 index 00000000..14deb93b --- /dev/null +++ b/kitchen.openr.yml @@ -0,0 +1,19 @@ +--- +driver: + name: vagrant + synced_folders: + - [".", "/opt/ipmininet"] + customize: + memory: 4096 + +provisioner: + name: shell + command: /opt/ipmininet/util/build_vm.sh + +platforms: + - name: ubuntu-16.04 + +suites: + - name: default + run_list: + attributes: diff --git a/kitchen.yml b/kitchen.yml new file mode 100644 index 00000000..b3a6b10a --- /dev/null +++ b/kitchen.yml @@ -0,0 +1,19 @@ +--- +driver: + name: vagrant + synced_folders: + - [".", "/opt/ipmininet"] + +provisioner: + name: shell + command: sudo python /opt/ipmininet/util/install.py -a + +platforms: + - name: ubuntu-16.04 + - name: debian-9 + - name: fedora-28 + +suites: + - name: default + run_list: + attributes: diff --git a/util/install.py b/util/install.py index b6fcc4d9..af3fa07e 100644 --- a/util/install.py +++ b/util/install.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import argparse import os import sys