Add copyright notice to scipts and configuration files

There are numerous scripts and configuration files defined in the CI setup
and elsewhere that were missing the copyright statement. Add more types
of files to check in the CopyrightStatement test, and update the files
with the appropriate statement.
This commit is contained in:
Kenneth Moreland 2023-07-24 13:54:11 -06:00
parent 5dfdd5f8f1
commit 898115a410
49 changed files with 580 additions and 18 deletions

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
.docker_image: &docker_image .docker_image: &docker_image
variables: variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/gitlab-kitware-sciviz-ci GIT_CLONE_PATH: $CI_BUILDS_DIR/gitlab-kitware-sciviz-ci

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Ad-hoc build that runs in the ECP Hardware, concretely in OLCF Ascent. # Ad-hoc build that runs in the ECP Hardware, concretely in OLCF Ascent.
.ascent_gcc_cuda: .ascent_gcc_cuda:
variables: variables:

@ -1,3 +1,14 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Build on centos7 with CUDA and test on rhel8 and centos7 # Build on centos7 with CUDA and test on rhel8 and centos7
# gcc 7.3.1 # gcc 7.3.1

@ -1,3 +1,14 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Build on centos8 with serial and test on centos8 # Build on centos8 with serial and test on centos8
# Uses gcc 8.2.1 # Uses gcc 8.2.1

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
$erroractionpreference = "stop" $erroractionpreference = "stop"
$version = "3.21.1" $version = "3.21.1"

@ -1,6 +1,18 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# shellcheck disable=SC2079 # shellcheck disable=SC2079
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
set -ex set -ex
version="${1:-3.23.4}" version="${1:-3.23.4}"

@ -1,6 +1,18 @@
#!/bin/bash -e #!/bin/bash -e
# shellcheck disable=SC2155 # shellcheck disable=SC2155
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
git rev-parse @ > ./ORIGINAL_COMMIT_SHA git rev-parse @ > ./ORIGINAL_COMMIT_SHA
git add ./ORIGINAL_COMMIT_SHA git add ./ORIGINAL_COMMIT_SHA

@ -1,5 +1,17 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
import json import json
import ssl import ssl
import sys import sys

@ -1,3 +1,15 @@
#!/bin/bash -ex #!/bin/bash -ex
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
git -c http.sslVerify=false push --no-verify -f "$1" "HEAD:refs/heads/${2}" git -c http.sslVerify=false push --no-verify -f "$1" "HEAD:refs/heads/${2}"

@ -1,3 +1,15 @@
#!/bin/bash -ex #!/bin/bash -ex
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
git -c http.sslVerify=false push --delete "$1" "$2" git -c http.sslVerify=false push --delete "$1" "$2"

@ -1,6 +1,18 @@
#!/bin/bash -e #!/bin/bash -e
# shellcheck disable=SC2155 # shellcheck disable=SC2155
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
declare -r POLL_INTERVAL_SECONDS="10" declare -r POLL_INTERVAL_SECONDS="10"
function fetch_commit_status() function fetch_commit_status()

@ -1,5 +1,17 @@
#!/bin/bash #!/bin/bash
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
set -xe set -xe
readonly version="v1.6.1" readonly version="v1.6.1"

@ -1,4 +1,17 @@
#!/usr/bin/env bash #!/usr/bin/env bash
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
set -x set -x
WORKDIR="$1" WORKDIR="$1"

@ -1,5 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
set -e set -e
readonly version="nvcc_v4" readonly version="nvcc_v4"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
$erroractionpreference = "stop" $erroractionpreference = "stop"
cmd /c "`"$env:VCVARSALL`" $VCVARSPLATFORM -vcvars_ver=$VCVARSVERSION & set" | cmd /c "`"$env:VCVARSALL`" $VCVARSPLATFORM -vcvars_ver=$VCVARSVERSION & set" |

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Ad-hoc build that runs in the ECP Hardware, concretely in OLCF Spock. # Ad-hoc build that runs in the ECP Hardware, concretely in OLCF Spock.
.crusher_gcc_hip: .crusher_gcc_hip:
variables: variables:

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM nvidia/cuda:10.2-devel-centos7 FROM nvidia/cuda:10.2-devel-centos7
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM centos:8 FROM centos:8
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM opensuse/tumbleweed FROM opensuse/tumbleweed
LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>" LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM nvidia/cuda:10.2-devel-ubi8 FROM nvidia/cuda:10.2-devel-ubi8
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM ubuntu:16.04 FROM ubuntu:16.04
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM nvidia/cuda:9.2-devel-ubuntu16.04 FROM nvidia/cuda:9.2-devel-ubuntu16.04
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM ubuntu:18.04 FROM ubuntu:18.04
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM nvidia/cuda:11.7.1-devel-ubuntu18.04 FROM nvidia/cuda:11.7.1-devel-ubuntu18.04
LABEL maintainer "Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>" LABEL maintainer "Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM nvidia/cuda:11.6.1-devel-ubuntu18.04 FROM nvidia/cuda:11.6.1-devel-ubuntu18.04
LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>" LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM ubuntu:20.04 FROM ubuntu:20.04
LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>" LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM ubuntu:20.04 FROM ubuntu:20.04
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>" LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM rocm/dev-ubuntu-20.04 FROM rocm/dev-ubuntu-20.04
LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>" LABEL maintainer "Vicente Adolfo Bolea Sanchez<vicente.bolea@kitware.com>"

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
FROM ubuntu:20.04 FROM ubuntu:20.04
LABEL maintainer "Sujin Philip<sujin.philip@kitware.com>" LABEL maintainer "Sujin Philip<sujin.philip@kitware.com>"

@ -1,5 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
set -e set -e
set -x set -x

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
.doxygen_submit: &doxygen_submit .doxygen_submit: &doxygen_submit
stage: build stage: build
tags: tags:

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Ad-hoc build that runs in macos machines # Ad-hoc build that runs in macos machines
build:macos_xcode13: build:macos_xcode13:
extends: extends:

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
build:opensuse_gcc13: build:opensuse_gcc13:
tags: tags:
- build - build

@ -1,3 +1,14 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Build on rhel8 with serial and test on rhel8 # Build on rhel8 with serial and test on rhel8
# Uses gcc 8.2.1 # Uses gcc 8.2.1

@ -1,3 +1,14 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Build on ubuntu1604 with CUDA 9.2 and test on ubuntu1604 and ubuntu1804 # Build on ubuntu1604 with CUDA 9.2 and test on ubuntu1604 and ubuntu1804
# Uses gcc 5, and build for pascal as CUDA 9.2 doesn't support turing # Uses gcc 5, and build for pascal as CUDA 9.2 doesn't support turing

@ -1,3 +1,14 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
# Build on ubuntu1804 with TBB and OpenMP and test on ubuntu1804 # Build on ubuntu1804 with TBB and OpenMP and test on ubuntu1804
# Uses gcc 9 # Uses gcc 9

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
build:ubuntu2004_kokkos: build:ubuntu2004_kokkos:
tags: tags:
- build - build

@ -1,3 +1,15 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
.windows_build: .windows_build:
variables: variables:
# Note that shell runners only support runners with a single # Note that shell runners only support runners with a single

@ -22,8 +22,15 @@ set(FILES_TO_CHECK
*.cmake *.cmake
*.h *.h
*.h.in *.h.in
*.hxx
*.cxx *.cxx
*.cu *.cu
*.py
*.sh
*.ps1
Dockerfile
*.yaml
*.yml
) )
set(EXCEPTIONS set(EXCEPTIONS
@ -150,21 +157,19 @@ endfunction(missing_copyright)
# Get an appropriate beginning line comment for the given filename. # Get an appropriate beginning line comment for the given filename.
function(get_comment_prefix var filename) function(get_comment_prefix var filename)
get_filename_component(base "${filename}" NAME_WE) get_filename_component(name "${filename}" NAME)
get_filename_component(extension "${filename}" EXT) if(name MATCHES "\\.(cmake|py|sh|ps1|yaml|yml)$"
if (extension STREQUAL ".cmake") OR name STREQUAL "CMakeLists.txt"
OR name STREQUAL "Dockerfile"
)
set(${var} "##" PARENT_SCOPE) set(${var} "##" PARENT_SCOPE)
elseif (base STREQUAL "CMakeLists" AND extension STREQUAL ".txt") elseif (name MATCHES "\\.(h|h\\.in|hxx|cxx|cu)$")
set(${var} "##" PARENT_SCOPE) set(${var} "//" PARENT_SCOPE)
elseif (extension STREQUAL ".txt") elseif (name MATCHES "\\.txt$")
set(${var} "" PARENT_SCOPE) set(${var} "" PARENT_SCOPE)
elseif (extension STREQUAL ".h" OR extension STREQUAL ".h.in" OR extension STREQUAL ".cxx" OR extension STREQUAL ".cu") else ()
set(${var} "//" PARENT_SCOPE) message(FATAL_ERROR "Could not identify file type of `${name}`.")
elseif (extension STREQUAL ".worklet") endif ()
set(${var} "//" PARENT_SCOPE)
else (extension STREQUAL ".cmake")
message(SEND_ERROR "Could not identify file type of ${filename}.")
endif (extension STREQUAL ".cmake")
endfunction(get_comment_prefix) endfunction(get_comment_prefix)
# Check the given file for the appropriate copyright statement. # Check the given file for the appropriate copyright statement.

@ -465,11 +465,14 @@ if (VTKm_ENABLE_TESTING)
add_test(NAME SystemInformation add_test(NAME SystemInformation
COMMAND ${CMAKE_COMMAND} "-DVTKm_SOURCE_DIR=${VTKm_SOURCE_DIR}" "-DVTKm_BINARY_DIR=${VTKm_BINARY_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/testing/VTKmSystemInformation.cmake" COMMAND ${CMAKE_COMMAND} "-DVTKm_SOURCE_DIR=${VTKm_SOURCE_DIR}" "-DVTKm_BINARY_DIR=${VTKm_BINARY_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/testing/VTKmSystemInformation.cmake"
) )
add_test(NAME CopyrightStatement if(NOT WIN32)
COMMAND ${CMAKE_COMMAND} "-DVTKm_SOURCE_DIR=${VTKm_SOURCE_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/VTKmCheckCopyright.cmake" # Test takes too long on windows
) add_test(NAME CopyrightStatement
# increase timeout since on some machines CopyrightStatement test takes a long time. COMMAND ${CMAKE_COMMAND} "-DVTKm_SOURCE_DIR=${VTKm_SOURCE_DIR}" -P "${VTKm_SOURCE_DIR}/CMake/VTKmCheckCopyright.cmake"
set_tests_properties(CopyrightStatement PROPERTIES TIMEOUT 300) )
# increase timeout since on some machines CopyrightStatement test takes a long time.
set_tests_properties(CopyrightStatement PROPERTIES TIMEOUT 300)
endif()
# Setup the infrastructure to allow VTK-m to run tests against a temporary # Setup the infrastructure to allow VTK-m to run tests against a temporary
# installed version of VTK-m. # installed version of VTK-m.

@ -52,6 +52,7 @@ CMake/FindTBB.cmake
Utilities Utilities
vtkm/cont/tbb/internal/parallel_sort.h vtkm/cont/tbb/internal/parallel_sort.h
vtkm/cont/tbb/internal/parallel_radix_sort_tbb.h vtkm/cont/tbb/internal/parallel_radix_sort_tbb.h
vtkm/cont/tbb/internal/ParallelSortTBB.hxx
vtkm/cont/tbb/internal/kxsort.h vtkm/cont/tbb/internal/kxsort.h
vtkm/thirdparty vtkm/thirdparty
version.txt version.txt

@ -1,4 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out} GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out}
RED="" RED=""
GREEN="" GREEN=""

@ -1,4 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out} GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out}
RED="" RED=""
GREEN="" GREEN=""

@ -1,4 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out} GTCT_DIR=${GTCT_DIR:-${HOME}/devel/parallel-peak-pruning/ContourTree/SweepAndMergeSerial/out}
RED="" RED=""
GREEN="" GREEN=""

@ -1,4 +1,17 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
import numpy as np import numpy as np
import math import math
import os import os

@ -1,4 +1,17 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
import numpy as np import numpy as np
import math import math
import os import os

@ -1,5 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
mkdir -p out mkdir -p out
DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D} DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D}

@ -1,5 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
mkdir -p out mkdir -p out
DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D} DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D}

@ -1,5 +1,17 @@
#!/bin/sh #!/bin/sh
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt 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 notice for more information.
##
##=============================================================================
mkdir -p out mkdir -p out
DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D} DATA_DIR=${DATA_DIR:-${HOME}/devel/parallel-peak-pruning/Data/2D}