pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39080?usp=email )
Change subject: testenv: make copy= more intuitive
......................................................................
testenv: make copy= more intuitive
Currently copy= in testenv.cfg creates copies of files under the full
source file name under the target directory: copy=dir/file.cfg creates
dir/file.cfg (like "cp -a --parents"). This is not very intuitive,
change it to create a "file.cfg" instead without subdirectory. With
this change, it behaves the same as "cp -a".
Suggested-by: Pau Espin Pedrol <pespin(a)sysmocom.de>
Change-Id: Id9e4ea066d0a0e72ccd83e4f6f887f382bf61e46
---
M _testenv/README.md
M _testenv/testenv/testdir.py
M ggsn_tests/open5gs/open5gs-smf.yaml
M ggsn_tests/testenv_open5gs.cfg
4 files changed, 7 insertions(+), 18 deletions(-)
Approvals:
pespin: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/_testenv/README.md b/_testenv/README.md
index bd102a8..2a08e7d 100644
--- a/_testenv/README.md
+++ b/_testenv/README.md
@@ -89,7 +89,7 @@
* `copy=`: optionally copy a space separated list of files or directories from
the testsuite directory to the test directory, like `.cfg` and `.confmerge`
- files.
+ files. Testenv runs `cp -a <SOURCES> <TEST DIR>` internally.
* `make=`: osmo-dev make target for building from source, if running without
`--binary-repo`. This is usually the name of the git repository, but could
diff --git a/_testenv/testenv/testdir.py b/_testenv/testenv/testdir.py
index b18efd1..2f21d23 100644
--- a/_testenv/testenv/testdir.py
+++ b/_testenv/testenv/testdir.py
@@ -85,19 +85,8 @@
testenv.cmd.run(["install", "-Dm644", path, path_dest])
if "copy" in section_data:
- for copy_entry in section_data["copy"].split(" "):
- path = os.path.join(testsuite_dir, copy_entry)
- if os.path.isdir(path):
- pattern = os.path.join(path, "**")
- paths = glob.glob(pattern, recursive=True)
- else:
- paths = [path]
- for path in paths:
- if os.path.isdir(path):
- continue
- path_dest = os.path.join(section_dir, os.path.relpath(path, testsuite_dir))
- mode = 755 if os.access(path, os.X_OK) else 644
- testenv.cmd.run(["install", f"-Dm{mode}", path, path_dest])
+ sources = section_data["copy"].split(" ")
+ testenv.cmd.run(["cp", "-a"] + sources + [section_dir], no_podman=True, cwd=testsuite_dir)
# Referenced in testsuite cfgs: *.default
pattern = os.path.join(testsuite_dir, "*.default")
diff --git a/ggsn_tests/open5gs/open5gs-smf.yaml b/ggsn_tests/open5gs/open5gs-smf.yaml
index 0e26550..2532665 100644
--- a/ggsn_tests/open5gs/open5gs-smf.yaml
+++ b/ggsn_tests/open5gs/open5gs-smf.yaml
@@ -46,7 +46,7 @@
mtu: 1400
ctf:
enabled: auto
- freeDiameter: open5gs/freediameter.conf
+ freeDiameter: freediameter.conf
parameter:
diff --git a/ggsn_tests/testenv_open5gs.cfg b/ggsn_tests/testenv_open5gs.cfg
index 2d107a8..6d951f2 100644
--- a/ggsn_tests/testenv_open5gs.cfg
+++ b/ggsn_tests/testenv_open5gs.cfg
@@ -3,14 +3,14 @@
config=GGSN_Tests.cfg
[smf]
-program=open5gs-smfd -c open5gs/open5gs-smf.yaml
+program=open5gs-smfd -c open5gs-smf.yaml
make=open5gs
package=open5gs-smf
copy=open5gs/open5gs-smf.yaml open5gs/freediameter.conf
[upf]
-program=open5gs-upfd -c open5gs/open5gs-upf.yaml
+program=open5gs-upfd -c open5gs-upf.yaml
make=open5gs
package=open5gs-upf
copy=open5gs/open5gs-upf.yaml open5gs/testenv.sh
-clean=open5gs/testenv.sh
+clean=./testenv.sh
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39080?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: Id9e4ea066d0a0e72ccd83e4f6f887f382bf61e46
Gerrit-Change-Number: 39080
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: fixeria, pespin.
osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-abis/+/39043?usp=email )
Change subject: input: Get rid of abis/ipa.h dependency in e1_input and ipaccess.c
......................................................................
Patch Set 6: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/39043?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I4efb11ae44c28c4f56f71f5797966f6106493f2b
Gerrit-Change-Number: 39043
Gerrit-PatchSet: 6
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 10 Dec 2024 14:53:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: fixeria, pespin.
Hello Jenkins Builder, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-abis/+/39043?usp=email
to look at the new patch set (#6).
The following approvals got outdated and were removed:
Code-Review+1 by fixeria, Verified+1 by Jenkins Builder
Change subject: input: Get rid of abis/ipa.h dependency in e1_input and ipaccess.c
......................................................................
input: Get rid of abis/ipa.h dependency in e1_input and ipaccess.c
abis/ipa.h will eventually be deprecated. The only current use of
abis/ipa.h in libosmo-abis itself is in helper code such as:
* tests/ipa_recv/ipa_recv_test.c
* src/ipa_proxy.c
ipaccess e1_input driver is also using struct ipa_keepalive_params,
which is only exported publicly in e1_input.h as a pointer and is only
really used internally, hence move a copy of the struct to internal.h
and use it internally (e1_input_vty.c) from there.
Leave a copy of the struct in its original abis/ipa.h (which as
mentioned contains code to be deprecated) for old users.
Change-Id: I4efb11ae44c28c4f56f71f5797966f6106493f2b
---
M include/internal.h
M include/osmocom/abis/e1_input.h
M src/e1_input_vty.c
M src/input/ipa.c
M src/input/ipaccess.c
M src/ipa_proxy.c
6 files changed, 11 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/43/39043/6
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/39043?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I4efb11ae44c28c4f56f71f5797966f6106493f2b
Gerrit-Change-Number: 39043
Gerrit-PatchSet: 6
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/39083?usp=email )
Change subject: sgsn_vty: Drop unneeded use of abis/ipa.h header
......................................................................
sgsn_vty: Drop unneeded use of abis/ipa.h header
The header is not needed and will eventually be deprecated.
Change-Id: I48a513b8ea63dadbc6d6d571380980f55ff04a06
---
M src/sgsn/sgsn_vty.c
1 file changed, 0 insertions(+), 1 deletion(-)
Approvals:
fixeria: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/sgsn/sgsn_vty.c b/src/sgsn/sgsn_vty.c
index 2cb8819..1a104b3 100644
--- a/src/sgsn/sgsn_vty.c
+++ b/src/sgsn/sgsn_vty.c
@@ -54,7 +54,6 @@
#include <osmocom/vty/misc.h>
#include <osmocom/crypt/gprs_cipher.h>
#include <osmocom/crypt/utran_cipher.h>
-#include <osmocom/abis/ipa.h>
#include <osmocom/gprs/gprs_bssgp.h>
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/39083?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I48a513b8ea63dadbc6d6d571380980f55ff04a06
Gerrit-Change-Number: 39083
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: pespin.
fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-abis/+/39043?usp=email )
Change subject: input: Get rid of abis/ipa.h dependency in e1_input and ipaccess.c
......................................................................
Patch Set 5: Code-Review+1
(1 comment)
File include/internal.h:
https://gerrit.osmocom.org/c/libosmo-abis/+/39043/comment/d42586d1_515da4e3… :
PS5, Line 16: interval
Is it in seconds? Please clarify at least in comments.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/39043?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I4efb11ae44c28c4f56f71f5797966f6106493f2b
Gerrit-Change-Number: 39043
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 10 Dec 2024 14:22:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes