How to run libc tests

Setup VM with:

  • 8GB RAM

  • 2GB swap

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

Create user:

1 2 3 sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest # add password for remote ssh sudo passwd ztest

Add user to sudo:

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

Install packages for libc tests:

1 2 apt update apt install system-test-libctest testrunner python build-essential

Login by user ztest and run tests:

1 sudo /opt/libc-tests/bin/libctest

Wait for about 5 minutes and found full logs at:

/var/tmp/test_results/<ISO TIME>