aboutsummaryrefslogtreecommitdiff
path: root/src/test/bctest.py
Commit message (Collapse)AuthorAgeFilesLines
* Check stderr when testing bitcoin-txJohn Newbery2017-03-311-0/+12
| | | | | Github-Pull: #10130 Rebased-From: 21704f6334d2a4bd140c6e3260c4bfa3f3157bad
* [copyright] copyright header style uniformisle29832016-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Three categories of modifications: 1) 1 instance of 'The Bitcoin Core developers \n', 1 instance of 'the Bitcoin Core developers\n', 3 instances of 'Bitcoin Core Developers\n', and 12 instances of 'The Bitcoin developers\n' are made uniform with the 443 instances of 'The Bitcoin Core developers\n' 2) 3 instances of 'BitPay, Inc\.\n' are made uniform with the other 6 instances of 'BitPay Inc\.\n' 3) 4 instances where there was no '(c)' between the 'Copyright' and the year where it deviates from the style of the local directory.
* Clean up bctest.py and bitcoin-util-test.pyJohn Newbery2016-11-031-79/+96
| | | | | | | - remove newlines - change tabs for spaces, to align with convention in other py files - add comments - add 'Bitcoin Core Developers' copyright notice
* Add logging to bitcoin-util-test.pyjnewbery2016-11-021-22/+41
| | | | | | - Use the python standard logging library - Run all tests and report all failing test-cases (rather than stop after one test case fails) - If output is different from expected output, log a contextual diff.
* test: Add format-dependent comparison to bctestWladimir J. van der Laan2016-10-281-3/+27
| | | | | | | | | | | | | | | This splits the output comparison for `bitcoin-tx` into two steps: - First, check for data mismatch, parsing the data as json or hex depending on the extension of the output file - Then, check if the literal string matches For either of these cases give a different error. This prevents wild goose chases when e.g. a trailing space doesn't match exactly, and makes sure that both test output and examples are valid data of the purported format.
* add verbose mode to bitcoin-util-test.pyjnewbery2016-10-051-1/+5
|
* bitcoin-util-test.py should fail if the output file is emptyjnewbery2016-09-291-0/+3
|
* [test] bctest.py: Revert faa41eeMarcoFalke2016-04-141-2/+1
|
* [qa] py2: Unfiddle strings into bytes explicitlyMarcoFalke2016-04-101-1/+2
|
* build: python 3 compatibilityWladimir J. van der Laan2016-03-291-1/+1
| | | | | | | | | | | | | | | Ubuntu 16.04 "xenial xerus" does not come with Python 2.x by default. It is possible to install a python-2.7 package, but this has its own problem: no `python` or `python2` symlink (see #7717). This fixes the following scripts to work with python 3: - `make check` (bctest,py, bitcoin-util-test.py) - `make translate` (extract_strings_qt.py) - `make symbols-check` (symbol-check.py) - `make security-check` (security-check.py) Explicitly call the python commands using $(PYTHON) instead of relying on the interpreter line at the top of the scripts.
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* tests: fix python test-runner for windowsCory Fields2014-09-301-7/+8
| | | | | | | | | Windows needed a few fixups to get the tests running: 1. bitcoin-tx needs a file extension in Windows. Take this opportunity to add an env file, which pulls variables out of our build config. This can be extended as needed, for now it's very simple. 2. After #1, split the args out of the exec key in the test data. 3. Correct the line-endings from windows stdout
* Add bitcoin-tx testsJeff Garzik2014-08-191-3/+13
| | | | | Testing: delin, delout, locktime, and basic createrawtransaction-like functionality.
* bitcoin-tx: Accept input via stdin. Add input handling to tests.Jeff Garzik2014-08-191-2/+10
|
* Add "it works" test for bitcoin-txJeff Garzik2014-08-191-0/+35