How to run util & mdb tests

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 util tests:

1 2 3 4 5 6 7 apt update apt install system-test-utiltest \ testrunner \ python \ build-essential \ libjedec1 \ libdemangle-sys

Login by user ztest and run tests:

1 /opt/util-tests/bin/utiltest

To run only mdb test run:

1 /opt/util-tests/bin/utiltest -c /opt/util-tests/runfiles/mdb.run

 

Wait a few seconds and find full logs at:

/var/tmp/test_results/<ISO TIME>