Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
87b4c66c
Commit
87b4c66c
authored
15 years ago
by
Zach
Browse files
Options
Downloads
Patches
Plain Diff
Need to quote args when generating batch scripts from ctest
parent
e4293b4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/CTest/cmCTestBatchTestHandler.cxx
+19
-2
19 additions, 2 deletions
Source/CTest/cmCTestBatchTestHandler.cxx
Source/CTest/cmCTestBatchTestHandler.h
+17
-0
17 additions, 0 deletions
Source/CTest/cmCTestBatchTestHandler.h
with
36 additions
and
2 deletions
Source/CTest/cmCTestBatchTestHandler.cxx
+
19
−
2
View file @
87b4c66c
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include
"cmCTestBatchTestHandler.h"
#include
"cmProcess.h"
#include
"cmStandardIncludes.h"
...
...
@@ -23,7 +40,7 @@ void cmCTestBatchTestHandler::WriteBatchScript()
+
"/Testing/CTestBatch.txt"
;
std
::
fstream
fout
;
fout
.
open
(
this
->
Script
.
c_str
(),
std
::
ios
::
out
);
fout
<<
"#
!/bin/sh
\n
"
;
fout
<<
"#!/bin/sh
\n
"
;
for
(
TestMap
::
iterator
i
=
this
->
Tests
.
begin
();
i
!=
this
->
Tests
.
end
();
++
i
)
{
...
...
@@ -90,7 +107,7 @@ void cmCTestBatchTestHandler::WriteTestCommand(int test, std::fstream& fout)
++
i
;
//the executable (command)
for
(;
i
!=
args
.
end
();
++
i
)
{
fout
<<
*
i
<<
" "
;
//args to the test executable
fout
<<
"
\"
"
<<
*
i
<<
"
\"
"
;
//args to the test executable
}
//TODO ZACH build TestResult.FullCommandLine
//this->TestResult.FullCommandLine = this->TestCommand;
...
...
This diff is collapsed.
Click to expand it.
Source/CTest/cmCTestBatchTestHandler.h
+
17
−
0
View file @
87b4c66c
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef cmCTestBatchTestHandler_h
#define cmCTestBatchTestHandler_h
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment