aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-02-13 10:36:23 +0100
committerOliver Smith <osmith@sysmocom.de>2023-02-13 12:30:58 +0100
commit378abe1844d569e6026ba6f237556401f85994de (patch)
treed7efcd0eadf5921c7a387f3bc5de76aeb72c1b9d /scripts
parent6e945b50c3c90a6aa429db811c510d80cfb2807e (diff)
repo-install-test: add DOMAIN variable
Allow overriding the downloads.osmocom.org domain of the url where packages are downloaded from, so we can download them from people.osmocom.org instead while developing / debugging, e.g.: https://people.osmocom.org/packages/home:/osmith:/nightly/ Change-Id: I36bc0eae9fdee75512c1dbdca84cd6224b8c192a
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/repo-install-test.sh3
-rwxr-xr-xscripts/repo-install-test/run-inside.sh4
2 files changed, 5 insertions, 2 deletions
diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh
index 38f1a6b..676354a 100755
--- a/scripts/repo-install-test.sh
+++ b/scripts/repo-install-test.sh
@@ -1,5 +1,6 @@
#!/bin/sh -ex
# Environment variables:
+# * DOMAIN: default is downloads.osmocom.org, set to people.osmocom.org for testing pkgs from home:…
# * FEED: binary package feed (e.g. "latest", "nightly")
# * INTERACTIVE: set to 1 to keep an interactive shell open after the script ran (for debugging)
# * KEEP_VM: for development: don't kill/start VM if still running
@@ -9,6 +10,7 @@
# * TESTS: which tests to run (all by default, see below for possible values)
. "$(dirname "$0")/common.sh"
+DOMAIN="${DOMAIN:-downloads.osmocom.org}"
DISTRO="$1"
DISTROS="
centos8
@@ -136,6 +138,7 @@ qemu_run_test_script() {
#!/bin/sh -ex
export DISTRO="$DISTRO"
+ export DOMAIN="$DOMAIN"
export FEED="$FEED"
export PROJ="$PROJ"
export PROJ_CONFLICT="$PROJ_CONFLICT"
diff --git a/scripts/repo-install-test/run-inside.sh b/scripts/repo-install-test/run-inside.sh
index d959cc0..6fcc391 100755
--- a/scripts/repo-install-test/run-inside.sh
+++ b/scripts/repo-install-test/run-inside.sh
@@ -108,7 +108,7 @@ check_env() {
# $1: OBS project (e.g. "osmocom:nightly")
configure_osmocom_repo_debian() {
local proj="$1"
- local obs_repo="downloads.osmocom.org/packages/$(proj_with_slashes "$proj")/$DISTRO_OBSDIR/"
+ local obs_repo="$DOMAIN/packages/$(proj_with_slashes "$proj")/$DISTRO_OBSDIR/"
echo "Configuring Osmocom repository"
@@ -132,7 +132,7 @@ configure_osmocom_repo_debian_remove() {
# $1: OBS project (e.g. "osmocom:nightly")
configure_osmocom_repo_centos() {
local proj="$1"
- local baseurl="https://downloads.osmocom.org/packages/$(proj_with_slashes "$proj")/$DISTRO_OBSDIR"
+ local baseurl="https://$DOMAIN/packages/$(proj_with_slashes "$proj")/$DISTRO_OBSDIR"
echo "Configuring Osmocom repository"
# Generate this file, based on the feed: