Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv64: Mount tmpfs to support unit-tests expecting /tmp #117

Merged
merged 2 commits into from
Sep 30, 2024

Commits on Sep 30, 2024

  1. riscv64: Mount tmpfs to support unit-tests expecting /tmp

    As `9p` rootfs documented [1], mount a `tmpfs` onto `/tmp` could avoid
    `E: Unable to determine file size for fd 7 - fstat (2: No such file or
    directory)`.
    
    And various unittests in `linux-loader`, `vm-memory` and etc. explicitly
    expect `/tmp` to exist, and were failing on riscv because no `tmpfs` was
    mounted.
    
    Modify `/etc/fstab` to apply the mount operation during boot.
    
    [1] https://wiki.qemu.org/Documentation/9p_root_fs#Let's_start_the_Installation
    
    Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
    TimePrinciple committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    610e0e9 View commit details
    Browse the repository at this point in the history
  2. riscv64: Improve command forwarding

    Previous implementation uses `netcat` to test existence of
    pre-configured target port, but that port is occupied in advance of
    `sshd` inside VM is ready.
    
    Replace `netcat` with `ssh` with `ConnectTimeout` set to directly verify
    the connectivity of `sshd`.
    
    Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
    TimePrinciple committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    22eafe4 View commit details
    Browse the repository at this point in the history