### Running the Test Suite [[OpenAFS]] includes a suite of basic test scripts in the src/tests directory. The tests directory also contains a utility called afs-newcell.pl to create a test cell on a single host. You will need to already have a kerberos server running with an AFS principal and an admin principal. You should also have a partitions mounted as /vicepa and /vicepb for the test volumes. See the src/tests/afs-newcell.pl for details. The paths to the binaries and AFS configuration is are written to src/tests/OpenAFS/Dirpaths.pm when the tests are built. This means you must run 'make all' in src/tests before attempting to use afs-newcell.pl. The afs-newcell.pl program must be run as root. cd src/tests make all sudo perl afs-newcell.pl The afs-newcell.pl program will prompt for the required cell configuration unless started with the --batch options. You will need to specify the name of your new cell, the host name of this machine, the target partition id (a for /vicepa), and the username of the AFS administrator (which must be named 'admin' for the current pts tests). You will also need to provide the type of Kerberos server, the name of the Kerberos realm (which can be different than the AFS cell name), and the location of the keytab file that contains the AFS server encryption key and the admin's encryption key. Finally, you may provide any server options for the AFS database and fileservers. Server options: What server name should be used? [host.domain.com] What cellname should be used? [testcell] What vice partition? [a] What administrator username? [admin] Kerberos options: Which Kerberos is to be used? [MIT] What Kerberos realm? [TESTCELL] What keytab file? [/usr/afs/etc/krb5.keytab] Database Server options: ptserver options: [] vlserver options: [] Fileserver options: Use DAFS fileserver (requires DAFS build option)? (yes/no) [no] fileserver options: [] volserver options: [] salvageserver options: [] salvager options: [] The parameters are optionally saved to a script called run-afs-newcell.sh, in case you need to re-run the setup. Also, the Kerberos parameters for the new cell are saved in the file run-tests.conf. If all goes well, the servers should be running and the client loaded. You should be able to see your new cell at /afs/testcell (or whatever you called your cell). Your cell will have a few, empty test volumes that you should be able to see with a vos listvldb. Run the run-tests script to run the AFS test suite. The program can be run as an ordinary user. The keytab file specified when afs-newcell was run will be used to authenticate the admin user for the tests. ./run-tests -all The output will look something like this, Authenticating to cell testcell. ... Running creat1 Running mkdir1 Running mkdir2 .... ----------------------------------------------------------- Failed test(s) were: write-large write-ro ...