Browse Source

Add licenses for tests and test data

- Add license headers to source files (years based on commit dates)
  in `src/test` as well as `qa`
- Add `README.md` to `src/test/data` specifying MIT license

Fixes #3848
tags/v0.15.1
Wladimir J. van der Laan 7 years ago
parent
commit
3fc6846181
50 changed files with 188 additions and 13 deletions
  1. 4
    0
      qa/pull-tester/build-tests.sh.in
  2. 4
    0
      qa/pull-tester/pull-tester.py
  3. 4
    0
      qa/pull-tester/pull-tester.sh
  4. 4
    0
      qa/pull-tester/run-bitcoind-for-test.sh.in
  5. 3
    0
      qa/rpc-tests/conflictedbalance.sh
  6. 3
    0
      qa/rpc-tests/listtransactions.py
  7. 3
    0
      qa/rpc-tests/send.sh
  8. 3
    0
      qa/rpc-tests/skeleton.py
  9. 3
    0
      qa/rpc-tests/txnmall.sh
  10. 3
    0
      qa/rpc-tests/util.py
  11. 3
    0
      qa/rpc-tests/util.sh
  12. 3
    0
      qa/rpc-tests/wallet.sh
  13. 3
    0
      qa/rpc-tests/walletbackup.sh
  14. 4
    0
      src/test/Checkpoints_tests.cpp
  15. 4
    0
      src/test/DoS_tests.cpp
  16. 3
    1
      src/test/accounting_tests.cpp
  17. 4
    0
      src/test/alert_tests.cpp
  18. 3
    1
      src/test/allocator_tests.cpp
  19. 3
    1
      src/test/base32_tests.cpp
  20. 4
    0
      src/test/base58_tests.cpp
  21. 3
    1
      src/test/base64_tests.cpp
  22. 4
    0
      src/test/bignum_tests.cpp
  23. 4
    0
      src/test/bip32_tests.cpp
  24. 4
    0
      src/test/bloom_tests.cpp
  25. 4
    0
      src/test/canonical_tests.cpp
  26. 4
    0
      src/test/checkblock_tests.cpp
  27. 3
    1
      src/test/compress_tests.cpp
  28. 14
    0
      src/test/data/README.md
  29. 3
    1
      src/test/getarg_tests.cpp
  30. 3
    1
      src/test/hash_tests.cpp
  31. 3
    1
      src/test/hmac_tests.cpp
  32. 4
    0
      src/test/key_tests.cpp
  33. 4
    0
      src/test/main_tests.cpp
  34. 3
    1
      src/test/miner_tests.cpp
  35. 4
    0
      src/test/mruset_tests.cpp
  36. 3
    1
      src/test/multisig_tests.cpp
  37. 4
    0
      src/test/netbase_tests.cpp
  38. 3
    1
      src/test/pmt_tests.cpp
  39. 4
    0
      src/test/rpc_tests.cpp
  40. 4
    0
      src/test/rpc_wallet_tests.cpp
  41. 4
    0
      src/test/script_P2SH_tests.cpp
  42. 4
    0
      src/test/script_tests.cpp
  43. 4
    0
      src/test/serialize_tests.cpp
  44. 4
    0
      src/test/sighash_tests.cpp
  45. 3
    1
      src/test/sigopcount_tests.cpp
  46. 4
    0
      src/test/test_bitcoin.cpp
  47. 3
    1
      src/test/transaction_tests.cpp
  48. 4
    0
      src/test/uint256_tests.cpp
  49. 4
    0
      src/test/util_tests.cpp
  50. 4
    0
      src/test/wallet_tests.cpp

+ 4
- 0
qa/pull-tester/build-tests.sh.in View File

@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Param1: The prefix to mingw staging
# Param2: Path to java comparison tool
# Param3: Number of make jobs. Defaults to 1.

+ 4
- 0
qa/pull-tester/pull-tester.py View File

@@ -1,4 +1,8 @@
#!/usr/bin/python
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
import json
from urllib import urlopen
import requests

+ 4
- 0
qa/pull-tester/pull-tester.sh View File

@@ -1,4 +1,8 @@
#!/bin/sh
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helper script for pull-tester.
#Param 1: path to bitcoin srcroot
#Param ...: arguments for build-test.sh

+ 4
- 0
qa/pull-tester/run-bitcoind-for-test.sh.in View File

@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
DATADIR="@abs_top_builddir@/.bitcoin"
rm -rf "$DATADIR"
mkdir -p "$DATADIR"/regtest

+ 3
- 0
qa/rpc-tests/conflictedbalance.sh View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Test marking of spent outputs


+ 3
- 0
qa/rpc-tests/listtransactions.py View File

@@ -1,4 +1,7 @@
#!/usr/bin/env python
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Exercise the listtransactions API


+ 3
- 0
qa/rpc-tests/send.sh View File

@@ -1,4 +1,7 @@
#!/bin/bash
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
TIMEOUT=10
SIGNAL=HUP
PIDFILE=.send.pid

+ 3
- 0
qa/rpc-tests/skeleton.py View File

@@ -1,4 +1,7 @@
#!/usr/bin/env python
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Skeleton for python-based regression tests using
# JSON-RPC

+ 3
- 0
qa/rpc-tests/txnmall.sh View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Test proper accounting with malleable transactions


+ 3
- 0
qa/rpc-tests/util.py View File

@@ -1,3 +1,6 @@
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression testing
#

+ 3
- 0
qa/rpc-tests/util.sh View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Functions used by more than one test


+ 3
- 0
qa/rpc-tests/wallet.sh View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) 2013-2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Test block generation and basic wallet sending


+ 3
- 0
qa/rpc-tests/walletbackup.sh View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# Test wallet backup / dump / restore functionality


+ 4
- 0
src/test/Checkpoints_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

//
// Unit tests for block-chain checkpoints
//

+ 4
- 0
src/test/DoS_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

//
// Unit tests for denial-of-service detection/prevention code
//

+ 3
- 1
src/test/accounting_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "wallet.h"
#include "walletdb.h"

+ 4
- 0
src/test/alert_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

//
// Unit tests for alert system
//

+ 3
- 1
src/test/allocator_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "util.h"


+ 3
- 1
src/test/base32_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "util.h"


+ 4
- 0
src/test/base58_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "base58.h"

#include "data/base58_encode_decode.json.h"

+ 3
- 1
src/test/base64_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "util.h"


+ 4
- 0
src/test/bignum_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "bignum.h"

#include <limits>

+ 4
- 0
src/test/bip32_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/test/unit_test.hpp>

#include "base58.h"

+ 4
- 0
src/test/bloom_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "bloom.h"

#include "base58.h"

+ 4
- 0
src/test/canonical_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

//
// Unit tests for canonical signatures
//

+ 4
- 0
src/test/checkblock_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2013-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

//
// Unit tests for block.CheckBlock()
//

+ 3
- 1
src/test/compress_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "util.h"

+ 14
- 0
src/test/data/README.md View File

@@ -0,0 +1,14 @@
Description
------------

This directory contains data-driven tests for various aspects of Bitcoin.

License
--------

The data files in this directory are

Copyright (c) 2012-2014 The Bitcoin Core developers
Distributed under the MIT/X11 software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php.


+ 3
- 1
src/test/getarg_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "util.h"


+ 3
- 1
src/test/hash_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "hash.h"
#include "util.h"

+ 3
- 1
src/test/hmac_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "hash.h"
#include "util.h"

+ 4
- 0
src/test/key_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "key.h"

#include "base58.h"

+ 4
- 0
src/test/main_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "core.h"
#include "main.h"


+ 3
- 1
src/test/miner_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "miner.h"

+ 4
- 0
src/test/mruset_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "mruset.h"

#include "util.h"

+ 3
- 1
src/test/multisig_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "key.h"
#include "keystore.h"

+ 4
- 0
src/test/netbase_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "netbase.h"

#include <string>

+ 3
- 1
src/test/pmt_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "serialize.h"

+ 4
- 0
src/test/rpc_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "rpcserver.h"
#include "rpcclient.h"


+ 4
- 0
src/test/rpc_wallet_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2013-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "rpcserver.h"
#include "rpcclient.h"


+ 4
- 0
src/test/script_P2SH_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "script.h"

#include "key.h"

+ 4
- 0
src/test/script_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "script.h"

#include "data/script_invalid.json.h"

+ 4
- 0
src/test/serialize_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "serialize.h"

#include <stdint.h>

+ 4
- 0
src/test/sighash_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/test/unit_test.hpp>

#include "main.h"

+ 3
- 1
src/test/sigopcount_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "key.h"
#include "script.h"

+ 4
- 0
src/test/test_bitcoin.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#define BOOST_TEST_MODULE Bitcoin Test Suite



+ 3
- 1
src/test/transaction_tests.cpp View File

@@ -1,4 +1,6 @@

// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "data/tx_invalid.json.h"
#include "data/tx_valid.json.h"

+ 4
- 0
src/test/uint256_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/test/unit_test.hpp>
#include <stdint.h>
#include <sstream>

+ 4
- 0
src/test/util_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "util.h"

#include "sync.h"

+ 4
- 0
src/test/wallet_tests.cpp View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "wallet.h"

#include <set>

Loading…
Cancel
Save