mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-24 22:36:10 +01:00
Add nice license headers to files in examples/ and fuzzing/
Related to #2730
This commit is contained in:
parent
5bba3e4038
commit
85eb4652b4
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 010-TestCase.cpp
|
// 010-TestCase.cpp
|
||||||
// And write tests in the same file:
|
// And write tests in the same file:
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 020-TestCase-1.cpp
|
// 020-TestCase-1.cpp
|
||||||
|
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 020-TestCase-2.cpp
|
// 020-TestCase-2.cpp
|
||||||
|
|
||||||
// main() provided by Catch in file 020-TestCase-1.cpp.
|
// main() provided by Catch in file 020-TestCase-1.cpp.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 030-Asn-Require-Check.cpp
|
// 030-Asn-Require-Check.cpp
|
||||||
|
|
||||||
// Catch has two natural expression assertion macro's:
|
// Catch has two natural expression assertion macro's:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 100-Fix-Section.cpp
|
// 100-Fix-Section.cpp
|
||||||
|
|
||||||
// Catch has two ways to express fixtures:
|
// Catch has two ways to express fixtures:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 110-Fix-ClassFixture.cpp
|
// 110-Fix-ClassFixture.cpp
|
||||||
|
|
||||||
// Catch has two ways to express fixtures:
|
// Catch has two ways to express fixtures:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 120-Bdd-ScenarioGivenWhenThen.cpp
|
// 120-Bdd-ScenarioGivenWhenThen.cpp
|
||||||
|
|
||||||
// main() provided by linkage with Catch2WithMain
|
// main() provided by linkage with Catch2WithMain
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 210-Evt-EventListeners.cpp
|
// 210-Evt-EventListeners.cpp
|
||||||
|
|
||||||
// Contents:
|
// Contents:
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 231-Cfg-OutputStreams.cpp
|
// 231-Cfg-OutputStreams.cpp
|
||||||
// Show how to replace the streams with a simple custom made streambuf.
|
// Show how to replace the streams with a simple custom made streambuf.
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 300-Gen-OwnGenerator.cpp
|
// 300-Gen-OwnGenerator.cpp
|
||||||
// Shows how to define a custom generator.
|
// Shows how to define a custom generator.
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 301-Gen-MapTypeConversion.cpp
|
// 301-Gen-MapTypeConversion.cpp
|
||||||
// Shows how to use map to modify generator's return type.
|
// Shows how to use map to modify generator's return type.
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 302-Gen-Table.cpp
|
// 302-Gen-Table.cpp
|
||||||
// Shows how to use table to run a test many times with different inputs. Lifted from examples on
|
// Shows how to use table to run a test many times with different inputs. Lifted from examples on
|
||||||
// issue #850.
|
// issue #850.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 310-Gen-VariablesInGenerator.cpp
|
// 310-Gen-VariablesInGenerator.cpp
|
||||||
// Shows how to use variables when creating generators.
|
// Shows how to use variables when creating generators.
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
// 311-Gen-CustomCapture.cpp
|
// 311-Gen-CustomCapture.cpp
|
||||||
// Shows how to provide custom capture list to the generator expression
|
// Shows how to provide custom capture list to the generator expression
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
#include "NullOStream.h"
|
#include "NullOStream.h"
|
||||||
|
|
||||||
void NullOStream::avoidOutOfLineVirtualCompilerWarning()
|
void NullOStream::avoidOutOfLineVirtualCompilerWarning()
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
//License: Boost 1.0
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
//By Paul Dreik 2020
|
//By Paul Dreik 2020
|
||||||
|
|
||||||
#include <catch2/internal/catch_test_spec_parser.hpp>
|
#include <catch2/internal/catch_test_spec_parser.hpp>
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
//License: Boost 1.0
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
//By Paul Dreik 2020
|
//By Paul Dreik 2020
|
||||||
|
|
||||||
#include <catch2/internal/catch_xmlwriter.hpp>
|
#include <catch2/internal/catch_xmlwriter.hpp>
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
//License: Boost 1.0
|
|
||||||
|
// Copyright Catch2 Authors
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
//By Paul Dreik 2020
|
//By Paul Dreik 2020
|
||||||
|
|
||||||
#include <catch2/internal/catch_textflow.hpp>
|
#include <catch2/internal/catch_textflow.hpp>
|
||||||
|
@ -33,7 +33,8 @@ def check_licences_in_path(path: str) -> int:
|
|||||||
|
|
||||||
def check_licences():
|
def check_licences():
|
||||||
failed = 0
|
failed = 0
|
||||||
roots = ['src/catch2', 'tests']
|
# Add 'extras' after the amalgamted files are regenerated with the new script (past 3.4.0)
|
||||||
|
roots = ['src/catch2', 'tests', 'examples', 'fuzzing']
|
||||||
for root in roots:
|
for root in roots:
|
||||||
failed += check_licences_in_path(root)
|
failed += check_licences_in_path(root)
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ copyright_lines = [
|
|||||||
# The header of the amalgamated file: copyright information + explanation
|
# The header of the amalgamated file: copyright information + explanation
|
||||||
# what this file is.
|
# what this file is.
|
||||||
file_header = '''\
|
file_header = '''\
|
||||||
|
|
||||||
// Copyright Catch2 Authors
|
// Copyright Catch2 Authors
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// (See accompanying file LICENSE.txt or copy at
|
// (See accompanying file LICENSE.txt or copy at
|
||||||
|
Loading…
Reference in New Issue
Block a user