summaryrefslogtreecommitdiffstats
path: root/tests/README.md
blob: 2d825d4c072536d27029447ad3359b782ed3c839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Testsuite

This directory contains tests for gluster-containers.
These are tests that do not test the full stack end-to-end
but are syntax-checks or unit-tests.

## Prerequisites

The Dockerfile lint tests require the 'dockerfile_lint' program.
Install it with

* `dnf install npm`, or
* `apt-get install npm`

* `npm install dockerfile_lint`

Ref: https://github.com/projectatomic/dockerfile_lint

The test uses ShellCheck.
Install with

* `dnf install ShellCheck`, or
* `apt-get install shellcheck`

## Travis CI
* dockerfile_lint has dependency problem, hence disabling it.
* Builds the docker image and does a basic test.
* Tests the shell script.

## TODOs

* Write more tests
* Write full functional tests to be run in vms.
 (like the atomic vagrant environment)