Page History
- 2022-Jul-27 13:02 johnkn
- 2017-Mar-28 09:15 johnkn
- 2017-Mar-28 09:14 johnkn
- 2016-Mar-18 15:05 johnkn
- 2016-Mar-17 13:16 johnkn
- 2016-Mar-17 11:35 johnkn
- 2016-Mar-17 10:43 johnkn
- 2016-Mar-16 12:14 johnkn
- 2016-Mar-16 12:08 johnkn
- 2016-Mar-16 11:52 johnkn
- 2016-Mar-15 17:17 johnkn
- 2016-Mar-15 16:36 johnkn
- 2015-Jul-30 15:25 bt
- 2015-Jul-30 15:22 bt
- 2015-Jul-30 15:21 bt
- 2015-Jul-30 14:32 bt
- 2015-Jul-30 14:27 bt
- 2015-Jul-30 13:50 bt
- 2015-Jul-30 13:48 bt
- 2015-Jul-30 13:45 bt
- 2015-Jul-30 11:56 bt
- 2015-Jul-30 11:25 bt
- 2015-Jul-30 10:55 bt
- 2015-Jul-30 10:33 bt
- 2015-Jul-30 10:26 bt
- 2015-Jul-30 10:22 bt
- 2013-Sep-20 13:29 bt
- 2013-Sep-20 13:21 bt
- 2013-Sep-20 12:53 bt
- 2013-Sep-20 12:19 bt
- 2013-Sep-06 14:31 bt
- 2013-Apr-15 11:44 bt
- 2013-Apr-15 11:12 bt
- 2012-Nov-13 16:48 adesmet
- 2009-Mar-05 16:53 burnett
- 2009-Feb-05 17:58 burnett
- 2009-Jan-28 12:08 burnett
- 2009-Jan-27 09:32 burnett
- 2009-Jan-16 18:26 burnett
- 2009-Jan-14 15:42 burnett
- 2009-Jan-14 11:52 burnett
- 2009-Jan-13 15:01 burnett
Requirements
- Install Active-State Perl
- Make a git clone of the HTCondor repo OR unpack the source tarball
- Build HTCondor for Windows: Instructions
Preparing for testing
The easiest way to get an ititial Windows HTCondor test environment is to build HTCondor from git. It is possible to download the HTCondor MSI or tarball and test that, but you will need to also have the tests and the msconfig tools that you get from a git clone or from the source tarball.
Testing needs
There are five things needed for testing on windows that need to be assembled
- built HTCondor release_dir or equivalent (unpack the .ZIP release)
- all sources for src/condor_tests including subdirectories
- Condor.PM, CondorUtils.pm, CondorTest.pm, CondorPersonal.pm and batch_tests.pl from src/condor_scripts
- built tests
- working personal HTCondor config
Get tests from the HTCondor sources
You must copy some files from the condor sources into into the directory you wish to test in.
set SRCDIR=\scratch\CONDOR_SRC set testdir=\scratch\test001 mkdir %testdir% xcopy /Q /Y "%SRCDIR%\src\condor_tests\*" "%testdir%\condor_tests\" xcopy /Q /Y "%SRCDIR%\src\condor_tests\Check\*" "%testdir%\condor_tests\Check\" xcopy /Q /Y "%SRCDIR%\src\condor_scripts\*.pm" "%testdir%\condor_tests\" xcopy /Q /Y "%SRCDIR%\src\condor_scripts\*.pl" "%testdir%\condor_tests\"
Install HTCondor in the test dir and create a configuration
CD to the directory where HTCondor is built (where your condor.sln file is), build the tests, and install HTCondor into the testing directory.
Install HTCondor into the testing dir
cd \scratch\build set testdir=\scratch\test001 cmake -DBUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=%testdir% -P cmake_install.cmake
Build the tests and copy them into the testing dir
devenv condor.sln /Build Debug /Project BLD_TESTS xcopy /Q /Y src\condor_tests\list_* "%testdir%\condor_tests\" xcopy /Q /Y src\condor_tests\Debug\*.exe "%testdir%\condor_tests\" xcopy /Q /Y src\condor_tests\Debug\*.pdb "%testdir%\condor_tests\"
Create a HTCondor configuration that all of the tests will derive from and set CONDOR_CONFIG to point to it.
pushd "%testdir%" cscript "%SRCDIR%\msconfig\init_config.wff" ETC=etc PERSONAL=Y RUNJOBS=A mkdir log mkdir spool mkdir execute popd
Set PATH and CONDOR_CONFIG environment variables
set CONDOR_CONFIG=%testdir%\condor_config set PATH=%testdir%\bin;%PATH%
Start HTCondor and verify that it is running
start %testdir%\bin\condor_master -f -t tail -f %testdir%\log\MasterLog
You should now be able to run single tests in the testing location you chose for test XXX.run:
cd %testdir%\condor_tests batch_test.pl -d . -t XXX.run