Manual Regression Tests Kbdd

This is one of the ManualRegressionTests :

Confirm that the KeyboardIdle is correctly set. In particular, is the condor_kbdd working? Key cases to check:

  • USB keyboard and mouse on Linux
  • Windows Vista or later

To test on Linux:

  • untar the appropriate version of HTCondor in a scratch directory of a machine that you have access to the keyboard and mouse (note: make sure that keyboard and mouse are USB)
  • run './condor_install .' (note the trailing dot)
  • source (as instructed)
  • edit the file at local.*/condor_config.local and add the following:
  • Run condor_master
  • Give HTCondor a few seconds to start up, and then run this shell script

while true; do sleep 10; condor_status -l -direct `hostname` | grep KeyboardIdle; done

  • Poke at the keyboard and mouse (individually) and see if the timer resets. For the mouse the timer might stay at 4 but this is probably ok.

To test on Windows

On Windows, the KBDD needs to be in the registry so that it will start when a user logs on and will run as that user. You can either do this by installing HTCondor using the MSI installer and choosing to run jobs when the keyboard is idle; or you can add KBDD to the DAEMON_LIST, start HTCondor, and then log off and back on again. The KBDD should startup when you log on.

To test the kbdd, run this as a .BAT file

@echo off
for /L %%I in (1,1,100000) do (
time /T
condor_status -l | grep "Idle ="
sleep 20

sleep is not a native command on Windows. If you don't have it, you can use ping > NUL instead. The KBDD seems to update about once every 3 minutes by default, so testing this takes some patience.