Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setup VM with:

  • CPU - 4

  • Memory - 8GB

  • Hard disk - 100GB

  • Have to use DEBUG build, where we have debug macro

Create user:

if you created a user at the vm preparation stage, then skip this step.

Code Block
languagebash
sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest
# add password for remote ssh
sudo passwd ztest

Add user to sudo:

if you created a user at the vm preparation stage, then skip this step.

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

Install packages for libc tests:

Code Block
languagebash
sudo apt update
sudo apt install system-test-libctest testrunner python build-essential

Login by user ztest and run tests:

Code Block
languagebash
sudo /opt/libc-tests/bin/libctest

...

/var/tmp/test_results/<ISO TIME>

Test run script

Code Block
languagebash
#!/bin/bash

LOG="/var/tmp/libc-test.`date "+%F-%T"`.txt"
uname -a > ${LOG}
/opt/libc-tests/bin/libctest 2>&1 | /usr/bin/tee -a ${LOG}

...