@@ -95,9 +95,9 @@ public async Task SysbenchOLTPClientExecutorRunsTheExpectedWorkloadCommand()
9595
9696 string [ ] expectedCommands =
9797 {
98- $ "sudo chmod +x \" { this . scriptPath } /balancedServer .sh\" ",
99- $ "sudo chmod +x \" { this . scriptPath } /balancedClient .sh\" ",
100- $ "sudo chmod +x \" { this . scriptPath } /inMemory .sh\" ",
98+ $ "sudo chmod +x \" { this . scriptPath } /balanced-server .sh\" ",
99+ $ "sudo chmod +x \" { this . scriptPath } /balanced-client .sh\" ",
100+ $ "sudo chmod +x \" { this . scriptPath } /in-memory .sh\" ",
101101 "sudo ./autogen.sh" ,
102102 "sudo ./configure" ,
103103 "sudo make -j" ,
@@ -152,6 +152,7 @@ public async Task SysbenchOLTPClientExecutorUsesDefinedParameters()
152152
153153 this . mockFixture . Parameters [ nameof ( SysbenchOLTPClientExecutor . Threads ) ] = "8" ;
154154 this . mockFixture . Parameters [ nameof ( SysbenchOLTPClientExecutor . RecordCount ) ] = "1000" ;
155+ this . mockFixture . Parameters [ nameof ( SysbenchOLTPClientExecutor . NumTables ) ] = "40" ;
155156
156157 this . mockFixture . StateManager . OnGetState ( ) . ReturnsAsync ( JObject . FromObject ( new SysbenchOLTPExecutor . SysbenchOLTPState ( )
157158 {
@@ -161,16 +162,16 @@ public async Task SysbenchOLTPClientExecutorUsesDefinedParameters()
161162
162163 string [ ] expectedCommands =
163164 {
164- $ "sudo chmod +x \" { this . scriptPath } /balancedServer .sh\" ",
165- $ "sudo chmod +x \" { this . scriptPath } /balancedClient .sh\" ",
166- $ "sudo chmod +x \" { this . scriptPath } /inMemory .sh\" ",
165+ $ "sudo chmod +x \" { this . scriptPath } /balanced-server .sh\" ",
166+ $ "sudo chmod +x \" { this . scriptPath } /balanced-client .sh\" ",
167+ $ "sudo chmod +x \" { this . scriptPath } /in-memory .sh\" ",
167168 "sudo ./autogen.sh" ,
168169 "sudo ./configure" ,
169170 "sudo make -j" ,
170171 "sudo make install" ,
171- $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads=8 --tables=10 --table-size=1000 --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 cleanup",
172- $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_common --tables=10 --table-size=1000 --mysql-db=sbtest --mysql-host=1.2.3.5 prepare",
173- $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads=8 --tables=10 --table-size=1000 --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 run"
172+ $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads=8 --tables=40 --table-size=1000 --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 cleanup",
173+ $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_common --tables=40 --table-size=1000 --mysql-db=sbtest --mysql-host=1.2.3.5 prepare",
174+ $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads=8 --tables=40 --table-size=1000 --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 run"
174175 } ;
175176
176177 int commandNumber = 0 ;
@@ -237,16 +238,16 @@ public async Task SysbenchOLTPClientExecutorRunsTheExpectedWorkloadCommandBalanc
237238
238239 string [ ] expectedCommands =
239240 {
240- $ "sudo chmod +x \" { this . scriptPath } /balancedServer .sh\" ",
241- $ "sudo chmod +x \" { this . scriptPath } /balancedClient .sh\" ",
242- $ "sudo chmod +x \" { this . scriptPath } /inMemory .sh\" ",
241+ $ "sudo chmod +x \" { this . scriptPath } /balanced-server .sh\" ",
242+ $ "sudo chmod +x \" { this . scriptPath } /balanced-client .sh\" ",
243+ $ "sudo chmod +x \" { this . scriptPath } /in-memory .sh\" ",
243244 "sudo ./autogen.sh" ,
244245 "sudo ./configure" ,
245246 "sudo make -j" ,
246247 "sudo make install" ,
247248 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads=1 --tables=10 --table-size={ records } --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 cleanup",
248249 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_common --tables=10 --table-size={ records } --mysql-db=sbtest --mysql-host=1.2.3.5 prepare",
249- $ "sudo { this . scriptPath } /balancedClient .sh 1.2.3.5 10 sbtest /testdrive1 /testdrive2",
250+ $ "sudo { this . scriptPath } /balanced-client .sh 1.2.3.5 10 sbtest /testdrive1 /testdrive2",
250251 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads=1 --tables=10 --table-size={ records } --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 run"
251252 } ;
252253
@@ -295,9 +296,9 @@ public async Task SysbenchOLTPClientExecutorSkipsInitializationOfTheWorkloadForE
295296
296297 string [ ] expectedCommands =
297298 {
298- $ "sudo chmod +x \" { this . scriptPath } /balancedServer .sh\" ",
299- $ "sudo chmod +x \" { this . scriptPath } /balancedClient .sh\" ",
300- $ "sudo chmod +x \" { this . scriptPath } /inMemory .sh\" ",
299+ $ "sudo chmod +x \" { this . scriptPath } /balanced-server .sh\" ",
300+ $ "sudo chmod +x \" { this . scriptPath } /balanced-client .sh\" ",
301+ $ "sudo chmod +x \" { this . scriptPath } /in-memory .sh\" ",
301302 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads={ this . threadCount } --tables=10 --table-size={ this . recordCount } --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 cleanup",
302303 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_common --tables=10 --table-size={ this . recordCount } --mysql-db=sbtest --mysql-host=1.2.3.5 prepare",
303304 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads={ this . threadCount } --tables=10 --table-size={ this . recordCount } --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 run"
@@ -361,9 +362,9 @@ public async Task SysbenchOLTPClientExecutorSkipsPrepareAndCleanupSteps()
361362
362363 string [ ] expectedCommands =
363364 {
364- $ "sudo chmod +x \" { this . scriptPath } /balancedServer .sh\" ",
365- $ "sudo chmod +x \" { this . scriptPath } /balancedClient .sh\" ",
366- $ "sudo chmod +x \" { this . scriptPath } /inMemory .sh\" ",
365+ $ "sudo chmod +x \" { this . scriptPath } /balanced-server .sh\" ",
366+ $ "sudo chmod +x \" { this . scriptPath } /balanced-client .sh\" ",
367+ $ "sudo chmod +x \" { this . scriptPath } /in-memory .sh\" ",
367368 $ "sudo /home/user/tools/VirtualClient/packages/sysbench/src/sysbench oltp_read_write --threads={ this . threadCount } --tables=10 --table-size={ this . recordCount } --mysql-db=sbtest --mysql-host=1.2.3.5 --time=10 run",
368369 } ;
369370
0 commit comments