[CMake] CDash using xml directly

Tyler tyler at cryptio.net
Tue Oct 11 12:07:59 EDT 2011


I recommend using CTest to drive the tests. You can write a CTest
script that (essentially) only does ctest_test() and ctest_submit().
Then you don't have to worry about tracking the CTest XML format.

If you don't want to do that, you'll need to simulate CTest's start
and test XML and upload it to the server. I'm sure there are a million
ways to do this with python, or you could use wget/curl.

tyler

On Tue, Oct 11, 2011 at 7:02 AM, Paul Anton Letnes
<paul.anton.letnes at gmail.com> wrote:
> Hi!
>
> I am interested in using the CDash (e.g. my.cdash.org) infrastructure for running tests of a python package. The build steps may not make sense, especially as the project does not use CMake. However, I have found instructions online on how to generate the XML expected by CDash, and figured that I should be able to upload it directly to CDash. Can anyone give me a hint as to how I would go about doing this? Doing it directly from a python script would be best; doing it from the command line in *nix would be a good number two.
>
> For now, my XML looks like that in the bottom of this e-mail.
>
> Best regards
> Paul
>
>
> <?xml version="1.0" standalone="yes"?>
> <Site BuildName="darwin" Name="courant.phys.ntnu.no">
>  <Testing>
>    <StartDateTime>Tue Oct 11 15:51:14 2011</StartDateTime>
>    <TestList>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, 1, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -1, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, 0.0, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -0.0, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, inf, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -inf, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, nan, inf, inf, inf)</Test>
>      <Test>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -inf, 1, 0.0, inf)</Test>
>    </TestList>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, 1, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -1, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, 0.0, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -0.0, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, inf, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -inf, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, nan, inf, inf, inf)</Name>
>    </Test>
>    <Test Status="Failed">
>      <Name>test_umath_complex.TestCsqrt.test_special_values(&lt;ufunc 'sqrt'&gt;, -inf, 1, 0.0, inf)</Name>
>    </Test>
>  </Testing>
> </Site>
>
> --
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list