Setup VM with:
8GB RAM
2GB swap
3 additional drives 8GB
Have to use DEBUG build, where we have debug macro
Create user:
Code Block | ||
---|---|---|
| ||
sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest |
...
# add password for remote ssh |
...
sudo passwd ztest |
Add user to sudo:
Code Block | ||
---|---|---|
| ||
echo "ztest ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/ztest |
Install packages for zfs tests:
Code Block | ||
---|---|---|
| ||
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
...
#!/bin/bash
# run tests
...
:
Code Block | ||
---|---|---|
| ||
sudo /opt/libc-tests/bin/libctest |
wait Wait for about 5 m minutes and found full logs at:
/var/tmp/test_results/<ISO TIME>
...