<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to do regression testing using CTest after building through cmake. My test area (c:/test/T1 T2 T3…) and build area (c:/build) have these locations. </span></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">My test requires to 'cd' to test area T1, and then execute perl commands. I do these steps:</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></p>
<ol style="MARGIN-TOP: 0in" type="1">
<li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Run cmake from source tree, having multiple ADD_TEST commands in CMakeList.txt of source tree.</span></li>

<li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It generates CTestTestfile.cmake in binary tree.</span></li>
<li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Then I run ctest from build area. But tests fail to start as they are unable to locate test area.</span></li>
</ol>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to know how can I specify test area location and start test execution in same ADD_TEST command?</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If I specify ADD_TEST in CMakeList.txt of test area (c:/test), it does not produce CTestTestfile.cmake in test area?</span></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><a name="_MailAutoSig"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Regards,</span><span style="mso-no-proof: yes"></span></a></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="mso-bookmark: _MailAutoSig"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Ashutosh</span></span></p>