# Running the Slurm 'expect' Testsuite The ```slurm-testsuite``` package contains the Slurm expect test suite. This package is meant to be installed on a test setup only, it should NEVER BE INSTALLED ON A REGULAR OR EVEN PRODUCTION SYSTEM. SUSE uses this package to determine regressions and for quality assurance. The results are monitored and evaluated regularly in house. A specific configuration is required to run this test suite, this document attempts to describe the steps needed. A small subset of tests is currently failing. The reasons are yet to be determined. Please do not file bug reports based on test results! The testsuite is preconfigured to work with 4 nodes: ```node01```,..., ```node04```. ```node01``` serves as control and compute node. The slurm configuration, home, and the test suite are shared across the nodes. The test suite should be mounted under /home (to make ```sgather``` work correctly). For tests involving MPI this test suite currently uses OpenMPI version 4. ## Install and set up the Base System 1. Prepare image with a minimal text mode installation. 2. Install, enable and start sshd and make sure root is able to log in without password across all nodes. ``` # zypper install openssh-server openssh-clients # systemctl enable --now sshd # ssh-keygen -t rsa -f .ssh/id_rsa -N # cat .ssh/id_rsa.pub >> .ssh/authorized_keys ``` 3. Create a test user 'auser' allow ssh from/to root: ``` # useradd -m auser # cp -r /root/.ssh /home/auser ``` 4. Set up a persistent network if to obtain the network address and hostname thru DHCP: ``` # echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", '\ 'ATTR{address}=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1",'\ ' KERNEL=="?*", NAME="lan0" >> /etc/udev/rules.d/70-persistent-net.rules # cat > /etc/sysconfig/network/ifcfg-lan0 <> /etc/exports <> /etc/fstab <