Copy of How to run util & mdb tests
Setup VM with:
CPU - 4
Memory - 8GB
Hard disk - 100GB
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 ztestAdd user to sudo:
echo "ztest ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/ztestInstall packages for util tests:
apt update
apt install system-test-utiltest testrunner python build-essential libjedec1 libdemangle-sys1 diagnostic-pciLogin by user ztest and run tests:
/opt/util-tests/bin/utiltestTest run script
#!/bin/bash
LOG="/var/tmp/util-test.`date "+%F-%T"`.txt"
uname -a > ${LOG}
/opt/util-tests/bin/utiltest 2>&1 | /usr/bin/tee -a ${LOG}To run only mdb test run:
/opt/util-tests/bin/utiltest -c /opt/util-tests/runfiles/mdb.runTest run script
#!/bin/bash
LOG="/var/tmp/mdb-test.`date "+%F-%T"`.txt"
uname -a > ${LOG}
/opt/util-tests/bin/utiltest -c /opt/util-tests/runfiles/mdb.run 2>&1 | /usr/bin/tee -a ${LOG}Wait a few seconds and find full logs at:
/var/tmp/test_results/<ISO TIME>