Hi Vingesh,
I will fix this bug in CTest for the next release. That said, for now,
could you just make sure to run CTest in the directory where your tests
are? What I mean is something like this. If your BuildDirectory is
pointing to /foo/bar, then make sure you first do:
cd /foo/bar
before you run CTest.
Andy
Vignesh M.P.N. wrote:
Hi
I hope there is a misunderstanding; it doesn't work in the right directory
too.
I am not even able to test run the CTest using
ctest -D ExperimentalStart -D ExperimentalTest -D ExperimentalSubmit
The problem is "Testing" folder gets created in the current directory
itself, irrespective of the value passed to the "BuildDirectory" key.
So this causes the failure in submission, because it is not able to find the
file at "<BuildDirectory>/Testing/..."
I hope this is not a bug, because this is a basic functionality. I might be
doing something wrong somewhere.
For more details, please look into the bug tracker at the below link,
http://www.cmake.org/Bug/bug.php?op=show&bugid=2949
As you must have noticed that myself working under Matt, had been trying to
set this Dart and CTest for the past 10 days and still we couldn't get the
basic thing up, as we had problem with the Dart XML format and this problem
with Ctest.
The problem might be with our configuration too, but we've given our best
based on the documentation available.
We need more help on this front from all of you.
Thanks
Vignesh.
-----Original Message-----
From: Andy Cedilnik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 3:31 PM
To: Vignesh M.P.N.
Subject: Re: [CMake] CTest newbie
Hi,
For now just make sure you run ctest in the right directory.
Andy
Vignesh M.P.N. wrote:
Hi
I have posted the bug.
http://www.cmake.org/Bug/bug.php?op=show&bugid=2949
Thanks
Vignesh.
-----Original Message-----
From: Andy Cedilnik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 2:05 PM
To: Vignesh M.P.N.
Subject: Re: [CMake] CTest newbie
Hi Vingesh,
Yes, this looks like a bug.
Andy
Vignesh M.P.N. wrote:
Hi Andy:
I doesn't work without that. Because I need to mention path as the value
in
the "BuildDirectory" key. But the "Testing" folder doesn't get created in
the path I mention, but it gets created in the current directory. So it
always throws error that it is not able to find the "Testing" folder in
the
mentioned path.
If this is a bug, I can post it right away.
Please let me know.
Thanks
Vignesh.
-----Original Message-----
From: Andy Cedilnik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 1:54 PM
To: Vignesh M.P.N.
Subject: Re: [CMake] CTest newbie
Hi Vingesh,
Does it work otherwise?
Could you put a bug report in the bug tracker?
Thank you.
Andy
Vignesh M.P.N. wrote:
Hi Andy
The log/xml files always go in the current directory ie., the "Testing"
folder is created in the current directory where I place the
DartConfiguration.tcl, irrespective of what I mention as the value of
"BuildDirectory" key.
So while submitting files, I always get the error "Cannot find file:"
which
points to the path I mentioned in the "BuildDirectory" key.
Please help.
Vignesh.
-----Original Message-----
From: Andy Cedilnik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 10:17 AM
To: Vignesh M.P.N.
Cc: 'CMake'
Subject: Re: [CMake] CTest newbie
Hi Vingesh,
You will need the build directory to put the log/xml files in.
Andy
Vignesh M.P.N. wrote:
Hi Andy:
Thanks for your reply.
You mean to say I need to include "NightlyStartTime" or all other keys
that
I've commented.
I just tried running
ctest -D ExperimentalStart -D ExperimentalTest -D ExperimentalSubmit
with the following config file.
Site: localhost
BuildName: VTeam-test
DropSite: public.kitware.com
DropLocation: /cgi-bin/HTTPUploadDartFile.cgi
DropMethod: http
TriggerSite:
http://public.kitware.com/cgi-bin/Submit-Random-TestingResults.pl
NightlyStartTime: 21:00:00 EDT
TimeOut: 1500
I got the following errors,
CMake Error: RelativePath must be passed a full path to local:
CMake Error: RelativePath must be passed a full path to local:
CMake Error: RelativePath must be passed a full path to local:
CMake Error: RelativePath must be passed a full path to local:
CMake Error: RelativePath must be passed a full path to local:
CMake Error: RelativePath must be passed a full path to local:
Cannot find BuildDirectory key in the DartConfiguration.tcl
Errors while running CTest
It still asks for BuildDirectory key and some RelativePath problem.
Please help
Thanks
Vignesh.
-----Original Message-----
From: Andy Cedilnik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 11:54 AM
To: Vignesh M.P.N.
Cc: CMake
Subject: Re: [CMake] CTest newbie
Hi Vingesh,
Vignesh M.P.N. wrote:
I thought of being more specific with my problem. I just want to simply
test
a file and post the result to a Dart server, initially to kick off.
I don't want to build, no CVS, nothing. Just test a single file and
report.
Just run:
ctest -D ExperimentalStart -D ExperimentalTest -D ExperimentalSubmit
In that case, based on my understanding I feel my configuration file
will
look as simple as this. I've commented all those could be omitted.
# SourceDirectory: C:\Cleversafe\src\swdev-grid\trunk\src
# BuildDirectory: /src
# CVSUpdateOptions: -d -A -P
Site: localhost
BuildName: VTeam-test
DropSite: public.kitware.com
DropLocation: /cgi-bin/HTTPUploadDartFile.cgi
DropMethod: http
TriggerSite:
http://public.kitware.com/cgi-bin/Submit-Random-TestingResults.pl
# NightlyStartTime: 21:00:00 EDT
# ConfigureCommand: "/path/to/source/directory/Project/configure"
# MakeCommand: /usr/bin/make -i
# CVSCommand: /usr/bin/cvs
# CoverageCommand: /usr/bin/gcov
TimeOut: 1500
And I tried running CTest using "ctest -D Experimental"
It says "Problem initializing the dashboard"
You need NightlyStartTime and so on even if you do not use them.
Andy
Please help.
Thanks
Vignesh.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vignesh
M.P.N.
Sent: Friday, March 03, 2006 2:05 PM
To: CMake
Subject: RE: [CMake] CTest newbie
Hi Andy:
Thanks for the updated info.
I have problem in setting up the SourceDirectory and BuildDirectory. It
is
a
relative path, but I want to know relative path from which context? Is
it
from the directory where DartConfiguration.tcl, and DartTestfile.txt
lie?
Just for testing purpose I created a "src" directory and placed my code
in
that. The code which I refer in the DartTestfile.txt file. I mentioned
"/src" for both "SourceDirectory" and "BuildDirectory" keys.
When I run ctest it says "The system cannot find the path specified"
Thanks
Vignesh.
-----Original Message-----
From: Andy Cedilnik [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 02, 2006 9:10 AM
To: Andy Cedilnik
Cc: Vignesh M.P.N.; CMake
Subject: Re: [CMake] CTest newbie
Hi Vingesh,
Sorry about misspelled name. I updated the Wiki page to include more
details. Please let me know if you require more information.
Thank you.
Andy
Andy Cedilnik wrote:
Hi Bignesh,
Look at the page:
http://www.cmake.org/Wiki/CMake_Generating_Testing_Files
Andy
Vignesh M.P.N. wrote:
Hi all
I am a CMake newbie and new to build process too. So I felt the
documentation insufficient.
I am basically trying to use CTest as a client to Dart without using
CMake. I just want to initially try this with a simple
HelloWorld.java.
So here is what I've done. My project folder just has the HelloWorld
class file, DartConfiguration.tcl and DartTestfile.txt. I just want
to run CTest to run this single file and post the result to the
Public Dashboard.
I suppose the following content is sufficient for my DartTestfile.txt
ADD_TEST(HelloWorld-test "java" "HelloWorld" "argument")
I have problems in setting up DartConfiguration.tcl because not much
information is provided in the documentation, as it is considered as
"self-explanatory". But as a newbie I not comfortable with it. I
don't have any subdir structure, just a single class file!
As per the example,
SourceDirectory: /path/to/project/source/directory
BuildDirectory: /path/to/project/build/directory
CVSUpdateOptions: -d -A -P
Site: my-system-name
BuildName: build-name
DropSite: public.kitware.com
DropLocation: /cgi-bin/HTTPUploadDartFile.cgi
DropMethod: http
TriggerSite:
http://public.kitware.com/cgi-bin/Submit-Random-TestingResults.pl
NightlyStartTime: 21:00:00 EDT
ConfigureCommand: "/path/to/source/directory/Project/configure"
MakeCommand: /usr/bin/make -i
CVSCommand: /usr/bin/cvs
CoverageCommand: /usr/bin/gcov
TimeOut: 1500
Please explain me about each key and what values would fit for my
simple requirement just to kick off.
Thanks
Vignesh.
---------------------------------------------------------------------
-
-
-
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
--
Andy Cedilnik
Kitware Inc.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake