Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIterator
Thanks @dexX7. Zcash: Rest of this commit was cherry-picked in zcash/zcash#2598.
This commit is contained in:
parent
8e58eddab1
commit
480f1bf43e
|
@ -156,10 +156,10 @@ if(ENABLE_WALLET == 1 and ENABLE_UTILS == 1 and ENABLE_BITCOIND == 1):
|
||||||
rpcTestDir = buildDir + '/qa/rpc-tests/'
|
rpcTestDir = buildDir + '/qa/rpc-tests/'
|
||||||
#Run Tests
|
#Run Tests
|
||||||
for i in range(len(testScripts)):
|
for i in range(len(testScripts)):
|
||||||
if (len(opts) == 0 or (len(opts) == 1 and "-win" in opts ) or '-extended' in opts
|
if (len(opts) == 0 or (len(opts) == 1 and "-win" in opts ) or '-extended' in opts
|
||||||
or testScripts[i] in opts or re.sub(".py$", "", testScripts[i]) in opts ):
|
or testScripts[i] in opts or re.sub(".py$", "", testScripts[i]) in opts ):
|
||||||
print "Running testscript " + testScripts[i] + "..."
|
print "Running testscript " + testScripts[i] + "..."
|
||||||
subprocess.call(rpcTestDir + testScripts[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
|
subprocess.call(rpcTestDir + testScripts[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
|
||||||
#exit if help is called so we print just one set of instructions
|
#exit if help is called so we print just one set of instructions
|
||||||
p = re.compile(" -h| --help")
|
p = re.compile(" -h| --help")
|
||||||
if p.match(passOn):
|
if p.match(passOn):
|
||||||
|
@ -167,9 +167,9 @@ if(ENABLE_WALLET == 1 and ENABLE_UTILS == 1 and ENABLE_BITCOIND == 1):
|
||||||
|
|
||||||
#Run Extended Tests
|
#Run Extended Tests
|
||||||
for i in range(len(testScriptsExt)):
|
for i in range(len(testScriptsExt)):
|
||||||
if ('-extended' in opts or testScriptsExt[i] in opts
|
if ('-extended' in opts or testScriptsExt[i] in opts
|
||||||
or re.sub(".py$", "", testScriptsExt[i]) in opts):
|
or re.sub(".py$", "", testScriptsExt[i]) in opts):
|
||||||
print "Running 2nd level testscript " + testScriptsExt[i] + "..."
|
print "Running 2nd level testscript " + testScriptsExt[i] + "..."
|
||||||
subprocess.call(rpcTestDir + testScriptsExt[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
|
subprocess.call(rpcTestDir + testScriptsExt[i] + " --srcdir " + buildDir + '/src ' + passOn,shell=True)
|
||||||
else:
|
else:
|
||||||
print "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"
|
print "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"
|
||||||
|
|
Loading…
Reference in New Issue