Show us your &quot;add_test&quot; call.<div><br></div><div>If it&#39;s a python script, execute the python interpreter and pass the script as an arg:</div><div>add_test(${PYTHON_EXECUTABLE} &quot;/full/path/to/script.py&quot;)</div>
<div><br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 10:39 AM, Mattia Tomasoni <span dir="ltr">&lt;<a href="mailto:Mattia.Tomasoni.8371@student.uu.se">Mattia.Tomasoni.8371@student.uu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
I am using Cmake to run some tests after building my executable; my<br>
tests are .sh scripts. I would like them to be Python scripts instead.<br>
I wrote the following test script:<br>
<br>
print &quot;success&quot;<br>
exit(0)<br>
<br>
While the correspondent shell script will work, the Python equivalent<br>
exits complaining &quot;Errors while running CTest&quot;.<br>
<br>
Could anyone point to the appropriate documentation or explain how to<br>
let CTest know that I want the Python interpreter to execute the script?<br>
<br>
Thank you,<br>
Mattia<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>