Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Setup VM with:

8GB RAM

2GB swap

3 additional drives 8GB

Have to use DEBUG build, where we have debug macro

Create user:

sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest

# add password for remote ssh

sudo passwd ztest

Add user to sudo:

echo "ztest ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/ztest

Install packages for zfs tests:

apt update

apt install system-test-libctest testrunner python build-essential

Update /etc/sudoers:

# update /etc/sudoers:

sudo -E /usr/bin/sed -i.bak '/secure_path/a\Defaults exempt_group+=staff' /etc/sudoers

sudo -E /usr/bin/sed -i.bak 's/ requiretty/ !requiretty/' /etc/sudoers

login by user ztest and run tests and run script z.sh:

#!/bin/bash

# run tests

sudo /opt/libc-tests/bin/libctest

wait about 5 m and found full logs at:

/var/tmp/test_results/<ISO TIME>

  • No labels