aboutsummaryrefslogtreecommitdiffstats
path: root/debian-repo-install-test/testdata/repo-install-test.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-07-12 09:05:51 +0200
committerosmith <osmith@sysmocom.de>2019-07-23 12:09:53 +0000
commit380d49dbd0781b814944f4f5525185368dd02c9b (patch)
treeba73c8e25577c0f8943b2c1d8536be3cccf2a101 /debian-repo-install-test/testdata/repo-install-test.sh
parentb1abc29b7cb1e29afe953ce6f91a98faa1e7a6ff (diff)
debian-repo-install-test: add docker container
Add own container with systemd, so we can (in a follow-up commit) run the Osmocom systemd services in this test job. Rewrite the "interactive shell" logic to support the new systemd docker container, and enable it with an INTERACTIVE environment variable instead of hardcoding 'interactive="true"' in the script. While at it, move the Repository.key install to the Dockerfile so it works more like the other docker containers we have. Related: OS#3369 Change-Id: I0348f65a2ac184ba6b001e5130dfc8124e657367
Diffstat (limited to 'debian-repo-install-test/testdata/repo-install-test.sh')
-rwxr-xr-xdebian-repo-install-test/testdata/repo-install-test.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/debian-repo-install-test/testdata/repo-install-test.sh b/debian-repo-install-test/testdata/repo-install-test.sh
index f45908b..38a982f 100755
--- a/debian-repo-install-test/testdata/repo-install-test.sh
+++ b/debian-repo-install-test/testdata/repo-install-test.sh
@@ -12,15 +12,8 @@ check_env() {
fi
}
-install_depends() {
- echo "Installing dependencies"
- apt-get update
- apt-get install -y gnupg aptitude
-}
-
configure_osmocom_repo() {
echo "Configuring Osmocom repository"
- apt-key add /testdata/Release.key
echo "deb $HTTP ./" \
> /etc/apt/sources.list.d/osmocom-latest.list
apt-get update
@@ -87,21 +80,7 @@ test_binaries() {
osmo-trx-usrp1
}
-finish() {
- echo "Test finished successfully!"
-
- # When docker-run is called with "-it", then stdin and a tty are available.
- # The container will still exit when the entrypoint script (this file) is
- # through, so in order to be able to type in commands, we execute a bash shell.
- if [ -t 0 ]; then
- echo "Dropping to interactive shell"
- bash
- fi
-}
-
check_env
-install_depends
configure_osmocom_repo
install_repo_packages
test_binaries
-finish