Attention is currently required from: laforge.
pespin has posted comments on this change by laforge. ( https://gerrit.osmocom.org/c/libosmocore/+/37894?usp=email )
Change subject: src/core/socket.c: Fix close of negative fd in system_supports_inet6()
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/37894?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iedd0f74688cacd8dbe4b46b2c7e03a6c2f56fbbf
Gerrit-Change-Number: 37894
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Thu, 22 Aug 2024 09:18:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/37888?usp=email )
Change subject: gen_makefile: support symlinks for src + src_proj
......................................................................
gen_makefile: support symlinks for src + src_proj
Support the src and src_proj directories to be symlinks by checking if
these paths exist only (-e), instead of checking if these are
directories (-d).
Add a second check to detect broken symlinks and inform the user about
those, so it does not fail later on with a more confusing error. This
may happen if the user runs testenv inside podman, and has a symlink
pointing to a directory that is not mounted inside podman.
Related: OS#6494
Change-Id: Ic5ffa132b29e0a2ca78b02e4c8c05492471b3966
---
M gen_makefile.py
1 file changed, 19 insertions(+), 2 deletions(-)
Approvals:
fixeria: Looks good to me, but someone else must approve
osmith: Looks good to me, approved; Verified
pespin: Looks good to me, but someone else must approve
diff --git a/gen_makefile.py b/gen_makefile.py
index 0476a3f..22882bd 100755
--- a/gen_makefile.py
+++ b/gen_makefile.py
@@ -221,8 +221,25 @@
return f'''
.make.{proj}.clone:
@echo "\\n\\n\\n===== $@\\n"
- test -d {src} || mkdir -p {src}
- test -d {src_proj} || ( {cmd_clone} && {cmd_set_push_url} )
+
+ @if ! [ -e {src}/ ]; then \\
+ if [ -L {src} ]; then \\
+ echo "ERROR: broken symlink: {src}"; \\
+ exit 1; \\
+ fi; \\
+ set -x; \\
+ mkdir -p {src}; \\
+ fi
+
+ @if ! [ -e {src_proj}/ ]; then \\
+ if [ -L {src_proj} ]; then \\
+ echo "ERROR: broken symlink: {src_proj}"; \\
+ exit 1; \\
+ fi; \\
+ set -x; \\
+ ( {cmd_clone} && {cmd_set_push_url} ); \\
+ fi
+
sync
touch $@
'''
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/37888?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Ic5ffa132b29e0a2ca78b02e4c8c05492471b3966
Gerrit-Change-Number: 37888
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: daniel, pespin.
osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887?usp=email )
Change subject: testenv: add TESTENV_REBUILD_OUTDATED_IMAGE
......................................................................
Patch Set 2:
(1 comment)
File _testenv/testenv/podman.py:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887/comment/fb0cff4f_97bd… :
PS1, Line 60: logging.debug("Building anyway since --force was used")
> The `--force` parameter does something different, it allows force-rebuilding the image with `. […]
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia1243320b6d310c69ef9291cca69a1594b1a8a70
Gerrit-Change-Number: 37887
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 22 Aug 2024 07:00:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37886?usp=email )
Change subject: testenv/README: update
......................................................................
testenv/README: update
Point at ./testenv.py -h and describe that everything runs in 1
container with --podman.
Change-Id: Ie9eee8cf14ba2069c1cd5bd6ab703f3f6ccdc100
---
M _testenv/README.md
1 file changed, 19 insertions(+), 1 deletion(-)
Approvals:
pespin: Looks good to me, approved
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
diff --git a/_testenv/README.md b/_testenv/README.md
index 2c5a181..5eee2d2 100644
--- a/_testenv/README.md
+++ b/_testenv/README.md
@@ -1,6 +1,24 @@
# testenv
-Build everything needed for running Osmocom TTCN-3 testsuites and execute them.
+Testenv builds and runs a testsuite and all the components it tests (usually
+one or more Osmocom programs). See `./testenv.py -h` for command-line usage
+help.
+
+Example for running the `mgw` testsuite:
+```
+$ ./testenv.py run mgw
+```
+
+## Virtualization
+
+By default testenv does everything directly on the host, without using a
+container. The `--podman` parameter can be used to build and run everything in
+a container instead.
+
+When passing `--podman`, then just one container is used to build and run
+everything. The container is the same, no matter which testsuite gets executed.
+Additional packages get installed after starting the container, with a package
+cache mounted to avoid unnecessary downloads.
## testenv.cfg
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37886?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie9eee8cf14ba2069c1cd5bd6ab703f3f6ccdc100
Gerrit-Change-Number: 37886
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>