Integration testing script and supporting changes#164
Open
amd-vserbu wants to merge 13 commits into
Open
Conversation
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
… a non-standard socket Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an end-to-end branch-test harness that clones an arbitrary SLASH branch on a V80 host, builds it from source, and runs the full example + stress suite against real hardware. To make that possible without disturbing the system install,
vrtdand its clients learn to run entirely outside systemd via environment variables.Changes
Run
vrtdoutside systemdVRTD_SOCKET— when set,vrtdcreates and listens on its ownAF_UNIX/SOCK_SEQPACKETsocket at that path (in addition to any systemd-passed fds), and unlinks it on shutdown. Socket setup is refactored intocreate_listening_unix_socket/register_listening_sockethelpers.VRTD_LOG— when set, allLOG()output goes to that file instead of the journal. The old journal-reachability preflight check is replaced byvrtd_log_init/vrtd_log/vrtd_log_close, and startup fails if the log file can't be opened.Client-side socket override
vrt::Deviceandlibvrtdpp::Sessionnow honorVRTD_SOCKET(falling back to the compiled-in default), sov80-smiand applications can target a non-standard daemon socket the same way.scripts/extra/branch-test.sh(new)--repo-url/--branch, builds viapbuild, loadsslash.ko+ami.ko, launches a direct-runvrtdwith a scratch config/socket/log, programs the static shell over JTAG, then runs the emu/sim/hw examples and the stress test.flockadvisory lock, and restores the system runtime (modules, PCIe functions, systemdvrtd) on exit.Usage
Run as root on a V80 host. Every flag has an env-var equivalent.
sudo scripts/extra/branch-test.sh \ --repo-url https://github.com/Xilinx/SLASH.git \ --branch feature/branch-test \ --scratch /scratch/branch-test \ --bdf 0000:65:00 \ --smbus-ip /path/to/smbus_ip.zip--repo-url URLREPO_URL--branch BRANCHBRANCH--scratch DIRSCRATCH--bdf BDFBDF0000:65:00)--smbus-ip ZIPSMBUS_IPpbuild--protected-user USERPROTECTED_USERSUDO_USER)--scratch-vrtd DIRSCRATCH_VRTDvrtdconfig/socket/log (default:SCRATCH/vrtd)--source FILENew test script flags
test-examples.sh --use-repo— build examples against this checkout (SLASH_USE_REPO=ON) instead of installed packages.stress-test.sh --use-pbuild— use thepbuild-builtv80-smiinstead ofPATH.validateat 32 threads: it allocates 2×512 MiB buffers per thread within the 32 GiB space, so >32 threads overflows.