cd \scratch\build set testdir=\scratch\test001 cmake -DBUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=%testdir% -P cmake_install.cmake +rem BUILD_TYPE sould be Debug or RelWithDebInfo depending on what you built. {endterm} Create a HTCondor configuration that all of the tests will derive from. -If the machine you are running tests on has fewer than 5 DETECTED_CPUS some -tests are known to fail. To be safe set NUM_CPUS to 8. - -Assuming the environment variable SRCDIR points to HTCondor sources: +Assuming the environment variable SRCDIR points to HTCondor sources you can use these commands: {term} pushd "%testdir%" cscript "%SRCDIR%\msconfig\init_config.wsf" ETC=etc PERSONAL=Y RUNJOBS=A @@ -61,6 +59,12 @@ popd {endterm} +If the machine you are running tests on has fewer than 5 DETECTED_CPUS some +tests are known to fail. To be safe set NUM_CPUS to 8. + +The init_config.wsf script can be used to pass arguments to msconfig\WiX\config.vbs which will create a condor_config file in much the same way that condor_install does on *nix builds. The ETC argument tells it where to find condor_config.generic + + {section: Build and Install the tests } Build the tests and copy them into the testing dir. Run these commands @@ -81,8 +85,7 @@ set PATH=%testdir%\bin;%PATH% {endterm} -Start HTCondor and verify that it is running. There are some tests that -will still run if you skip this step. +Start HTCondor and verify that it is running. This step is optional for some tests. You can tell which tests require a running HTCondor by looking at the *Test_Requirements* file. {term} start %testdir%\bin\condor_master -f -t condor_who -wait:60 "NumDead > 0 || AllAlive" @@ -91,6 +94,7 @@ {section: Run a test } You should now be able to run single tests in the testing location you chose. +Tests in the *Windows_SkipList* file are known not to work on Windows. For instance to run test XXX.run: {code}