diff options
author | Dan Rue <dan.rue@linaro.org> | 2017-06-07 16:50:33 -0500 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-06-09 09:54:29 +0000 |
commit | f51ede78c753c1aec86c05d052d8621c0d185b47 (patch) | |
tree | 80cebdee1163cdab709823896574aa127785466a /test | |
parent | b592da1307402843b2c0e4bf914fa5f5daf22777 (diff) |
test.sh: Support local testing environment
Add Dockerfiles that can build and run test-runner locally. test.sh provides a
simple command line interface to the environment.
This is just a start. We should be able to start implementing more robust tests
and validations on top of test.sh and the 'test' dir.
Change-Id: Idc1dc9a8752b244ba0c04427d9eb43ac19863377
Signed-off-by: Dan Rue <dan.rue@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/Dockerfile.centos | 13 | ||||
-rw-r--r-- | test/Dockerfile.debian | 10 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/Dockerfile.centos b/test/Dockerfile.centos new file mode 100644 index 0000000..7ac6f03 --- /dev/null +++ b/test/Dockerfile.centos @@ -0,0 +1,13 @@ +FROM centos + +USER root + +RUN yum -y update && yum -y install epel-release +RUN yum -y update && yum -y install vim python python-pip git + +COPY . /work +WORKDIR /work +RUN pip install -r automated/utils/requirements.txt + +CMD . ./automated/bin/setenv.sh && test-runner -p plans/linux-example.yaml && bash + diff --git a/test/Dockerfile.debian b/test/Dockerfile.debian new file mode 100644 index 0000000..0bf0247 --- /dev/null +++ b/test/Dockerfile.debian @@ -0,0 +1,10 @@ +FROM python:2.7 + +RUN apt-get update && apt-get install -y vim + +COPY . /work +WORKDIR /work +RUN pip install -r automated/utils/requirements.txt + +CMD . ./automated/bin/setenv.sh && test-runner -p plans/linux-example.yaml && bash + |