6
6
import unittest
7
7
import subprocess
8
8
9
+ tool_directory = '../../tools/LTE/scripts'
10
+
9
11
class perf_goleveldb (unittest .TestCase ):
10
12
11
13
def test_FAB_3790_VaryNumParallelTxPerChain (self ):
@@ -20,9 +22,9 @@ def test_FAB_3790_VaryNumParallelTxPerChain(self):
20
22
'''
21
23
logfile = open ("output_VaryNumParallelTxPerChain.log" , "w" )
22
24
returncode = subprocess .call (
23
- "./runbenchmarks.sh varyNumParallelTxPerChain" ,
25
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyNumParallelTxPerChain" ,
24
26
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
25
- cwd = '../../tools/LTE/scripts' )
27
+ cwd = tool_directory )
26
28
logfile .close ()
27
29
self .assertEqual (returncode , 0 , msg = "VaryNumParallelTxPerChain "
28
30
"performance test failed. \n Please check the logfile "
@@ -40,9 +42,9 @@ def test_FAB_3795_VaryNumChains(self):
40
42
'''
41
43
logfile = open ("output_VaryNumChains.log" , "w" )
42
44
returncode = subprocess .call (
43
- "./runbenchmarks.sh varyNumChains" ,
45
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyNumChains" ,
44
46
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
45
- cwd = '../../tools/LTE/scripts' )
47
+ cwd = tool_directory )
46
48
logfile .close ()
47
49
self .assertEqual (returncode , 0 , msg = "VaryNumChains performance test"
48
50
" failed. \n Please check the logfile " + logfile .name + " for more "
@@ -60,9 +62,9 @@ def test_FAB_3798_VaryNumParallelTxWithSingleChain(self):
60
62
'''
61
63
logfile = open ("output_VaryNumParallelTxWithSingleChain.log" , "w" )
62
64
returncode = subprocess .call (
63
- "./runbenchmarks.sh varyNumParallelTxWithSingleChain" ,
65
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyNumParallelTxWithSingleChain" ,
64
66
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
65
- cwd = '../../tools/LTE/scripts' )
67
+ cwd = tool_directory )
66
68
logfile .close ()
67
69
self .assertEqual (returncode , 0 , msg = "VaryNumParallelTxWithSingleChain "
68
70
"performance test failed. \n Please check the logfile "
@@ -80,9 +82,9 @@ def test_FAB_3799_VaryNumChainsWithNoParallelism(self):
80
82
'''
81
83
logfile = open ("output_VaryNumChainsWithNoParallelism.log" , "w" )
82
84
returncode = subprocess .call (
83
- "./runbenchmarks.sh varyNumChainsWithNoParallelism" ,
85
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyNumChainsWithNoParallelism" ,
84
86
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
85
- cwd = '../../tools/LTE/scripts' )
87
+ cwd = tool_directory )
86
88
logfile .close ()
87
89
self .assertEqual (returncode , 0 , msg = "varyNumChainsWithNoParallelism "
88
90
"performance test failed. \n Please check the logfile "
@@ -99,9 +101,9 @@ def test_FAB_3801_VaryKVSize(self):
99
101
'''
100
102
logfile = open ("output_VaryKVSize.log" , "w" )
101
103
returncode = subprocess .call (
102
- "./runbenchmarks.sh varyKVSize" ,
104
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyKVSize" ,
103
105
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
104
- cwd = '../../tools/LTE/scripts' )
106
+ cwd = tool_directory )
105
107
logfile .close ()
106
108
self .assertEqual (returncode , 0 , msg = "varyKVSize performance test"
107
109
" failed. \n Please check the logfile " + logfile .name + " for more "
@@ -119,9 +121,9 @@ def test_FAB_3802_VaryBatchSize(self):
119
121
'''
120
122
logfile = open ("output_VaryBatchSize.log" , "w" )
121
123
returncode = subprocess .call (
122
- "./runbenchmarks.sh varyBatchSize" ,
124
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyBatchSize" ,
123
125
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
124
- cwd = '../../tools/LTE/scripts' )
126
+ cwd = tool_directory )
125
127
logfile .close ()
126
128
self .assertEqual (returncode , 0 , msg = "varyBatchSize performance test"
127
129
" failed. \n Please check the logfile " + logfile .name + " for more "
@@ -139,9 +141,9 @@ def test_FAB_3800_VaryNumKeysInEachTx(self):
139
141
'''
140
142
logfile = open ("output_VaryNumKeysInEachTx.log" , "w" )
141
143
returncode = subprocess .call (
142
- "./runbenchmarks.sh varyNumKeysInEachTx" ,
144
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyNumKeysInEachTx" ,
143
145
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
144
- cwd = '../../tools/LTE/scripts' )
146
+ cwd = tool_directory )
145
147
logfile .close ()
146
148
self .assertEqual (returncode , 0 , msg = "varyNumKeysInEachTx performance "
147
149
"test failed. \n Please check the logfile " + logfile .name
@@ -159,9 +161,9 @@ def test_FAB_3803_VaryNumTxs(self):
159
161
'''
160
162
logfile = open ("output_VaryNumTxs.log" , "w" )
161
163
returncode = subprocess .call (
162
- "./runbenchmarks.sh varyNumTxs" ,
164
+ "./runbenchmarks.sh -f parameters_daily_CI.sh varyNumTxs" ,
163
165
shell = True , stderr = subprocess .STDOUT , stdout = logfile ,
164
- cwd = '../../tools/LTE/scripts' )
166
+ cwd = tool_directory )
165
167
logfile .close ()
166
168
self .assertEqual (returncode , 0 , msg = "varyNumTxs performance test"
167
169
" failed. \n Please check the logfile " + logfile .name + " for more "
0 commit comments