Page History

Turn Off History

Requirements

Preparing for testing

The easiest way to get an ititial Windows HTCondor test environment is to install the HTCondor msi. Take all the defaults and when you get to where jobs run, allow them to run unimpeeded on the current system. (After you have a test machine set up, you can replace the binaries with ones from the zip file release for HTCondor)

You will find it helpful to place these 3 lines in c:condor/condor_config.local

CONDOR_HOST = 127.0.0.1
NETWORK_INTERFACE = 127.0.0.1
DAEMON_LIST = MASTER STARTD KBDD COLLECTOR NEGOTIATOR SCHEDD

Testing

Add to the system PATH environment variable the location of the HTCondor binaries
Secure the HTCondor source tar ball and extract it
Bring down to a testing location of your choice:
   condor_examples
   condor_scripts
   condor_tests
Copy *.pm and batch_test.pl from condor_scripts to condor_tests

From a Cygwin command-line type:

cd c:/condor
chmod go+rX bin
cd bin
chmod go+rX *
cd (into condor_tests, where ever you placed it)
./batch_test.pl -d . -b

Testing 2

  1. Another way to do this is to first have a fully working HTCondor on a PC from the msi.
  2. Have ActivePerl installed
  3. Have Cygwin with perl installed
  4. Have cygwin and condor in your windows PATH envrionment variable. Mine has c:\bin\;C:\condor\bin\ added
  5. Download a valid windows build result tar ball which contains release rpm, test programs compiled for windows and all needed perl modules and scripts.
  6. Stop HTCondor. First do condor_off -master in a cygwin window and then using task manager kill the keyboard daemon.
  7. Take the release zip file and extract it on top of your HTCondor install after making sure all of HTCondor is completely stopped
  8. Pick a location for testing( I have /condor /condor_tests and /condor_examples.
  9. Place condor_tests from build result tar to desired location
  10. Place condor_examples next to it
  11. If you want to stress test, edit condor_config.local in /condor to have NUM_CPUS = somegreaternumberthencores
  12. Restart your system to get HTCondor running with new binaries.
  13. open a cygwin windows and test basic commands like codnor_q and condor_status. 1. Open a cygwin shell and go to condor_tests
  14. Enter "./batch_tests.pl -b -d .
  15. wait

Results

249 successful, 34 failed

Additionally the file failed_tests will contain the list of tests which had a non-zero return code meaning they failed. The file successful_tests will list the passing tests which had a return value of zero

Or, to run a single test:

  ./batch_test.pl -d . -b -t cmd_q_shows-name

Where cmd_q_shows-name can be any of the tests in the test suite.

If you wish to stress test:

./batch_test.pl -b -d . -e 6 { run 6 tests at a time }