Browse Source

Merge pull request #3891 from laanwj/2014_03_tests_license_mit

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

4
qa/pull-tester/build-tests.sh.in

@ -1,4 +1,8 @@
#!/bin/bash #!/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 # Param1: The prefix to mingw staging
# Param2: Path to java comparison tool # Param2: Path to java comparison tool
# Param3: Number of make jobs. Defaults to 1. # Param3: Number of make jobs. Defaults to 1.

4
qa/pull-tester/pull-tester.py

@ -1,4 +1,8 @@
#!/usr/bin/python #!/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 import json
from urllib import urlopen from urllib import urlopen
import requests import requests

4
qa/pull-tester/pull-tester.sh

@ -1,4 +1,8 @@
#!/bin/sh #!/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. # Helper script for pull-tester.
#Param 1: path to bitcoin srcroot #Param 1: path to bitcoin srcroot
#Param ...: arguments for build-test.sh #Param ...: arguments for build-test.sh

4
qa/pull-tester/run-bitcoind-for-test.sh.in

@ -1,4 +1,8 @@
#!/bin/bash #!/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" DATADIR="@abs_top_builddir@/.bitcoin"
rm -rf "$DATADIR" rm -rf "$DATADIR"
mkdir -p "$DATADIR"/regtest mkdir -p "$DATADIR"/regtest

3
qa/rpc-tests/conflictedbalance.sh

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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 # Test marking of spent outputs

3
qa/rpc-tests/listtransactions.py

@ -1,4 +1,7 @@
#!/usr/bin/env python #!/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 # Exercise the listtransactions API

3
qa/rpc-tests/send.sh

@ -1,4 +1,7 @@
#!/bin/bash #!/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 TIMEOUT=10
SIGNAL=HUP SIGNAL=HUP
PIDFILE=.send.pid PIDFILE=.send.pid

3
qa/rpc-tests/skeleton.py

@ -1,4 +1,7 @@
#!/usr/bin/env python #!/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 # Skeleton for python-based regression tests using
# JSON-RPC # JSON-RPC

3
qa/rpc-tests/txnmall.sh

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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 # Test proper accounting with malleable transactions

3
qa/rpc-tests/util.py

@ -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 # Helpful routines for regression testing
# #

3
qa/rpc-tests/util.sh

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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 # Functions used by more than one test

3
qa/rpc-tests/wallet.sh

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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 # Test block generation and basic wallet sending

3
qa/rpc-tests/walletbackup.sh

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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 # Test wallet backup / dump / restore functionality

4
src/test/Checkpoints_tests.cpp

@ -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 // Unit tests for block-chain checkpoints
// //

4
src/test/DoS_tests.cpp

@ -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 // Unit tests for denial-of-service detection/prevention code
// //

4
src/test/accounting_tests.cpp

@ -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 "wallet.h"
#include "walletdb.h" #include "walletdb.h"

4
src/test/alert_tests.cpp

@ -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 // Unit tests for alert system
// //

4
src/test/allocator_tests.cpp

@ -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" #include "util.h"

4
src/test/base32_tests.cpp

@ -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" #include "util.h"

4
src/test/base58_tests.cpp

@ -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 "base58.h"
#include "data/base58_encode_decode.json.h" #include "data/base58_encode_decode.json.h"

4
src/test/base64_tests.cpp

@ -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" #include "util.h"

4
src/test/bignum_tests.cpp

@ -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 "bignum.h"
#include <limits> #include <limits>

4
src/test/bip32_tests.cpp

@ -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 <boost/test/unit_test.hpp>
#include "base58.h" #include "base58.h"

4
src/test/bloom_tests.cpp

@ -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 "bloom.h"
#include "base58.h" #include "base58.h"

4
src/test/canonical_tests.cpp

@ -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 // Unit tests for canonical signatures
// //

4
src/test/checkblock_tests.cpp

@ -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() // Unit tests for block.CheckBlock()
// //

4
src/test/compress_tests.cpp

@ -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 "main.h"
#include "util.h" #include "util.h"

14
src/test/data/README.md

@ -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.

4
src/test/getarg_tests.cpp

@ -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" #include "util.h"

4
src/test/hash_tests.cpp

@ -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 "hash.h"
#include "util.h" #include "util.h"

4
src/test/hmac_tests.cpp

@ -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 "hash.h"
#include "util.h" #include "util.h"

4
src/test/key_tests.cpp

@ -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 "key.h"
#include "base58.h" #include "base58.h"

4
src/test/main_tests.cpp

@ -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 "core.h"
#include "main.h" #include "main.h"

4
src/test/miner_tests.cpp

@ -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 "main.h"
#include "miner.h" #include "miner.h"

4
src/test/mruset_tests.cpp

@ -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 "mruset.h"
#include "util.h" #include "util.h"

4
src/test/multisig_tests.cpp

@ -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 "key.h"
#include "keystore.h" #include "keystore.h"

4
src/test/netbase_tests.cpp

@ -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 "netbase.h"
#include <string> #include <string>

4
src/test/pmt_tests.cpp

@ -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 "main.h"
#include "serialize.h" #include "serialize.h"

4
src/test/rpc_tests.cpp

@ -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 "rpcserver.h"
#include "rpcclient.h" #include "rpcclient.h"

4
src/test/rpc_wallet_tests.cpp

@ -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 "rpcserver.h"
#include "rpcclient.h" #include "rpcclient.h"

4
src/test/script_P2SH_tests.cpp

@ -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 "script.h"
#include "key.h" #include "key.h"

4
src/test/script_tests.cpp

@ -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 "script.h"
#include "data/script_invalid.json.h" #include "data/script_invalid.json.h"

4
src/test/serialize_tests.cpp

@ -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 "serialize.h"
#include <stdint.h> #include <stdint.h>

4
src/test/sighash_tests.cpp

@ -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 <boost/test/unit_test.hpp>
#include "main.h" #include "main.h"

4
src/test/sigopcount_tests.cpp

@ -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 "key.h"
#include "script.h" #include "script.h"

4
src/test/test_bitcoin.cpp

@ -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 #define BOOST_TEST_MODULE Bitcoin Test Suite

4
src/test/transaction_tests.cpp

@ -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_invalid.json.h"
#include "data/tx_valid.json.h" #include "data/tx_valid.json.h"

4
src/test/uint256_tests.cpp

@ -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 <boost/test/unit_test.hpp>
#include <stdint.h> #include <stdint.h>
#include <sstream> #include <sstream>

4
src/test/util_tests.cpp

@ -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 "util.h"
#include "sync.h" #include "sync.h"

4
src/test/wallet_tests.cpp

@ -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 "wallet.h"
#include <set> #include <set>

Loading…
Cancel
Save