summaryrefslogtreecommitdiffstats
path: root/tests/Dockerfiletest/run.sh
diff options
context:
space:
mode:
authorHumble Devassy Chirammal <humble.devassy@gmail.com>2017-05-09 00:09:21 +0530
committerGitHub <noreply@github.com>2017-05-09 00:09:21 +0530
commit0739c194d3fe908b6770dde32f7d9efcf2912ce2 (patch)
tree9d6137f38a97b149c4ef75878745ddd26095e2b2 /tests/Dockerfiletest/run.sh
parentb443906dd13941d9143ad5ef3519f8d11e452b74 (diff)
parentec2d37cd987c6aafc7d0d71ab6c2643487d8ef92 (diff)
downloadgluster-0739c194d3fe908b6770dde32f7d9efcf2912ce2.tar.gz
gluster-0739c194d3fe908b6770dde32f7d9efcf2912ce2.tar.bz2
gluster-0739c194d3fe908b6770dde32f7d9efcf2912ce2.tar.xz
gluster-0739c194d3fe908b6770dde32f7d9efcf2912ce2.zip
Merge pull request #40 from MohamedAshiqrh/test
Unit Test to check the shell script and Dockerfile lint. Travis.ci intergrated.
Diffstat (limited to 'tests/Dockerfiletest/run.sh')
-rwxr-xr-xtests/Dockerfiletest/run.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Dockerfiletest/run.sh b/tests/Dockerfiletest/run.sh
new file mode 100755
index 0000000..b82b810
--- /dev/null
+++ b/tests/Dockerfiletest/run.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+SCRIPT_DIR=$(cd $(dirname $0); pwd)
+
+echo "running tests in ${SCRIPT_DIR}"
+
+for test in ${SCRIPT_DIR}/test_*.sh ; do
+ $test
+ if [ $? -ne 0 ]; then
+ exit 1
+ fi
+done