2014-10-23 14:28:50 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2014-10-23 14:28:50 +00:00
|
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
#include <vtkm/exec/arg/BasicArg.h>
|
|
|
|
#include <vtkm/exec/arg/WorkIndex.h>
|
|
|
|
|
|
|
|
#include <vtkm/testing/Testing.h>
|
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace
|
|
|
|
{
|
2014-10-23 14:28:50 +00:00
|
|
|
|
|
|
|
void TestExecutionSignatures()
|
|
|
|
{
|
|
|
|
VTKM_IS_EXECUTION_SIGNATURE_TAG(vtkm::exec::arg::BasicArg<1>);
|
|
|
|
|
|
|
|
VTKM_TEST_ASSERT(
|
2017-05-18 14:29:41 +00:00
|
|
|
vtkm::exec::arg::internal::ExecutionSignatureTagCheck<vtkm::exec::arg::BasicArg<2>>::Valid,
|
|
|
|
"Bad check for BasicArg");
|
2014-10-23 14:28:50 +00:00
|
|
|
|
|
|
|
VTKM_TEST_ASSERT(
|
2017-05-18 14:29:41 +00:00
|
|
|
vtkm::exec::arg::internal::ExecutionSignatureTagCheck<vtkm::exec::arg::WorkIndex>::Valid,
|
|
|
|
"Bad check for WorkIndex");
|
2014-10-23 14:28:50 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
VTKM_TEST_ASSERT(!vtkm::exec::arg::internal::ExecutionSignatureTagCheck<vtkm::Id>::Valid,
|
|
|
|
"Bad check for vtkm::Id");
|
2014-10-23 14:28:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // anonymous namespace
|
|
|
|
|
2019-01-01 22:19:02 +00:00
|
|
|
int UnitTestExecutionSignatureTag(int argc, char* argv[])
|
2014-10-23 14:28:50 +00:00
|
|
|
{
|
2019-01-01 22:19:02 +00:00
|
|
|
return vtkm::testing::Testing::Run(TestExecutionSignatures, argc, argv);
|
2014-10-23 14:28:50 +00:00
|
|
|
}
|