2017-08-19 19:55:45 +00:00
|
|
|
FROM laforge/debian-stretch-titan
|
2017-08-18 20:19:09 +00:00
|
|
|
|
2017-08-19 19:09:49 +00:00
|
|
|
RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git
|
|
|
|
|
2017-12-17 12:20:05 +00:00
|
|
|
RUN cd osmo-ttcn3-hacks && \
|
|
|
|
git checkout -f -B master origin/master && \
|
|
|
|
make deps
|
|
|
|
|
2018-02-14 20:57:39 +00:00
|
|
|
ARG OSMO_TTCN3_BRANCH="master"
|
|
|
|
|
|
|
|
ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/commit
|
2017-12-13 09:16:38 +00:00
|
|
|
RUN cd osmo-ttcn3-hacks && \
|
2017-12-17 12:20:05 +00:00
|
|
|
git fetch && \
|
2018-02-14 20:57:39 +00:00
|
|
|
git checkout -f -B $OSMO_TTCN3_BRANCH origin/$OSMO_TTCN3_BRANCH && \
|
2017-12-13 09:16:38 +00:00
|
|
|
make ggsn_tests
|
2017-08-18 20:19:09 +00:00
|
|
|
|
2017-08-19 12:49:54 +00:00
|
|
|
VOLUME /data
|
|
|
|
|
2018-02-14 20:57:01 +00:00
|
|
|
RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
|
|
|
|
ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
|
|
|
|
|
2017-08-19 12:49:54 +00:00
|
|
|
COPY GGSN_Tests.cfg /data/GGSN_Tests.cfg
|
|
|
|
|
|
|
|
CMD cd /data && \
|
2018-07-06 12:47:28 +00:00
|
|
|
/osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/ggsn_tests/GGSN_Tests; \
|
|
|
|
exit_code=$?; \
|
|
|
|
/osmo-ttcn3-hacks/log_merge.sh GGSN_Tests --rm; \
|
|
|
|
exit $exit_code
|