summaryrefslogtreecommitdiffstats
path: root/Source/cmTest.cxx
blob: ee7d95237b291ed0214a41d5f7cabbb4870147ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*=========================================================================

  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 "cmTest.h"
#include "cmSystemTools.h"


cmTest::cmTest() 
{
}

cmTest::~cmTest()
{
}

void cmTest::SetName(const char* name)
{
  if ( !name )
    {
    name = "";
    }
  this->Name = name;
}

void cmTest::SetCommand(const char* command)
{
  if ( !command )
    {
    command = "";
    }
  this->Command = command;
  cmSystemTools::ConvertToUnixSlashes(this->Command);
}

void cmTest::SetArguments(const std::vector<cmStdString>& args)
{
  this->Args = args;
}

const char *cmTest::GetProperty(const char* prop) const
{
  std::map<cmStdString,cmStdString>::const_iterator i = 
    this->Properties.find(prop);
  if (i != this->Properties.end())
    {
    return i->second.c_str();
    }
  return 0;
}

bool cmTest::GetPropertyAsBool(const char* prop) const
{
  std::map<cmStdString,cmStdString>::const_iterator i = 
    this->Properties.find(prop);
  if (i != this->Properties.end())
    {
    return cmSystemTools::IsOn(i->second.c_str());
    }
  return false;
}

void cmTest::SetProperty(const char* prop, const char* value)
{
  if (!prop)
    {
    return;
    }
  if (!value)
    {
    value = "NOTFOUND";
    }
  this->Properties[prop] = value;
}

?h=hdf5-1_14_1&id=bbc1264ea67f93eabe53c7b555933072231e108d'>Follow longstanding execv convention for compatibility with NetBSD.David Young2019-10-031-1/+7 * | Make wrappers, tests and tools use H5Treclaim() instead of H5Dvlen_reclaim()Jerome Soumagne2019-10-0813-185/+185 * | Add new H5R API that abstracts object, region and attribute reference typesJerome Soumagne2019-10-087-581/+5186 * | Fixed a bug (HDFFV-10899) where the behavior of the deprecatedDana Robinson2019-10-041-2/+7 |/ * Merge pull request #1959 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/itera...Vailin Choi2019-10-011-6/+5 |\ | * Fixed the iteration error in test_versionbounds() in test/dtypes.c.Vailin Choi2019-09-301-6/+5 * | Move function-scope macro definition to file-scope.Jacob Smith2019-09-301-5/+6 * | Refactor external file addition loop to static function.Jacob Smith2019-09-291-18/+57 * | fix declaring variable in for statementJacob Smith2019-09-281-9/+10 |/ * Number of arguments requires H5Dopen2.Larry Knox2019-09-281-1/+1 * Merge pull request #1934 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/HDFFV...Vailin Choi2019-09-271-0/+162 |\ | * (1) Address the feedback from the PR reviewVailin Choi2019-09-261-11/+11 | * Merge pull request #21 in ~VCHOI/my_third_fork from develop to bugfix/HDFFV-1...Vailin Choi2019-09-2610-231/+420 | |\ | * | Fix for HDFFV-10585 investigate hyperslab slowness:Vailin Choi2019-09-191-0/+162 * | | Converted H5O MD cache cork calls to use the VOL.Dana Robinson2019-09-271-5/+7 | |/ |/| * | add missing version to listAllen Byrne2019-09-261-2/+2 * | Add new versioned filename to listAllen Byrne2019-09-261-13/+14 * | Update versioning to next major versionAllen Byrne2019-09-252-1/+3 * | Merge Binh-Minh's changes for code improvement to chunk_info.c (PR #1942)Larry Knox2019-09-251-20/+25 * | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~jake.smith/hdf5...Jacob Smith2019-09-23