From d67c92e83173acde833fdf7210852b1be555398f Mon Sep 17 00:00:00 2001 From: MMGen Date: Fri, 8 Feb 2019 12:10:35 +0000 Subject: [PATCH] py3port: test.py: add 'autosign_minimal' test --- test/test.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/test/test.py b/test/test.py index 7521fc87..26843740 100755 --- a/test/test.py +++ b/test/test.py @@ -1073,6 +1073,9 @@ cmd_group['ethdev'] = ( cmd_group['autosign'] = ( ('autosign', 'transaction autosigning (BTC,BCH,LTC,ETH,ETC)'), ) +cmd_group['autosign_minimal'] = ( + ('autosign_minimal', 'transaction autosigning (BTC,ETH,ETC)'), +) cmd_group['ref_alt'] = ( ('ref_addrfile_gen_eth', 'generate address file (ETH)'), @@ -1183,6 +1186,11 @@ for a,b in cmd_group['autosign']: cmd_list['autosign'].append(a) cmd_data[a] = (18,b,[[[],18]]) +cmd_data['info_autosign_minimal'] = 'autosign_minimal',[18] +for a,b in cmd_group['autosign_minimal']: + cmd_list['autosign_minimal'].append(a) + cmd_data[a] = (18,b,[[[],18]]) + cmd_data['info_ref_alt'] = 'altcoin reference files',[8] for a,b in cmd_group['ref_alt']: cmd_list['ref_alt'].append(a) @@ -2411,15 +2419,19 @@ class MMGenTestSuite(object): os.unlink(f1) cmp_or_die(hincog_offset,int(o)) - # tests everything except device detection, mount/unmount - def autosign(self,name): + def autosign_minimal(self,name): + return self.autosign(name, + coins=['btc','eth'], + txfiles=['btc','eth','erc20','etc'], + txcount=7) - opts = ['--mountpoint='+cfg['tmpdir'],'--coins=btc,bch,ltc,eth'] - txfiles = ('btc','bch','ltc','eth','erc20','etc') - txcount = 11 -# opts = ['--mountpoint='+cfg['tmpdir'],'--coins=btc,eth'] -# txfiles = ('btc','eth','erc20','etc') -# txcount = 7 + # tests everything except device detection, mount/unmount + def autosign( self,name, + coins=['btc','bch','ltc','eth'], + txfiles=['btc','bch','ltc','eth','erc20','etc'], + txcount=11): + + opts = ['--mountpoint='+cfg['tmpdir'],'--coins='+','.join(coins)] if skip_for_win(): return