Note that 2/5 is not actually needed for the purposes of these "test
cases" (which always succeed, at the moment), it just fixes a
condition I hit while writing them.
v2: Actually include passt.mem.mbuto in 5/5, and move the introduction
of INITRAMFS_MEM for the setup function there
Stefano Brivio (5):
test/lib: Move screen-scraping setup and layout functions to _ugly
files
tap: Support for detection of existing sockets on ramfs
test/lib/perf_report: Use own flag to track initialisation
test/lib: Add "td" directive, handled by table_value()
test: Add memory/passt test cases
tap.c | 3 +-
test/Makefile | 5 +-
test/lib/layout | 69 ----------------
test/lib/layout_ugly | 122 ++++++++++++++++++++++++++++
test/lib/perf_report | 9 ++-
test/lib/setup | 23 ------
test/lib/setup_ugly | 75 +++++++++++++++++
test/lib/term | 28 +++++++
test/lib/test | 3 +
test/memory/passt | 187 +++++++++++++++++++++++++++++++++++++++++++
test/passt.mem.mbuto | 42 ++++++++++
test/run | 6 ++
12 files changed, 475 insertions(+), 97 deletions(-)
create mode 100644 test/lib/layout_ugly
create mode 100755 test/lib/setup_ugly
create mode 100644 test/memory/passt
create mode 100755 test/passt.mem.mbuto
--
2.35.1
Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
---
passt.1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/passt.1 b/passt.1
index d121050..2c93907 100644
--- a/passt.1
+++ b/passt.1
@@ -718,7 +718,7 @@ root@localhost's password:
.SH NOTES
-.SS Handling of traffic with local destination and source addressses
+.SS Handling of traffic with local destination and source addresses
Both \fBpasst\fR and \fBpasta\fR can bind on ports with a local address,
depending on the configuration. Local destination or source addresses need to be
--
2.35.1
Hi,
I finally took the chance to turn some sparse to-do lists I had into
bugs and feature requests. I linked the most obvious Bugzilla queries
at:
https://passt.top/#contribute
feel free to take up items if you're interested. Thanks,
--
Stefano
They're too slow to cope with current release cycles, and they
haven't found bugs in months, also because clang-tidy and cppcheck
would find most of them earlier.
Disable them for the moment. We should pre-install gcc and make in
non-x86 images, as those run on my test machine with qemu TCG, and
that's the real slow-down here. Then we can re-enable them.
Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
---
test/run | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/run b/test/run
index d61b2d3..cb3b6c0 100755
--- a/test/run
+++ b/test/run
@@ -110,12 +110,16 @@ run() {
test passt_in_ns/shutdown
teardown passt_in_ns
+ # TODO: Make those faster by at least pre-installing gcc and make on
+ # non-x86 images, then re-enable.
+skip_distro() {
setup distro
test distro/debian
test distro/fedora
test distro/opensuse
test distro/ubuntu
teardown distro
+}
perf_finish
[ ${CI} -eq 1 ] && video_stop
--
2.35.1
The out-of-tree Podman patch needs to be rebased every second week or
so, and I'm currently trying to get that upstream:
https://github.com/containers/podman/pull/16141
Disable demo generation for the moment, so that I avoid wasting time
with those rebases. We'll re-enable it later.
Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
---
hooks/pre-push | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/hooks/pre-push b/hooks/pre-push
index ebca1f6..89717e7 100755
--- a/hooks/pre-push
+++ b/hooks/pre-push
@@ -21,13 +21,13 @@ BASE="/var/www/passt"
BUILDS="${BASE}/builds"
LATEST="${BUILDS}/latest"
TEMP="${BUILDS}/temp"
-AWAY="${BUILDS}/away"
WEB="${TEMP}/web"
TEST="${TEMP}/test"
ARCH="$(uname -m)"
BIN="${TEMP}/${ARCH}"
+OLD_BIN="${LATEST}/${ARCH}"
ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
@@ -41,12 +41,15 @@ for f in test_logs/web/*.cast test_logs/web/*.js; do
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
+# TODO: Re-enable demos once we have pasta support in upstream Podman
+skip() {
./run_demo
for f in test_logs/web/*.cast test_logs/web/*.js; do
gzip -fk9 "${f}"
scp "${f}" "${USER_HOST}:${WEB}/"
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
+}
cd ..
@@ -68,6 +71,10 @@ for pic in passt_overview pasta_overview; do
done
scp doc/*.html "${USER_HOST}:${WEB}/"
-ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}"
-ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}"
-ssh "${USER_HOST}" "rm -rf ${AWAY}"
+ssh "${USER_HOST}" "cp ${WEB}/* ${LATEST}/web/"
+ssh "${USER_HOST}" "cp ${TEST}/* ${LATEST}/test/"
+
+ssh "${USER_HOST}" "rm -f ${OLD_BIN}/*"
+ssh "${USER_HOST}" "cp ${BIN}/* ${LATEST}/${ARCH}/"
+
+ssh "${USER_HOST}" "rm -rf ${TEMP}"
--
2.35.1