misc: improve upx_testsuite; cmake update

This commit is contained in:
Markus F.X.J. Oberhumer
2023-07-19 20:12:20 +02:00
parent 672d69c68a
commit b866631448
19 changed files with 196 additions and 109 deletions
+4 -3
View File
@@ -1,8 +1,9 @@
test-qemu-with-podman
=====================
This directory provides scripts for creating and running rather small Alpine Linux container
images, intended for testing statically-linked Linux executables with qemu-user.
This directory provides some simple scripts for creating and running
quite small Alpine Linux container images, intended for testing
statically-linked Linux executables with Podman and qemu-user.
Very short usage instructions follow.
@@ -39,7 +40,7 @@ Very short usage instructions follow.
```sh
cd /home/upx/src/upx/tmp
# check that the official binaries do work
# check that the official UPX release binaries do work
qemu-i386 ./upx-4.0.2-i386_linux/upx --version
qemu-mips ./upx-4.0.2-mips_linux/upx --version
# ...same for more architectures
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md
@@ -32,6 +32,10 @@ else
flags+=( --user 0 )
fi
podman run "${flags[@]}" "$image" bash -l
if [[ $# == 0 ]]; then
podman run "${flags[@]}" "$image" bash -l
else
podman run "${flags[@]}" "$image" "$@"
fi
# please see usage instructions in ../README.md