Skip to content

Commit bcaf8e9

Browse files
authored
Merge pull request #195 from DenverM80/docker_print_git_rev_hash
Print the git rev hash when running tests in the docker container
2 parents 9e89b42 + 71cf34b commit bcaf8e9

File tree

2 files changed

+6
-30
lines changed

2 files changed

+6
-30
lines changed

docker/run_mem_tests.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,26 @@ echo DS3_ENDPOINT ${DS3_ENDPOINT}
66
echo DS3_SECRET_KEY ${DS3_SECRET_KEY}
77
echo DS3_ACCESS_KEY ${DS3_ACCESS_KEY}
88

9-
echo "cd /opt"
9+
set -x
10+
1011
cd /opt
1112

1213
if [ ${GIT_BRANCH} != "master" ]; then
13-
echo git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
1414
git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
1515
else
16-
echo git clone ${GIT_REPO}
1716
git clone ${GIT_REPO}
1817
fi
1918

20-
echo "cd ds3_c_sdk"
2119
cd ds3_c_sdk
20+
git rev-parse HEAD
2221

23-
echo "cmake ."
2422
cmake .
25-
26-
echo "make"
2723
make
28-
29-
echo "make install"
3024
make install
3125
ldconfig
3226

33-
echo "cd test"
3427
cd test
35-
36-
echo "cmake ."
3728
cmake .
38-
39-
echo "make"
4029
make
41-
echo "make mem"
4230
make mem
4331

docker/run_tests.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,27 @@ echo DS3_ENDPOINT ${DS3_ENDPOINT}
66
echo DS3_SECRET_KEY ${DS3_SECRET_KEY}
77
echo DS3_ACCESS_KEY ${DS3_ACCESS_KEY}
88

9-
echo "cd /opt"
9+
set -x
10+
1011
cd /opt
1112

1213
if [ ${GIT_BRANCH} != "master" ]; then
13-
echo git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
1414
git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
1515
else
16-
echo git clone ${GIT_REPO}
1716
git clone ${GIT_REPO}
1817
fi
1918

20-
echo "cd ds3_c_sdk"
2119
cd ds3_c_sdk
20+
git rev-parse HEAD
2221

23-
echo "cmake ."
2422
cmake .
25-
26-
echo "make"
2723
make
28-
29-
echo "make install"
3024
make install
3125
ldconfig
3226

33-
echo "cd test"
3427
cd test
35-
36-
echo "cmake ."
3728
cmake .
38-
39-
echo "make"
4029
make
41-
echo "make test"
4230
make test
4331

4432
cat Testing/Temporary/LastTest.log

0 commit comments

Comments
 (0)