diff --git a/.gitignore b/.gitignore index e5c5c072c508669022c156122fd09187ebbefca8..440fe99843a2f7e7057b38588d14252dee92d192 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ compile_commands.json /tools/*.install.fail/ /.vscode/ /*.xlsx - +*.csv.bak diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py index c34d3e822e66e9f2ecad7af629e52dc97c15f537..e216877350c609592aec2fd14c214c592fb0fcb9 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py index af26a38fc33081a6a3271d20a257f0b45f1a4f32..fc54353528f029bc74de3f4275cb91490362b24b 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py index 7b925cb2f3ceb9c3ea5b9a62078e468f9791a550..68c3add8c82faa6ce641cd236cad4cc4ed0bc4e3 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py index ee624314f0e587aa1171dd57465851fe2eb5659f..131cd8e7a4cc82a4ca8575187192b4ad1cac7410 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py index ba7ae0c1e42c9fd8c591489e0afe0eaf363e95fe..2a803a874a81b336d6004c3a64ba1392c72ff6c4 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py index e5e5802a0b6bebe2066119465dd6bdbb90d3e881..e9e5ef4d406361836b9ca7b865ae18eea378bbc4 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py index 222372faed07bc33f80568baaa56d000a6f71de4..e26de61ed0ece2e2f3b21b80bf92c20dd44ed12f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py index 519995528056b9aa3f8fefc75a0e019e298d353c..5bde764966011ba761b23c641156a8069af7e0d4 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py index c78f13867c4ad127febc460e4f4bf20bfa963d76..fc4c36edb8edd321788ca127ed8b5d1b6699291f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py index b05d1f47cb00c2dcaea317331e7d31e3f28e55a3..15fdbe1fee47ed8fbde67b924ee67b3daad9420a 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py index 6b9bd67c5f98d65521ee245d2576a1776d3ce0f8..5eb96e3a309aed0fe062bfa6c21aec0b94650efc 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py index 847938da0592e98b2757e83bfb207c422efd523b..67bca3f1bdcbcea51992b6caa5b1384ad4c111ea 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py index 68f32e0f1923183761cdb681eed5feab12b88c24..15c310ff88b8ddb42c1ec8a9c890fb1f53a4d896 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py index ac4a7fbb5d46c31e89b22092e00b5c5c3da0f42e..3b16ec427c6c13270d1aa9f61ed940bcd9a10973 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py index 771ebc31ce402276c5282da559a61c361bd42d50..01ce85998ac2a74f123685008c6049b2ba321ce8 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py index c0528d429993a36b0675bba790ed563c4e089d7a..7b133a232a834c01f1bd36b8d042458c6d9c91fc 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py index 3eadc8553106ecae866568e9fd4c0fc4adbffacc..00347f09b110b1fb1c2bb189678bbaf9fd6cc6f8 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py index 960ae2b3acb11d57d2c2a13a443c35f338579180..dec90b0aa7062145696466f39097ed905ab1de05 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py index 450973da2a1a348797da92a5014505bcd90dd263..a16ef41dc2589a3766970d44883aee476601bb1d 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py index 3688c0320b4406deefa474716932cf41f8b7ae37..b0205ad27e1110a721372038e9056de095cc598f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py index 7ee6e046c3b5e3a9d56b391731ae701aaa394c9c..798c218b1f9ab8b622f117a0e7634ca0fc790e20 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py index 9d9e6f63b8ffa0449345b803ab0aa30e2ff8dae4..142f96ad0a419b1787ef72ffd566015c8b048957 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py index 7f707cb0c2b1cb638c7a8a434dc76a360c03ec80..31f7b5197de8641ac3bd4d6873fbab5f19c35be4 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py index 7c37ce36f10d95d694e6c22f4c6e2bb4818a45e3..da85e1e319721c813618c5508eae957f35828719 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py index 4f5201a629b09f50bf3f46d420f5121b49687757..c9f85e6e1fedfadfde10579e405680bd73d31dee 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py index 4a8d72d2a0efa1a2ec8e4cf1b0629cd1949c8391..29ab2f707f139d0d101207f45d5564610bb05960 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py index 7368f08a3a1c1613f24a2cd2c6f85b09801f23a6..337fb7d31b9104f39bc13d99ec5ce2e9eec0e743 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py index 88dd2f9a7d3c79eff30840166e8b1c60a7549808..a23756c4da5001d394f7f099f32f1e394900abe7 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py index 033f5e458daa96ee08b4abcb9c15e88e6429b418..cc10fe86f0f9a9bf5ce730e1610ab3bf90e16101 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py index b71fbf0e2defc1efda78fbd2389fbd2201b9d53f..3852f592a47581d0b7296ed787d563ed3b7171eb 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py index 188ae3e8549eb8ed1b2b0400d557fef8298e0af3..dda1f93fa61fe864229278a067862f22a13a88db 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py index 684590cae5d577c2e1b43e836c0b1139d1066b6d..0b6075f0572901a89b245d0cb682308247dc7817 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py index 0e87d41c9af7a4968dbebbf2059ce28ad0159952..c0c145b22ddba42b4a65d8b9bb142ee6f5750888 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py index e76b70037adb86e86da415eb2b831910b690ee72..61e1116d380453b458e21d069ad57e136977f79f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py index 5e304edf311a8ca31f23be25b601087edc5bc762..0290728c49bd8ee2a2fde67e1e7560a3e75e419a 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py index 9d708f18b1ce9a42d2c2bbc47598c330508492d4..3f4081f94f07cd78e80580366deb91e3f6cce644 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py index 0efc82c0480f1460390aa24e60e0f659d28fa642..0d9d1de79661e182311eca888a181062adff5848 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py index 3b669113855ed943fa9dc6ad3b20269e1f32ae6f..0a610d9fb24e75c75a7ddd3aa0ae0ed785d3eaeb 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py index d87e68904df516f501b1fca1eb173551b273f6a8..e0b2dbcf40ea03b5cd9cccc44a692ff65c4580a3 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py index 82619b4e80092bf0918fd2f1f30436fdd8561c18..c2dad7e3597077a10d8ca5a73ee3a5a39d905c18 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/iperf3/iperf3-args.csv b/testcase/iperf3/iperf3-args.csv new file mode 100644 index 0000000000000000000000000000000000000000..914c656ea1551e8808ac7d2e393d552a9364d626 --- /dev/null +++ b/testcase/iperf3/iperf3-args.csv @@ -0,0 +1,73 @@ +工具名称,子系统,权重,模板,ipver,proto,thread,len +iperf3,net,0.052792,huoyan,4,tcp,1,500 +iperf3,net,0.052792,huoyan,4,tcp,8,500 +iperf3,net,0.052792,huoyan,4,tcp,32,500 +iperf3,net,0.008147,huoyan,4,tcp,1,5300 +iperf3,net,0.008147,huoyan,4,tcp,8,5300 +iperf3,net,0.008147,huoyan,4,tcp,32,5300 +iperf3,net,0.005286,huoyan,4,tcp,1,8900 +iperf3,net,0.005286,huoyan,4,tcp,8,8900 +iperf3,net,0.005286,huoyan,4,tcp,32,8900 +iperf3,net,0.002604,huoyan,4,tcp,1,12400 +iperf3,net,0.002604,huoyan,4,tcp,8,12400 +iperf3,net,0.002604,huoyan,4,tcp,32,12400 +iperf3,net,0.001429,huoyan,4,tcp,1,16100 +iperf3,net,0.001429,huoyan,4,tcp,8,16100 +iperf3,net,0.001429,huoyan,4,tcp,32,16100 +iperf3,net,0.000783,huoyan,4,tcp,1,19600 +iperf3,net,0.000783,huoyan,4,tcp,8,19600 +iperf3,net,0.000783,huoyan,4,tcp,32,19600 +iperf3,net,0.013198,huoyan,4,udp,1,500 +iperf3,net,0.013198,huoyan,4,udp,8,500 +iperf3,net,0.013198,huoyan,4,udp,32,500 +iperf3,net,0.002037,huoyan,4,udp,1,5300 +iperf3,net,0.002037,huoyan,4,udp,8,5300 +iperf3,net,0.002037,huoyan,4,udp,32,5300 +iperf3,net,0.001321,huoyan,4,udp,1,8900 +iperf3,net,0.001321,huoyan,4,udp,8,8900 +iperf3,net,0.001321,huoyan,4,udp,32,8900 +iperf3,net,0.000651,huoyan,4,udp,1,12400 +iperf3,net,0.000651,huoyan,4,udp,8,12400 +iperf3,net,0.000651,huoyan,4,udp,32,12400 +iperf3,net,0.000357,huoyan,4,udp,1,16100 +iperf3,net,0.000357,huoyan,4,udp,8,16100 +iperf3,net,0.000357,huoyan,4,udp,32,16100 +iperf3,net,0.000196,huoyan,4,udp,1,19600 +iperf3,net,0.000196,huoyan,4,udp,8,19600 +iperf3,net,0.000196,huoyan,4,udp,32,19600 +iperf3,net,0.013198,huoyan,6,tcp,1,500 +iperf3,net,0.013198,huoyan,6,tcp,8,500 +iperf3,net,0.013198,huoyan,6,tcp,32,500 +iperf3,net,0.002037,huoyan,6,tcp,1,5300 +iperf3,net,0.002037,huoyan,6,tcp,8,5300 +iperf3,net,0.002037,huoyan,6,tcp,32,5300 +iperf3,net,0.001321,huoyan,6,tcp,1,8900 +iperf3,net,0.001321,huoyan,6,tcp,8,8900 +iperf3,net,0.001321,huoyan,6,tcp,32,8900 +iperf3,net,0.000651,huoyan,6,tcp,1,12400 +iperf3,net,0.000651,huoyan,6,tcp,8,12400 +iperf3,net,0.000651,huoyan,6,tcp,32,12400 +iperf3,net,0.000357,huoyan,6,tcp,1,16100 +iperf3,net,0.000357,huoyan,6,tcp,8,16100 +iperf3,net,0.000357,huoyan,6,tcp,32,16100 +iperf3,net,0.000196,huoyan,6,tcp,1,19600 +iperf3,net,0.000196,huoyan,6,tcp,8,19600 +iperf3,net,0.000196,huoyan,6,tcp,32,19600 +iperf3,net,0.003299,huoyan,6,udp,1,500 +iperf3,net,0.003299,huoyan,6,udp,8,500 +iperf3,net,0.003299,huoyan,6,udp,32,500 +iperf3,net,0.000509,huoyan,6,udp,1,5300 +iperf3,net,0.000509,huoyan,6,udp,8,5300 +iperf3,net,0.000509,huoyan,6,udp,32,5300 +iperf3,net,0.000330,huoyan,6,udp,1,8900 +iperf3,net,0.000330,huoyan,6,udp,8,8900 +iperf3,net,0.000330,huoyan,6,udp,32,8900 +iperf3,net,0.000163,huoyan,6,udp,1,12400 +iperf3,net,0.000163,huoyan,6,udp,8,12400 +iperf3,net,0.000163,huoyan,6,udp,32,12400 +iperf3,net,0.000089,huoyan,6,udp,1,16100 +iperf3,net,0.000089,huoyan,6,udp,8,16100 +iperf3,net,0.000089,huoyan,6,udp,32,16100 +iperf3,net,0.000049,huoyan,6,udp,1,19600 +iperf3,net,0.000049,huoyan,6,udp,8,19600 +iperf3,net,0.000049,huoyan,6,udp,32,19600 diff --git a/testcase/iperf3/iperf3.py b/testcase/iperf3/iperf3.py new file mode 100644 index 0000000000000000000000000000000000000000..60d5eaed7d76f09c43597c18648e4f209203511c --- /dev/null +++ b/testcase/iperf3/iperf3.py @@ -0,0 +1,113 @@ +#!/usr/bin/python3 +# coding: utf-8 +# Time: 2026-04-08 15:14:08 +# Desc: + + +import json +import os +import shutil +import stat +import time +import sys +from typing import Union + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) + +from common.lib.benchmark import KeyItem, PerfData, TSTPerf, ValueType # noqa: E402 +from common.lib.common import command, is_process_exists # noqa: E402 +from lib.ts_common import ( # noqa: E402 + PerfNetSingle, + tperf_top_dir, +) + + +class PerfIperf3Single(TSTPerf, PerfNetSingle): + def __init__( + self, + tc_name: str, + ipver: str, + proto: str, + thread: str, + len: str, + ): + self.log(PerfIperf3Single.mro()) + super(PerfNetSingle, self).__init__() + super(TSTPerf, self).__init__() + super(PerfIperf3Single, self).__init__() + self.iperf = os.path.join(tperf_top_dir, "tools/iperf.install/bin/iperf3") + self.tc_name = tc_name + self.ipver = ipver + self.protocol = proto + self.thread = thread + self.len = len + self.test_opt = f"-P {self.thread} -l {self.len} -{self.ipver}" + self.duration = 5 + self.test_server_ip = self.ip6_server if self.is_ipv6() else self.ip_server + if self.protocol == "tcp": + self.cmd_server = f"{self.iperf} -s -i 0 -D" + self.cmd_client = f"{self.iperf} -J -N -c {self.test_server_ip} -i 0 -t {self.duration} {self.test_opt}" + elif self.protocol == "udp": + self.cmd_server = f"{self.iperf} -s -i 0 -D" + self.cmd_client = ( + f"{self.iperf} -u -b 100G -J -N -c {self.test_server_ip} -i 0 -t {self.duration} {self.test_opt}" + ) + else: + raise TypeError(f"unknown protocol {self.protocol}") + self.outs = "" + self.errs = "" + self.server_pid = -8 + + def is_ipv6(self) -> bool: + if "-6" in self.test_opt or "--version6" in self.test_opt: + return True + return False + + def prepare(self): + """正式执行benchmark性能测试前,先prepare""" + # 检查iperf3是否有被编译 + if not os.path.isfile(self.iperf): + fail_dir = os.path.join(tperf_top_dir, "tools/iperf.install.fail") + if os.path.isdir(fail_dir): + raise FileNotFoundError(f"iperf may compile fail: {fail_dir}") + self.log("compile iperf") + command(cmd=f"{os.path.join(tperf_top_dir, 'tools/iperf/tst-build.sh')}") + if not os.path.isfile(self.iperf): + raise FileNotFoundError(f"iperf tool compile fail: {self.iperf}") + # 配置测试环境的网络 + self.prepare_net() + # 拉起服务端 + _, _, _, self.server_pid = self.run_in_server(cmd=self.cmd_server, check=True) + + def benchmark(self): + """执行性能测试""" + # 客户端执行性能测试 + time.sleep(1) + self.outs, _, _, _ = self.run_in_client(cmd=self.cmd_client, check=True) + self.log("outs:", self.outs) + + def parse_test_data(self) -> Union[list, PerfData]: + """执行benchmark性能测试后,对测试结果进行解析,返回 PerfData 或其 list 性能测试结果""" + if not self.outs: + raise Exception("test output is empty") + result = PerfData( + name=f"{self.tc_name}-bw", + value_type=ValueType.HIB, + key_item=KeyItem.avg, + unit="MB/s", + label="L0:网络", + ) + data = json.loads(self.outs) + result.set_key_value(value=data["end"]["sum_sent"]["bits_per_second"] / 8 / 1024 / 1024) + return result + + def cleanup(self): + """性能测试完成后cleanup""" + if self.server_pid and is_process_exists(pid=self.server_pid): + os.kill(self.server_pid, 9) + self.cleanup_net() diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..d631b320fece8cca1da5db44bb7f099c80353cf9 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 449383710de55e07 + @用例名称: tperf-iperf3-ip4-le12400-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..49f612dbaa1121e255eefbc10c920ee6164933f2 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0d845ed4707ad383 + @用例名称: tperf-iperf3-ip4-le12400-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..80877aedbbfdbdabb2dd309d32a6e6f0374498cc --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 74acb9375f13d89f + @用例名称: tperf-iperf3-ip4-le12400-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..4433af733da3239e1b1892fb56ef0b6f1a3ecb2d --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 224e2f6e3ea2e445 + @用例名称: tperf-iperf3-ip4-le12400-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..9d5c144f4a9c34d672293998a8b6caa75718528f --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: cea0e0d0b6fe6b4e + @用例名称: tperf-iperf3-ip4-le12400-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..4432ff98ed4a7601504a7c72c2838de54bf67cf5 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0cb07bc458424218 + @用例名称: tperf-iperf3-ip4-le12400-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..8c440e2fa920bcbd0bbf89265f78d58e3b714589 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3e3d70419a5e356d + @用例名称: tperf-iperf3-ip4-le16100-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..729149dcd96be21f79afcc43582dfebd5e605a8a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 18743cb6800b0307 + @用例名称: tperf-iperf3-ip4-le16100-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..c73e52a907a02e34244b4fbaeb57de7de0465364 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 560cecefd0c943cb + @用例名称: tperf-iperf3-ip4-le16100-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..389d19b83e40341cb1f617c415fdb92e54d84ec1 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0b73d2c79810a8c1 + @用例名称: tperf-iperf3-ip4-le16100-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..b515cc146979a8bd3877cec92832cb08476c74ec --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f06a1045c644bb14 + @用例名称: tperf-iperf3-ip4-le16100-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..ee67edd419c21beb899ac44e67177f61cdb76559 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a70ce2ecf107edbe + @用例名称: tperf-iperf3-ip4-le16100-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..8f9b1b47adb39972f161506be58f8ee41acd712b --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8a9c2933f601f047 + @用例名称: tperf-iperf3-ip4-le19600-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..d56ff0202438f4c7719090746a7640b7cf74ebc6 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5ff1127e594b75e2 + @用例名称: tperf-iperf3-ip4-le19600-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..1c547cbcea233ec63afe49db7776a8f14464de61 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 101044f8d5ece5d6 + @用例名称: tperf-iperf3-ip4-le19600-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..a061dbdd98fd8e5eefff6d6b2c82a99274ea898e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2b6ad6ab22c92801 + @用例名称: tperf-iperf3-ip4-le19600-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..38d900a1f71528dfcdc55dae55cef2a907a88ba5 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ce76ac447ecfffe8 + @用例名称: tperf-iperf3-ip4-le19600-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..b73360eb75217313bc46bdd6e560da25b1550917 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1111143a97cb8543 + @用例名称: tperf-iperf3-ip4-le19600-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..48ddc71521c7a328b00ac416e5c6508ecfa95e5c --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 383e537d66bb393e + @用例名称: tperf-iperf3-ip4-le500-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..85603802d315683058397b5d2faf435ca34746c3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: be284b05424a33f0 + @用例名称: tperf-iperf3-ip4-le500-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..fb3b987dbb520aa68dccf6a5b990b8dc7ec1a021 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d4bc70b827400021 + @用例名称: tperf-iperf3-ip4-le500-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..fb36c35fa49aecbd69fc8b68c675e2e131e365a1 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0cf279fc6fa347d4 + @用例名称: tperf-iperf3-ip4-le500-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..15630106175024761dd2a27fb70766209278ef44 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 64acb7ec655084d4 + @用例名称: tperf-iperf3-ip4-le500-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..a59d712a777207f947d9e0483fa693ba9de4b9e2 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ad7d698b47698915 + @用例名称: tperf-iperf3-ip4-le500-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..ba2f25c1f10da48fc985fb5e174d1bb98534f5d4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 034f6da0ca314632 + @用例名称: tperf-iperf3-ip4-le5300-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..7628d499a4d8b22925979b413d4c510f498e1efc --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5bf25a57a7915c38 + @用例名称: tperf-iperf3-ip4-le5300-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..b360c4b4054d5095112631d8455ff295724aedfa --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 53858f02292e5fc8 + @用例名称: tperf-iperf3-ip4-le5300-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..a51563f129d0a2105b1676646c948ea54df78f26 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 17b5441a71ec40d5 + @用例名称: tperf-iperf3-ip4-le5300-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..0d485c90d654409626e356269b82b2cbffed09d9 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1c2863dcd4ac27c5 + @用例名称: tperf-iperf3-ip4-le5300-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..7b11f8655c9021bf6998e55ce5ebc93f0de2f84e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3808a747d43db075 + @用例名称: tperf-iperf3-ip4-le5300-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..50a286c03727bd601b12cac1ead8fccae5b3e034 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c8d9365a7bee03bf + @用例名称: tperf-iperf3-ip4-le8900-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..3ab55e34d666c59f7735592b5561b170dbf233cd --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7a488c595e355e9c + @用例名称: tperf-iperf3-ip4-le8900-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..aa25750699076544ac086273d54cd0f04e49c38e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b845c68c4c392750 + @用例名称: tperf-iperf3-ip4-le8900-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..813e3b0e7852cd7b853d03832b7dedff85d95ec8 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e3969e92f1ad4526 + @用例名称: tperf-iperf3-ip4-le8900-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..8d7185ae7d92fd83439783f7838da17ff2140fc3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 81caa3701f520c19 + @用例名称: tperf-iperf3-ip4-le8900-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..e64561b58b0f3689b0c577eaa0eed2bf8bdc72dd --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 792401021a9aff2e + @用例名称: tperf-iperf3-ip4-le8900-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..8af7428bb50822e84262d0bcd8ab521f347a803c --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 46efd29e789e96bd + @用例名称: tperf-iperf3-ip6-le12400-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..ace65cad8325338efa33311351594c986ca750a6 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 32fae71044ec2eab + @用例名称: tperf-iperf3-ip6-le12400-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..1acecfd837e165d0cbadf96beaf967c75220cb0b --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 48a54b4c65bb299e + @用例名称: tperf-iperf3-ip6-le12400-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..398454945a77f6a338f8a9268f27b9afbca987e3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 585c2cfd44a3a230 + @用例名称: tperf-iperf3-ip6-le12400-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..83cddde6e70d06e31e5559445a3a38f47c080ded --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0c023432849356d7 + @用例名称: tperf-iperf3-ip6-le12400-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..5f9a53cccbcfe228e36e3688f88857a663613b62 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 063a4a16dfb7efd2 + @用例名称: tperf-iperf3-ip6-le12400-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..6ab000178e13a42bb0eb2c712d6ce7fd17a88ef4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a8fb6bf3332fb947 + @用例名称: tperf-iperf3-ip6-le16100-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..3a81a88b974e145cb9cbdbfefb7764345da01dfe --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4a3e8055df1c5b19 + @用例名称: tperf-iperf3-ip6-le16100-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..5bea1c8ce6314641a191644268475011f8e986dd --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9f44b66fa0ecacce + @用例名称: tperf-iperf3-ip6-le16100-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..f8ae337a387bb2416171d8750639d4a7f39a00d9 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a58cbcb6c9dd4c01 + @用例名称: tperf-iperf3-ip6-le16100-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..73ae7c861cf942ab8238351e12c3cceb6cc284d7 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 72e652fac76aae98 + @用例名称: tperf-iperf3-ip6-le16100-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..3ba8d730c7c79e42d1a7de3494225080a5df49e7 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 68265f274f1fd075 + @用例名称: tperf-iperf3-ip6-le16100-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..d4c00e58a267f7f8824c8c7f6d3007d3ebabd202 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 762f60bea3755c90 + @用例名称: tperf-iperf3-ip6-le19600-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..e173bc438acf567f40e7b4771b7069fcadd3aa51 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9ea1071b2d9895f1 + @用例名称: tperf-iperf3-ip6-le19600-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..9b2f72e4ff33b4fecd0f0a481d0c6a7cd649ce78 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 38e4142eab200d64 + @用例名称: tperf-iperf3-ip6-le19600-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..8f3222231ea46f86080c0d2bd2f5a7aa5a179d5a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a5ed2c4aeb39c236 + @用例名称: tperf-iperf3-ip6-le19600-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..9a1da2748b1122b5b521cb4f95a3cd9f10fd930e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 83c55e75ac79d083 + @用例名称: tperf-iperf3-ip6-le19600-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..d83fba4463f28f629bcd3183b95d90974b8ea106 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2786fd78ba7728d5 + @用例名称: tperf-iperf3-ip6-le19600-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..d7b96724f57a9adcaac923c5f53b051d2bccd3bb --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4db6f868baa4b83b + @用例名称: tperf-iperf3-ip6-le500-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..2c0a27a0e24abcae0591e04c46d3964966a13cc9 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 31b95763bec55e26 + @用例名称: tperf-iperf3-ip6-le500-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..ac1c83ef5f613ba55a787e9a31af09e424440059 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: af27bbeb4eee1a50 + @用例名称: tperf-iperf3-ip6-le500-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..b928e507441f8858453fe15df6bd42f51d02b46f --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4a986ceb549fd1c6 + @用例名称: tperf-iperf3-ip6-le500-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..19e96143d26fa32bb917e41c236806a0c0aa7c9b --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0d68dfb49a1fcbf8 + @用例名称: tperf-iperf3-ip6-le500-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..7f1089e0188360b836611b1f4d63c36efed981f6 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 657dad20bee1cb2a + @用例名称: tperf-iperf3-ip6-le500-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..a48a1d3c7daeafd09931b68252c8af1defc74cf4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ce08270154c4dde2 + @用例名称: tperf-iperf3-ip6-le5300-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..6b11b52da911ee7de76b633bf767472883139f8d --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: fcbf71ceac8b9daa + @用例名称: tperf-iperf3-ip6-le5300-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..754d0e39325009b9dabf800fdfc94c7a334a3a48 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3c7467ed1982fcaa + @用例名称: tperf-iperf3-ip6-le5300-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..2820c752dafc8e554f0858e6505624f4571b9dd4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c1c802cb9fb67480 + @用例名称: tperf-iperf3-ip6-le5300-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..21985883c61f820d90a3e201e969473e7b7b1b3a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ac03120b5f0a301d + @用例名称: tperf-iperf3-ip6-le5300-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..087c078c742f85bde4b8c5230a2f2700928315e3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 770b94c9c08ddaa4 + @用例名称: tperf-iperf3-ip6-le5300-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..22deb56db3114749ad257966260b3faaa21c6990 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: aa613a68b030fd01 + @用例名称: tperf-iperf3-ip6-le8900-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..b5b9fbcc3f41b47a90ec3a4a67a7acd5e9790fbb --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3a71d84c1e156d55 + @用例名称: tperf-iperf3-ip6-le8900-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..65a0fdbbe62372e877537d6846348e0f7a1947a3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 25e65ae47ed81c0d + @用例名称: tperf-iperf3-ip6-le8900-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py new file mode 100755 index 0000000000000000000000000000000000000000..7017172c44f1f8a4e771d3fe85a318f4297ecd43 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 30c7677b06870665 + @用例名称: tperf-iperf3-ip6-le8900-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py new file mode 100755 index 0000000000000000000000000000000000000000..d22717045703046706ad48d666934ec36f1ddd54 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a03ee15cca47aa81 + @用例名称: tperf-iperf3-ip6-le8900-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py new file mode 100755 index 0000000000000000000000000000000000000000..3bdc57718b68cf0356d63f116cac0dcb426e023c --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b60d036797795095 + @用例名称: tperf-iperf3-ip6-le8900-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py index d1a87e18923b28c9b94520928cf08c8314e4ffcb..f3f8236b105befa6a899d4d7106e6da86facd4cf 100755 --- a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py index 0717f1c3b1a025e70870fd9b21b879bbc3209f5a..cbf75707521e394136b1db839df2f16bcd4fbfa0 100755 --- a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py index 401ef040e71d7ad4e05b45960071be6255c632f0..c0e8f35b773678202a2d73ef0a221038485b4cdd 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_1m,s=1m,l=,g=,T=,I=10,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_1m,s=1m,l=,g=,T=,I=10,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py index 54520aa1a732cc95eb68425eeca5332e3fb4f8fc..4b91fb11c66d127e6d74667f1482fd6018a9fae9 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_1k,s=1k,l=,g=10,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_1k,s=1k,l=,g=10,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py index 59e34a8080c2ab8c7d93ed3d09dabda327473378..220410b68139b9718708badf6f390e13a8d2d8a0 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strchr,bench_name=strchr_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strchr,bench_name=strchr_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py index 31c54b06e9d759ee064501351072e902f9137289..058dfbcdf6fabac10e7fe163b311b2f2182efee4 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcpy,bench_name=strcpy_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcpy,bench_name=strcpy_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py index 2abe7f35cb2838898692f39584fb023a088fe374..2d6c2254baaa783f030f7072deea8f011a775555 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strlen,bench_name=strlen_1k,s=1k,l=,g=,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strlen,bench_name=strlen_1k,s=1k,l=,g=,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py index 4d04a09d7abd328e13f8cfd8b676f61a58c254c4..99df690818549b201d7d6171932d62ed8f3b4605 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py index a7e18e2ae35591d5fba63ad5346a033cd3845005..54d0865f7ac471d9da15faa76e4184867a8742e1 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py index 041e12310a3b20b39533090f36a554d524390016..214ba9f874cbc31b40d912218b478e564a7766f0 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_t128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_t128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py index 620a60f0708181d89e0b6889b29fde387402a8c7..eb3ea56fd37bf6a22d76646f1bcb5db5d8bc192d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_u128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_u128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py index 5a66ab304d4287ae3bcdb4f1c106093b8a4ba241..94b7cab940c6be8180168b8e258ea0c1928cd761 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mprotect,bench_name=mprot_wz128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=1,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mprotect,bench_name=mprot_wz128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=1,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py index 322db92c3b6fb59ce988f00c82ea48c314cfafc4..fa80f6de9e44dd4048f3fba5a698ee20a1b36bf7 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_wt128k,s=,l=128k,g=,T=,I=10000,B=100,r=,w=1,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_wt128k,s=,l=128k,g=,T=,I=10000,B=100,r=,w=1,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py index eaad2b874550dbc48bf15559dd190c377661869c..306b38fe5ac1f7ecca875de23a11663766ff894e 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=mallocT2_100k,s=100k,l=,g=10,T=2,I=10000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=mallocT2_100k,s=100k,l=,g=10,T=2,I=10000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py index d51907700cc357bef3b41cd32cbb99747fe9b0a3..c7e579c5538a376c48e313e8bce8caf6d3f25d5d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcmp,bench_name=strcmp_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcmp,bench_name=strcmp_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py index 29150e3c5d82abe3cf3f0c015d274743e51d8198..46d2697161c25663fc60831904bfa04d6b7975c9 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcpy,bench_name=strcpy_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcpy,bench_name=strcpy_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py index 6015b6acbe399ce5ae18acb722e74b28bc5dd0da..8fe32aaa4c8595cbfc7f6ab306a35e22e92343ed 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_a128k,s=,l=128k,g=,T=,I=200,B=100,r=,w=,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_a128k,s=,l=128k,g=,T=,I=200,B=100,r=,w=,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py index cb002e3104fbe5d388124dd01196bd0151bf004f..f9e21b4d756aa4040eafa0f4f318a1a184cdc55f 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_100k,s=100k,l=,g=10,T=,I=2000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_100k,s=100k,l=,g=10,T=,I=2000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py index 61c22061731b81eeb5b5f22cdaa04dcc68cd98ea..46dc913255eb06409da1cee2385848a6642a410f 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_1m,s=1m,l=,g=10,T=,I=2000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_1m,s=1m,l=,g=10,T=,I=2000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py index c0b24428b9824594a6a3a76d99469202557cfffe..3ed04955b2f1164cd64e516c437f18a25cc633fd 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_1m,s=1m,l=,g=,T=,I=2000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_1m,s=1m,l=,g=,T=,I=2000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py index 46b6cd1064e88e39d63eb5022c82de8ce05ffee6..6eed081ad50cf1eaee2391625fcf4738c4204eba 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py index 3e9fbe0c1049bf215e5d55ea0334fe9192fee6ba..f8ffad2c2bd522aa3c54f843d93acde803fc2cca 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_z128k,s=,l=128k,g=,T=,I=2000,B=100,r=,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_z128k,s=,l=128k,g=,T=,I=2000,B=100,r=,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py index dbee98864141af9b08ebab74c3c8bccc5d9f714d..4798a8e65d4dba28aede961ce43034ca3178b9f3 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_ra128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_ra128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py index 90bcddc79753e3d4b8d43f867c7ff97622cb8dde..722aec0e3ab7feb01e0d0ed7870111f3f26d7b68 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py index 9db2c23727082f4bdbcdd4b1991e993dc99ed1d1..9a0764c8d5a68fb37c9219105cb38476f2d1ce0c 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_ra128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_ra128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py index b74fc0d80f5176bab7a016c2ff890d0139039c06..67051ef8d365cbb5a5b102c1c8eb8dbb01f2122d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_rt128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_rt128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py index cd259fb2d6fbbc11e183f41de0a5f929c768b4cf..d3dda87f88c831e6ac0e8137d4f2fff41f03a25c 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_ru128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_ru128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py index 505cd0cfa76b7c40731bb8e7be2243f59acb5c32..48947664b2becf243362f945de959613528e59f0 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_rt128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_rt128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py index 71a93670cc37262a70a76e0244ead4734b04a8fa..c2c247f663f9581883111427b6a7c0d6a23d0091 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_ru128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_ru128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py index 0806f288cc9a7c16569fc74b0ca5cd6cf4782118..8f11823e0a0eb81ff2fffdae0bdfcb44a99491d8 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_10,s=10,l=,g=10,T=,I=50,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_10,s=10,l=,g=10,T=,I=50,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py index 32eb0f2470ba821c40994680368ed4813bdb8532..fc1570bc1d161da230dcc2e8b8738d0e930e9d6d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_100,s=100,l=,g=10,T=,I=50,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_100,s=100,l=,g=10,T=,I=50,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py index e1869010030730fe8ccb7cd22dc5aa40bf2f7888..46e366d33c3d08dc95e0cb1aba3d93741844d8a5 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_10k,s=10k,l=,g=10,T=,I=50,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_10k,s=10k,l=,g=10,T=,I=50,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py index 85c308b11ef5224f888f3b7e08eecf6a109859fa..73e00a86cdd7e3ee45756412b6dacd3f18c1148d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_1k,s=1k,l=,g=,T=,I=500,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_1k,s=1k,l=,g=,T=,I=500,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py index 5d489f41fb326209390640b898daf07b2823ba66..91c7e9d5e7eada0d5a9dcca3bd462c2b780981c2 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_t128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_t128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py index 0fc51bbb4e71abb7ee4382d7fe4f176ea0520f5e..3b350ce3a3496ef1e771fda4d1c2931b06b406cb 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_u128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_u128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py index 22d0c26b65bb87807775310a22b49068ed7d00b2..a3c1cec128cb20ed0875cde0a1c2a6fbf6dd93e9 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_z128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_z128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py index a589b5d07b23f9ef98613ad2a600355d158f2695..0bba8821f57a43e1a5fbe05f9c906a35f16acb71 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wa128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wa128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py index a01e442ef9449566169dc9cad63decd364b12679..ae1fc0b88eab35bf81f6a65b30ba001fc674d2fc 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wt128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wt128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py index 1d4ff4a9b429d02bb45a2117811119a86c844d2c..65bbca31f3e3e944d72cf715ecb80f22d23d18fe 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wz128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wz128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py index 075e9fdebd0e97adf0760c01df2bb0756b3e287e..2172d5a8454b767ba616fb215c492771ed41ca2e 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py index 090e48aadfa48fdf98af77c0384d2d065c68468a..79031954c5ff94496f03ab7db9c3a5129e4e0e5a 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py index 0eda45888d088ad1afbf07d45e958a55876c19ea..992609e1e29f0a86019747df44d3321c1f9ed123 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py index 579b12faae791ea75d9b7fc3b77aa557fcc5506b..6e2e8dbceeba4aaecab965a3108737ef721da26c 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py index e1ebfa3955fd5c050e56ad4554dd5223005d5306..a3eddf054732842ff3861559de37c091b095752a 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_wz128k,s=,l=128k,g=,T=,I=8000,B=100,r=,w=1,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_wz128k,s=,l=128k,g=,T=,I=8000,B=100,r=,w=1,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py index 87b55944004af005a7671727f709fdd48f096a73..26a638c13378e56e8b05c1253f93ba498539c122 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py index 03bc8854f0f707438488938e997de5ef3b3d0bd6..7235a271991981da1f986bc57983ee46283b2593 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcmp,bench_name=strcmp_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcmp,bench_name=strcmp_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py index 785ad51722b4026b00f053d680815742c5b61068..eef440d0551e36f6f0ffccb38eb4876815666c23 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strchr,bench_name=strchr_1k,s=1k,l=,g=,T=,I=5,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strchr,bench_name=strchr_1k,s=1k,l=,g=,T=,I=5,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py index 816e922657514eb5179b7665933fe92a327f3a30..43b3b9e7fc8d0d638eca0c0237686a5ebcc2a081 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strlen,bench_name=strlen_10,s=10,l=,g=,T=,I=5,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strlen,bench_name=strlen_10,s=10,l=,g=,T=,I=5,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py index c382c81c838886b60d819e0c950409209c818d21..108b4374d2e9ec4c4e4e3b21be2472973cace4ad 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=1,threads=18,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py index 738a7ac4f7cfd9b534a7eff35cc06edb5f85e051..a228b8ee7f22d59174f03805c22dd0992b025dc4 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=1,threads=59,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py index 9f2349ceb212aa925bba57af570cf79b30f14c22..d2e4eeb94caaafb4bf73f300cf853ba5421547cf 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=1,threads=19,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py index d53a5f99e8c8ceb8779b79eee239e241219d811d..b611d58eca8b38f707c50d0a16fbb4cb6c01642b 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=1,threads=6,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py index ad0d91779ae5367f3aef813d7596737752e4fc0c..de3deada76a8893b416b928b97a847032abc16ae 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=11,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py index debf826cf043efc58a06cbd12931bd9e64bfaa46..0c68cb57c34c1913a28ece2093412fe5bc29d1d9 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=111,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py index dedfd79b0f6f6aaaf31eb56fc6f42870bd9d5440..97b8831b29a4003125ba4d47ac41ddac85cb0814 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=15,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py index 0ca6f2300bb5c46e2d889dad96ab01b7fd8a89be..c96523ea2f746f92170cfccc15cbfc0cfecf51cd 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=16,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py index b10dd2e864d03e4df2cce3512212d04c1933f888..4666a60c63b5de194121cdc15793ef0a0daaa0db 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=17,threads=5,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py index 6792538816a86f3370baf3b6d6c1243f8d22c123..9a2bf2d62635c6d258f8e544d7d3da29924ce2e9 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=18,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py index fddd5ba11783cae4a4206ed15806b3217aeea866..ccdcd892a5d3da79a962e1186079a41f4c984807 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=19,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py index bc20d9c83c7f0f230a7212298c3d024016463409..43f7e62c35b3c8843096677cd1393568d50e0b50 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=2,threads=29,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py index 0304e9492357b419c11d63d72b11081f647c97b3..bc42b21d8504953cfd809814c64734aed1c6f1fe 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=2,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py index 0d8e65482e662bae87f2028554fd6c49c0c79972..e4ccc3701897ef2df9a99e6fa3cadecf47d2c53b 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=2,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py index 86172f9162305a39f51d3ca534eb276411c588e3..948bf36c41e6c637e586f6d594f468b78f0507ce 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=21,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py index 49c63f79f1b205aa31135d4c7b4e7cf3f2458751..41d45d3faf54eeeaf665e8ed4c9f76bc9cd0ec05 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=24,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py index 35cc7f262a9e598e6be40919f18f40a353f55766..a955e356d0e888ee37720b7fa16a3532a23982b9 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=24,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py index 126277b9af5e8d71217da6c2a725115488650bff..39c7d84f13515dab1ae04723a6a5a40f89d42949 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=28,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py index 114d05f738d728ae10bf025b322167582f73ee0d..325cada00b167b051a321fb3b5d5f78a80ef1d67 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=3,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py index a21b128c5181586bae82cb1469f12cde13e19a01..df3fa18410e45d6827884b2c2b66c267d4283a61 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=3,threads=15,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py index 86f52b8599eaadf05de5083f54d325c154c2af54..8c1aea6aba4d4f621704bbedeb8495159c7f1944 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=31,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py index 4632eef3dde70f790af479cda8fb2e36be9fbf9d..045614017116b1e5a14a94088e3b9151f74e4cdf 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=37,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py index 4e42e7afb494b706f5f78de817ec4d7e6f9f3b33..3f39f822e4ad02599357cdb516cb3d07d3b2dadb 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=4,threads=31,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py index 3b62a73ecd97d4d007adecadb6e6fadf8a10ee79..5cc1678a06c3f51fe075f09dd6110aeb5ec4fcfb 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=4,threads=8,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py index a96781715a53d73ad681bf6c436cd221f8aca5d3..ca3fe67817d18d7e9713548a6278998e74edacca 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=4,threads=18,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py index 5cba6f1904425198f325f74c273d210965780f01..8fa645f264f2ed9ebea53f038c3c4c1de498e98e 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=49,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py index 3da69c07c685b343f986abe7e6e6f8558f6d9ad1..0797569f7b143fe1ed67dc81b55760ce82052abe 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=5,threads=9,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py index 17454cd6d056d9cae2a05775ec8caab56e956a88..0758305a2dade367720fcc63977d3c308da661d2 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=5,threads=17,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py index c50aed52a63743c0cf4633dd5233b09b41be0c1f..0fd0d79a7ec89f1a246fcfb5d13f2d7d56c6229e 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=59,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py index e1020f54ab9f47cd9434f3931aa07d8f57585b53..5024e8400e9e8104da284b64bbfb1d6eeea093ac 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=6,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py index a9b4740733db26c745065f2732a425ac27814d4a..2e90028975ee009e745832876ac6e9db49c539ba 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=6,threads=12,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py index 05ac2d85ad45c2ac8f81f81d87c3efa9540be840..e6abd8f1c2b7d56bb470f45f168eff7e88c5e3ce 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=6,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py index 31d11093669b52613731bba0521422bba2138bea..f87421c63868c3d985bae87fca5a320ee695ea52 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=6,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py index d771753a342a7e04230336677dbbd52329696bab..427abef09c75dc4fb960c208fe39fad53aad6c56 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=62,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py index 9bcdd9bb19e154122a4177836c3b6068558fb2e9..b93cdae9a28eb08ced7186bdbb2042613d5e1968 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=7,threads=14,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py index 2feb78c5cfe7d1cfa8643306bbbc955271c2ea77..8f35f09261835213f633e1f97ad0f20bfcfe8c17 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=7,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py index b15b9b67c666a6440e054315fa89bcd93ca10af5..3f92c40d64af1eebfef31b69743e182d5d511de6 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=8,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py index 6ee2c989fd4d5f27f03ae58b94961ddb61131353..70be58e46a4212ce3f905135475101b457210fb3 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=8,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py index 776f32e42215f7e4dc611b72a7dc2557dff0c3dc..229b79d142d3685d1c058594dd17f559fbaae0eb 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=85,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py index 346f2d3dea8b3b5f22c1bed77b231986d9cb3650..62219ad7aed1e9dc3eb07fbb8600874a24dfc52e 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=9,threads=5,iterations=5,count=10,sync=1 diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py index 599554d0e32e51aada16663cc827718beb4c33a6..748c79cd3d52c5760ee112b68e7d77e16708a2df 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-bcopy,P=1,size=4096m,stride=,mode=bcopy,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-bcopy,P=1,size=4096m,stride=,mode=bcopy,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py index 5f32685ec60e6da227016e1fbc85c900eebbf8dd..cfd53a76e541639e05f3771c080e1580f2aa66ae 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-bzero,P=1,size=4096m,stride=,mode=bzero,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-bzero,P=1,size=4096m,stride=,mode=bzero,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py index 009ef60b8001f7c458bcce5076b5a146024063a7..59164f65e62b10d0226caafe7a071f022203ef9c 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-cp,P=1,size=4096m,stride=,mode=cp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-cp,P=1,size=4096m,stride=,mode=cp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py index 5ce0e2d9e76bd62d6563fd2f96182a4c7adb0539..a9cc721cbb433f3afe3afbb6a9d273b905d71a12 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-fcp,P=1,size=4096m,stride=,mode=fcp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-fcp,P=1,size=4096m,stride=,mode=fcp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py index e88b87485cf6c462b06ddc2979cd98db567c130b..2f7758199fe565269b63baaaa34e130380191374 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-fwr,P=1,size=4096m,stride=,mode=fwr,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-fwr,P=1,size=4096m,stride=,mode=fwr,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py index 9def25eef552b4e1d3dad8fcb795f57ae9dbd6c2..25ae0f698d6d7b28f9b616683af04f8540f25344 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-libc-bcopy-aligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=conflict,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-libc-bcopy-aligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=conflict,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py index df4fdd18d50ce546e86e7bfd647c871af9952286..50d2dbb1114694bffc211fd9d1dfa5d706d240bb 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-libc-bcopy-unaligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-libc-bcopy-unaligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py index e301c528fff0cdf26387e2cb2a7efcfcfa751751..a337b92cc83b0f24485a5d626ae3da68ebf87053 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-read,P=1,size=4096m,stride=,mode=frd,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-read,P=1,size=4096m,stride=,mode=frd,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py index 1ef1ab92c82ab63854cea35f8059d931825207fb..69a048d39f497a17dd210cb0068b342ca434cbdf 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-unrolled-bcopy-unaligned,P=1,size=2048m,stride=,mode=fcp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-unrolled-bcopy-unaligned,P=1,size=2048m,stride=,mode=fcp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py index eaa76a43aee91789b926a249d33874262b4ed0d4..04ebada3b1110ebd9f66f211d5e925af94e2fb41 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-unrolled-partial-bcopy-unaligned,P=1,size=2048m,stride=,mode=cp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-unrolled-partial-bcopy-unaligned,P=1,size=2048m,stride=,mode=cp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py index d34a7c059f0c62d7fdf9515fe7a6e72be4012390..581753ab4c80fdfe22e533c0d6ecf8f8bfc62b25 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-write,P=1,size=4096m,stride=,mode=fwr,filepath=,extra=,setup= @@ -51,8 +52,8 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, - run_loop=1, - result_select_percent=100, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py index 3a7b8cd71e6bce16dfa81e29a83c173e740c7821..97bf80efd766ba12ba15250e135df77fa97655f7 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_pipe,P=1,size=,stride=,mode=,filepath=,extra=,setup= @@ -51,8 +52,8 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, - run_loop=1, - result_select_percent=100, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py index 5b9558122e47d28cbe79ff0804fa8b2bcb5830bc..f38810c9780e92c5803bf19755aabcbd0ec8b8e9 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_mem_rd-prefetch-off,P=1,size=256,stride=2000,mode=,filepath=,extra=t,setup= diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py index ceed1088e96e2e88f45ce655beed7cb7efd4d98c..776692d068c3c50efcb517d6c04dce2abcfacbdd 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_mem_rd-prefetch-on,P=1,size=256,stride=2000,mode=,filepath=,extra=,setup= diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py index 2b7feeb189af07955a3c99679479b3fdcfd0208e..1bd7dea16daf4b5ad3611ab507db38be82438923 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_mmap,P=1,size=4096m,stride=,mode=,filepath=tmpfile,extra=,setup=dd4096m @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_mmap,P=1,size=4096m,stride=,mode=,filepath=tmpfile,extra=,setup=dd4096m # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py index 561fccb1ee65b9d8d3f33957428adb9d0c142ddc..b162fba4b1e530d050900a07dd1392cf0854a0b9 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_pagefault,P=1,size=,stride=,mode=,filepath=tmpfile,extra=,setup=dd128m @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_pagefault,P=1,size=,stride=,mode=,filepath=tmpfile,extra=,setup=dd128m # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py index 7fe38163454ab3694248a8c06885941a8cb73727..e3d530a8230aeae02d1bbfc2a324adb9d03e8bd8 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_proc-exec,P=1,size=,stride=,mode=exec,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_proc-exec,P=1,size=,stride=,mode=exec,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py index 3c72c8b2656c01c72cb70b437202821e2ee21deb..00187aadd9fe5ecc518e05e52b22976bab24b1a5 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_proc-fork,P=1,size=,stride=,mode=fork,filepath=,extra=,setup= @@ -51,8 +52,8 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, - run_loop=1, - result_select_percent=100, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py index e669de8f1cba16fdbe0dcccfd0c734c49fcf1d58..de2b0097c732fc2734b5d26bf83a79f156892399 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_proc-shell,P=1,size=,stride=,mode=shell,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_proc-shell,P=1,size=,stride=,mode=shell,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py index f1a3b1fe51b26909de95f3340b3b99e8b6969bdb..978ff0d21e94ac633f648c43b158804ae176bc5d 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=102,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py index ecc6b5b41bfa5b68a62473bca09c5529969074d9..c947e371d07d1ddd36da671b73b3733b25b15267 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=105,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py index fd6aac0429483975d5a143c0c9b633035f6cccac..3330dd8ec8e2f4e20840df501481fb5db3a7d212 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=109,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py index 83b2538e0cfd2d8cff4ff14dc54a8f03cae65484..015c9a676ad6645893dc519e84cf9d1e77a0c285 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=109,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py index bcc47c2f072794a6a33891816187178f9e6ca099..8c5ce03945fdcc9f4909a6d08d75904f013d01d2 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=120,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py index 24ba0b1b143400aa9b884fa080e7800178126b41..766a81016477c754fcda69bac25690533582076a 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=122,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py index 1c2c716e91bce60c5de9ee4111836f94e17a076b..ca7215218224c329fe0b7b2848b81a4b36ee7e56 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=122,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py index eb5788868d4fe1a3545b779c7f25bf109381b86d..b992ad734b955f27b0ad4e77835ff051b8940b0a 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=17,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py index 5efcf15bb1548b52977f66d96c81f58c898b3ac8..ece7c01b892b715c3bc9962c31b9e2042826fa80 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=18,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py index 5f9db79d39c526a75c796f732f59a6e607a29108..9e891a86e562c5946e64018f58e89d0872c64452 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=19,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py index df54c2803e24c5fdb987c324c1e4e3a0d1d2d6d0..383e7a5a04a4f0bba58342190076b1cb21dc2349 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=20,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py index 538c50e1b8d3dc36b395a42230c90c230373bfaf..df352a410a914fd51b5d8515f424ea01046f1b91 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=30,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py index 62244a27bc5553253a01387d0467f2f7008a629d..b56f06f794dfdaec0933e3e815d3e5f526fd2e2a 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=30,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py index e81ad921c6b537f13fef8e169cddf642fb668cba..ac7818d5a1f173392baeb65a6d3827591b63c560 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=34,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py index 18ccd85b33b259a51e1110e2dc7df9ac7577fd21..0ac54d147f13938ce1f45b138725ee5dfb3a1c19 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=37,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py index da540f89262386e3fd3f96d603c048ad8dddcc1d..32815e2166a60d36146d88f65728f7dee15f2dd6 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=43,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py index 4e5132682ec5142e00a04f02c7bdaa1593df79d6..4f92b71218b91c1287173ce91be649eba31d5aac 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=43,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py index 3e5603382a651224417bd92679162f7387218119..067fa1508b12ca86d82dae88f59510e33b4beb94 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=48,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py index 64184e54e81d250f282e58906f58adb5c382fbe3..2f3e3fe31ce1aa1243d33028b90f8b489da39770 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=5,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py index 37b870edc955d0dc03f97a60f5f899902e627aa8..ce509c9469121f164ad9f15e151e61770e08fc98 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=53,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py index fb923fcf0f50f198545ff52813d7d767426b6b0a..190175d2cb6ae781876137f71660fd1f70eae7b4 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=57,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py index 9dc46e6acb8156fd44b6cdb63bc153440494d4eb..a6f750587c4caecc1f1914bdecae5b9f9091fa94 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=57,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py index 2ceed360555f952f8c75ab7fad89a8c281266e36..0d2ad2ac18716e89d6546d2a33e483708771b4b4 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=6,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py index 08482cdf21cce70e60dcbd827ac3f7e7315ba0fb..b4ccc182e1cb00d7ca3df310ef09bf4243eaba80 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=6,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py index aeaaa6a0a885e856e2823c0acebea7389f9ddce1..4794d60a05f4063ada56f8386fe0cb223d5fa493 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=63,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py index f45d870bb89727b13bcedacab2f1124436b55fb8..57f30e13e0d253bebdceacde4d65deebb28a12fe 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=65,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py index 26d498f5b008578fc6fbbf0f249738891c46357d..91d527bca29d1364fb9c6597462ec9e121b05447 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=70,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py index e35c3adf830840c06db2cd096c54b762157f3564..13966bc8293f78021b89589fe398c98e5d458594 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=70,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py index f92194320db73650e3701a425d7a07d669c9cbba..9c55f0cda334700e23882b0f5ba4efb2e3be370b 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=75,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py index 77ed3e26f96a3b17ea8acd7060f2c7c7065466da..156c32fa93152766f71f56b9e60ff4ee6b4e4346 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=77,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py index daa2b8f9a20efdfe433dd1e92d6337e31b4be840..f17b77e460d69bcc08aed8fb5c96a342ccfab101 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=8,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py index 7b3d8518f2d5418366b8bfb02739220d2213589c..3e87bc3c23a1cf2960c12aa0c589239abc178a29 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=80,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py index 85de27b193ae65d4a590e81926c241858a57f8ce..4a5c63e7dfb3470a991a383ec09003801aeb96bb 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=80,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py index 0ea6e0054eac2dd3d91f3c0d6d07db95aa6e1aa7..7341a74bdb1cec5be87c7d3b91be3c1a0b3df03c 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=83,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py index 9beaba2ae4fbec0529963c8be873e64f511e7768..a4e6c5e06a783ca22aa2c04030233da129418ebd 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=83,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py index 2d2f9891a718a8dffc3c07762d3ec9577426bb97..394138688337b28e8314aa737eb1c5c1906819e5 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=86,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py index cb0d6c0a1bb84304c438ea2624af647bf5043adb..b80b4cd7e548646e32dbe54a87dee59b880dc079 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=91,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py index 8e4c22a6eb19205fa857b211f4f1de1262e2b829..69897603d0dcadc238353174b9e8df56d232a655 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=95,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py index be87ed38c9958c706cee68857525825ca7bae155..b28a9077ee838c240e4a856bcb2c7e20668500ea 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=96,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py index 473541d7393c8ad14a46a24b720c628687e446a1..1f0a88bf320699e82abe8534183bdba7b395a94f 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=96,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py b/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py index 61750ad472f6366dc2f065eb585a01c6bff44260..aedaba72602bed501dc09a7178c48c4ab47695d3 100755 --- a/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py +++ b/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=bandwidth_matrix diff --git a/testcase/mlc/tperf-mlc-tmidle_latency.py b/testcase/mlc/tperf-mlc-tmidle_latency.py index a7a950bef1cb8b2ecfdecd01e173fa952088a171..8ea7ad6d863d4d1fe79de3d0756481aecb47c234 100755 --- a/testcase/mlc/tperf-mlc-tmidle_latency.py +++ b/testcase/mlc/tperf-mlc-tmidle_latency.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=idle_latency diff --git a/testcase/mlc/tperf-mlc-tmlatency_matrix.py b/testcase/mlc/tperf-mlc-tmlatency_matrix.py index a7ad9af791a502e3bc13d08d7ba207da4804606d..f96d67c1942d0fbdfc204b582a0631941b0c6176 100755 --- a/testcase/mlc/tperf-mlc-tmlatency_matrix.py +++ b/testcase/mlc/tperf-mlc-tmlatency_matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=latency_matrix diff --git a/testcase/mlc/tperf-mlc-tmloaded_latency.py b/testcase/mlc/tperf-mlc-tmloaded_latency.py index 1b977be53b2e227092e331031f9ce6075236795b..ff79e9c5a917c3aad2ee046e4349405a474b36dd 100755 --- a/testcase/mlc/tperf-mlc-tmloaded_latency.py +++ b/testcase/mlc/tperf-mlc-tmloaded_latency.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=loaded_latency diff --git a/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py b/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py index 7e1eca25df457c6c0d54a34e6b722798f785a19d..3c408e901f69d57a0dbc996c7132a1ab9a643b28 100755 --- a/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py +++ b/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=peak_injection_bandwidth diff --git a/testcase/netperf/netperf-args.csv b/testcase/netperf/netperf-args.csv new file mode 100644 index 0000000000000000000000000000000000000000..04e3b5e663a63af085dd024238394b6af5f58ffd --- /dev/null +++ b/testcase/netperf/netperf-args.csv @@ -0,0 +1,61 @@ +工具名称,子系统,权重,模板,ipver,type,len +netperf,net,0.052845,huoyan,4,TCP_RR,500 +netperf,net,0.052845,huoyan,4,TCP_CRR,500 +netperf,net,0.052845,huoyan,4,TCP_STREAM,500 +netperf,net,0.008155,huoyan,4,TCP_RR,5300 +netperf,net,0.008155,huoyan,4,TCP_CRR,5300 +netperf,net,0.008155,huoyan,4,TCP_STREAM,5300 +netperf,net,0.005291,huoyan,4,TCP_RR,8900 +netperf,net,0.005291,huoyan,4,TCP_CRR,8900 +netperf,net,0.005291,huoyan,4,TCP_STREAM,8900 +netperf,net,0.002606,huoyan,4,TCP_RR,12400 +netperf,net,0.002606,huoyan,4,TCP_CRR,12400 +netperf,net,0.002606,huoyan,4,TCP_STREAM,12400 +netperf,net,0.001430,huoyan,4,TCP_RR,16100 +netperf,net,0.001430,huoyan,4,TCP_CRR,16100 +netperf,net,0.001430,huoyan,4,TCP_STREAM,16100 +netperf,net,0.000784,huoyan,4,TCP_RR,19600 +netperf,net,0.000784,huoyan,4,TCP_CRR,19600 +netperf,net,0.000784,huoyan,4,TCP_STREAM,19600 +netperf,net,0.019817,huoyan,4,UDP_RR,500 +netperf,net,0.019817,huoyan,4,UDP_STREAM,500 +netperf,net,0.003058,huoyan,4,UDP_RR,5300 +netperf,net,0.003058,huoyan,4,UDP_STREAM,5300 +netperf,net,0.001984,huoyan,4,UDP_RR,8900 +netperf,net,0.001984,huoyan,4,UDP_STREAM,8900 +netperf,net,0.000977,huoyan,4,UDP_RR,12400 +netperf,net,0.000977,huoyan,4,UDP_STREAM,12400 +netperf,net,0.000536,huoyan,4,UDP_RR,16100 +netperf,net,0.000536,huoyan,4,UDP_STREAM,16100 +netperf,net,0.000294,huoyan,4,UDP_RR,19600 +netperf,net,0.000294,huoyan,4,UDP_STREAM,19600 +netperf,net,0.013211,huoyan,6,TCP_RR,500 +netperf,net,0.013211,huoyan,6,TCP_CRR,500 +netperf,net,0.013211,huoyan,6,TCP_STREAM,500 +netperf,net,0.002039,huoyan,6,TCP_RR,5300 +netperf,net,0.002039,huoyan,6,TCP_CRR,5300 +netperf,net,0.002039,huoyan,6,TCP_STREAM,5300 +netperf,net,0.001323,huoyan,6,TCP_RR,8900 +netperf,net,0.001323,huoyan,6,TCP_CRR,8900 +netperf,net,0.001323,huoyan,6,TCP_STREAM,8900 +netperf,net,0.000652,huoyan,6,TCP_RR,12400 +netperf,net,0.000652,huoyan,6,TCP_CRR,12400 +netperf,net,0.000652,huoyan,6,TCP_STREAM,12400 +netperf,net,0.000358,huoyan,6,TCP_RR,16100 +netperf,net,0.000358,huoyan,6,TCP_CRR,16100 +netperf,net,0.000358,huoyan,6,TCP_STREAM,16100 +netperf,net,0.000196,huoyan,6,TCP_RR,19600 +netperf,net,0.000196,huoyan,6,TCP_CRR,19600 +netperf,net,0.000196,huoyan,6,TCP_STREAM,19600 +netperf,net,0.004954,huoyan,6,UDP_RR,500 +netperf,net,0.004954,huoyan,6,UDP_STREAM,500 +netperf,net,0.000765,huoyan,6,UDP_RR,5300 +netperf,net,0.000765,huoyan,6,UDP_STREAM,5300 +netperf,net,0.000496,huoyan,6,UDP_RR,8900 +netperf,net,0.000496,huoyan,6,UDP_STREAM,8900 +netperf,net,0.000244,huoyan,6,UDP_RR,12400 +netperf,net,0.000244,huoyan,6,UDP_STREAM,12400 +netperf,net,0.000134,huoyan,6,UDP_RR,16100 +netperf,net,0.000134,huoyan,6,UDP_STREAM,16100 +netperf,net,0.000073,huoyan,6,UDP_RR,19600 +netperf,net,0.000073,huoyan,6,UDP_STREAM,19600 diff --git a/testcase/netperf/netperf.py b/testcase/netperf/netperf.py new file mode 100644 index 0000000000000000000000000000000000000000..6ff1c4c5c1fd0114969f4378217f55fe64e8f9d1 --- /dev/null +++ b/testcase/netperf/netperf.py @@ -0,0 +1,123 @@ +#!/usr/bin/python3 +# coding: utf-8 +# Time: 2026-04-08 15:14:08 +# Desc: + + +import json +import os +import shutil +import stat +import time +import sys +from typing import Union + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) + +from common.lib.benchmark import KeyItem, PerfData, TSTPerf, ValueType # noqa: E402 +from common.lib.common import command, is_process_exists # noqa: E402 +from lib.ts_common import ( # noqa: E402 + PerfNetSingle, + tperf_top_dir, +) + + +class PerfNetperfSingle(TSTPerf, PerfNetSingle): + def __init__( + self, + tc_name: str, + ipver: str, + type: str, + len: str, + ): + self.log(PerfNetperfSingle.mro()) + super(PerfNetSingle, self).__init__() + super(TSTPerf, self).__init__() + super(PerfNetperfSingle, self).__init__() + self.netperf = os.path.join(tperf_top_dir, "tools/netperf.install/build/bin/netperf") + self.netserver = os.path.join(tperf_top_dir, "tools/netperf.install/build/bin/netserver") + self.tc_name = tc_name + self.ipver = ipver + self.type = type + self.len = len + self.testlen = 5 + if self.type.endswith("_STREAM") or self.type.endswith("_MAERTS"): + self.test_opt = f"-{self.ipver} -t {self.type} -- -m {self.len}" + elif self.type.endswith("_RR"): + self.test_opt = f"-{self.ipver} -t {self.type} -- -r {self.len},{self.len}" + else: + raise Exception("type error") + self.test_server_ip = self.ip6_server if self.is_ipv6() else self.ip_server + self.test_client_ip = self.ip6_client if self.is_ipv6() else self.ip_client + self.cmd_server = f"{self.netserver} -L {self.test_server_ip}" + self.cmd_client = ( + f"{self.netperf} -l {self.testlen} -L {self.test_client_ip} -H {self.test_server_ip} {self.test_opt}" + ) + self.outs = "" + self.errs = "" + self.server_pid = -8 + + def is_ipv6(self) -> bool: + if "-6" in self.test_opt or "--version6" in self.test_opt: + return True + return False + + def prepare(self): + """正式执行benchmark性能测试前,先prepare""" + # 检查netperf是否有被编译 + if not os.path.isfile(self.netperf): + fail_dir = os.path.join(tperf_top_dir, "tools/netperf.install.fail") + if os.path.isdir(fail_dir): + raise FileNotFoundError(f"netperf may compile fail: {fail_dir}") + self.log("compile netperf") + command(cmd=f"{os.path.join(tperf_top_dir, 'tools/netperf/tst-build.sh')}") + if not os.path.isfile(self.netperf): + raise FileNotFoundError(f"netperf tool compile fail: {self.netperf}") + # 配置测试环境的网络 + self.prepare_net() + # 拉起服务端 + _, _, _, self.server_pid = self.run_in_server(cmd=self.cmd_server, check=True) + + def benchmark(self): + """执行性能测试""" + # 客户端执行性能测试 + self.outs, _, _, _ = self.run_in_client(cmd=self.cmd_client, check=True) + self.log(self.outs) + + def parse_test_data(self) -> Union[list, PerfData]: + """执行benchmark性能测试后,对测试结果进行解析,返回 PerfData 或其 list 性能测试结果""" + if not self.outs: + raise Exception("test output is empty") + if "Throughput" in self.outs and "10^6bits/sec" in self.outs: + unit = "10^6bits/sec" + name_suffix = "bw" + elif "Trans." in self.outs and "Rate" in self.outs and "per sec" in self.outs: + unit = "trans/sec" + name_suffix = "rate" + else: + raise Exception("unit not found") + for line in self.outs.splitlines()[::-1]: + s = line.split() + if len(s) >= 5: + value = float(s[-1]) + result = PerfData( + name=f"{self.tc_name}-{name_suffix}", + value_type=ValueType.HIB, + key_item=KeyItem.avg, + unit=unit, + label="L0:网络", + ) + result.set_key_value(value=value) + return result + raise Exception("get result fail") + + def cleanup(self): + """性能测试完成后cleanup""" + if self.server_pid and is_process_exists(pid=self.server_pid): + os.kill(self.server_pid, 9) + self.cleanup_net() diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..a20466b32c76c03f677f264842c77d3aae936207 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 86734f78266a347d + @用例名称: tperf-netperf-ip4-le12400-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..c846a9a0aba41d903f240229d1373251bc410975 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 584db003f8c54fc8 + @用例名称: tperf-netperf-ip4-le12400-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..4da642d7cf6b56b9d48dc4f2c899723a49bbe8fd --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 276ed9144616b237 + @用例名称: tperf-netperf-ip4-le12400-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..43044da6ae2104e37a0e84306cd80662a5dc5ab7 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 19438df9132b6645 + @用例名称: tperf-netperf-ip4-le12400-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..20dc075dc7b789947a4cd8c85e2fa3d383c67b1d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: cd231649851dbbf6 + @用例名称: tperf-netperf-ip4-le12400-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..5d4ade497448a147885551031f2447e889aea21f --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: fbb9dfd3aa176b67 + @用例名称: tperf-netperf-ip4-le16100-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..ad8328b060752bc7c85100a8f4af91f7795fe8b1 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7088355a9826f639 + @用例名称: tperf-netperf-ip4-le16100-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..5120d37886a5157e4d661196c3c69771f28dc245 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c58b7aa211137221 + @用例名称: tperf-netperf-ip4-le16100-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..c69366a766b9f7c8bc69b389fba12ac9ef516405 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: dbbde1b6aa5763d7 + @用例名称: tperf-netperf-ip4-le16100-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..d7a5dc8c65c091c67fcb19e1d8949c9246accff8 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9d8e4ea5130dc23f + @用例名称: tperf-netperf-ip4-le16100-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..103d9b1ddc204a9dd8475668d4456323445be3b1 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 281a3cd5cac9bf2b + @用例名称: tperf-netperf-ip4-le19600-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..d87f4c05fba88c660523cc21d3055764384d515f --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 57d005f07c8d8683 + @用例名称: tperf-netperf-ip4-le19600-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..1d7499802c9c2bdbd8d9e252c10527bcdaa71cf6 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3ac5c08ab8ff9458 + @用例名称: tperf-netperf-ip4-le19600-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..ba1be8e2a345bf1cdc7a14130b2e7d459b407705 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e53ad123490f5917 + @用例名称: tperf-netperf-ip4-le19600-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..873b236017587d07fe188664adcf3ecef3128fbe --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 29973c2ad1df062a + @用例名称: tperf-netperf-ip4-le19600-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..89c01bab63ab37a5ae9cd838e36e5545a7332497 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: bc5172b26c05c984 + @用例名称: tperf-netperf-ip4-le500-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..fac8421430e8507bc8968f4d0805716ea3b06aa0 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9ce7c46ad0646f1b + @用例名称: tperf-netperf-ip4-le500-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..3686f0eb55b156e3c8bdce390e5fc6b8ad4fa16b --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 69e43de0ed471ca5 + @用例名称: tperf-netperf-ip4-le500-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..fd9e38efd2249888bc77d1028a330f06ae63b68f --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ca0f663fc9f8c54f + @用例名称: tperf-netperf-ip4-le500-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..4fc78224872c389e056c192faddb5212b7ed55e0 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d3bf3957d1c84a88 + @用例名称: tperf-netperf-ip4-le500-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..32ba5c648fd918d20e0d1ba1dd59916b4c287ab2 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0fe5726a5d1ed366 + @用例名称: tperf-netperf-ip4-le5300-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..45591e736dbf8093e6ab99b459806a0b025cff87 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 510830e590a543fd + @用例名称: tperf-netperf-ip4-le5300-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..2b8f17d297ef9fbdb6b5d7c5e5c022722d7e9073 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2d40fb20c2d88c51 + @用例名称: tperf-netperf-ip4-le5300-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..4e85c3b0c39264d7c295b5085bf382752c5a954d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ad20776e510cc9b0 + @用例名称: tperf-netperf-ip4-le5300-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..fc014d2b050d2308c2d585dab7557d2f1296835c --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2865d7520be03e9c + @用例名称: tperf-netperf-ip4-le5300-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..2f46d9ecf3896256dad9bb582ccf44db7389981f --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3bd4134531eed4f0 + @用例名称: tperf-netperf-ip4-le8900-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..25cb671f982ced552037f768f62efb12ba2c1d6c --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a4a1a7858fe8540c + @用例名称: tperf-netperf-ip4-le8900-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..70bc99af136f5f13543bdbc3b33de895fc4624b3 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7c80430080e28c86 + @用例名称: tperf-netperf-ip4-le8900-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..7a92430e8e650087b7ff4649606cb178d659969e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b88e57e08b02eabe + @用例名称: tperf-netperf-ip4-le8900-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..85961579cafefc64bf694e45024c0c932917b50a --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: de470bbd67bdf4ce + @用例名称: tperf-netperf-ip4-le8900-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..5c2b81bc74a8f0d4cb101332d3950d6c76cbe5e3 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e7efd8a7337a3b41 + @用例名称: tperf-netperf-ip6-le12400-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..1b3fe7f19e0fb21532c0f459f13176a39396a073 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c5443ede6978aee1 + @用例名称: tperf-netperf-ip6-le12400-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..3357daea424ac5352b5e8c38fa9dcebd715cc579 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c8da964ed3240472 + @用例名称: tperf-netperf-ip6-le12400-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..1de81b1d47d39eac1f0a7f57f6029388349acc4e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1382cd575d6c38b6 + @用例名称: tperf-netperf-ip6-le12400-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..478b95e9207b17710b48068d3ea35fb14b7e0a64 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 74db19c3309df174 + @用例名称: tperf-netperf-ip6-le12400-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..bf2c66daa951572a45733599adac768136d68e55 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1b44ee9302d1ff84 + @用例名称: tperf-netperf-ip6-le16100-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..0e189802c16c9cdf78003388fe68d654f5033e84 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4bee6efb0082945c + @用例名称: tperf-netperf-ip6-le16100-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..31038399e98ae01bb49ed34db44216cb9de2dbcd --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7265887522f91ea6 + @用例名称: tperf-netperf-ip6-le16100-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..99368844493a946b69dcc5626197e6a41397a1ba --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b8c76b349d023a3a + @用例名称: tperf-netperf-ip6-le16100-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..c6d0a9e0897e7c13f292846c1bc5920089d20301 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: be3a78a422dd3d8d + @用例名称: tperf-netperf-ip6-le16100-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..02dbd3cab508d0a5dce0f4625d9624f5ee2adaa6 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3ee4a1298e08412d + @用例名称: tperf-netperf-ip6-le19600-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..3bc0c8065cb78489365beadab35462445bc82b8d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f5d77ffd3d52f260 + @用例名称: tperf-netperf-ip6-le19600-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..b9477ce73a02a0750b705905ade8e35314bec635 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0319f642cc163982 + @用例名称: tperf-netperf-ip6-le19600-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..2b173c9bb51c632897a3a6ba18b378d795ba5076 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a40f1238fd33fa80 + @用例名称: tperf-netperf-ip6-le19600-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..8a86ddb43f4b1c7bc03c2c0d8809b173041d38f8 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e4de19891e5c07da + @用例名称: tperf-netperf-ip6-le19600-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..dafc603b8caaaa7c2ed02e6e9fb675eb6ce2468d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 392d1bc8d20b2372 + @用例名称: tperf-netperf-ip6-le500-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..3b517766a943a5ed76641f9486308dbe9d14e460 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 544bcd188772378c + @用例名称: tperf-netperf-ip6-le500-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..cba614c2655eb3f2e03e9c551b4a3572983cdaac --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d59757d9a6a0929f + @用例名称: tperf-netperf-ip6-le500-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..d67ff5d9bf70476514aa91c258fbeb8bffb5eead --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 6822ce849481018d + @用例名称: tperf-netperf-ip6-le500-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..1a7754ac0b95e74b97dcac01bede23e3cdb41256 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 225a386828f290b6 + @用例名称: tperf-netperf-ip6-le500-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..2a7ffa5088351592090238ff944fc4dbd5a9831f --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8316d4d85f240ef4 + @用例名称: tperf-netperf-ip6-le5300-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..ee7497ea60378ae97fb02e73c841ee5ba07be9dd --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 20f6507ae12eb9eb + @用例名称: tperf-netperf-ip6-le5300-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..2f801e259292cd8f0a4f52587e5acd7960a78fb4 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 46b93a26646ec85a + @用例名称: tperf-netperf-ip6-le5300-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..9db82a7ad122f4f1acff4160dcf9895260c478cc --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9f5c122df53b15f4 + @用例名称: tperf-netperf-ip6-le5300-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..2fc3e9c6e85eb07f4231304ec710e6414a85418d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 94ca65e06082bdd1 + @用例名称: tperf-netperf-ip6-le5300-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py new file mode 100755 index 0000000000000000000000000000000000000000..de524dc38426d28ba61e128e58f7e891d21e1430 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: fa1c14469963220e + @用例名称: tperf-netperf-ip6-le8900-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..dcdaffe3b03fcf6326825fbfbc4b569ff32c0a93 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a4d532dc6721d5e4 + @用例名称: tperf-netperf-ip6-le8900-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..25d66367702fbf0306af5cf93b7413c6b6ed4fba --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d021f674a3e256ae + @用例名称: tperf-netperf-ip6-le8900-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py new file mode 100755 index 0000000000000000000000000000000000000000..dbd67dc21223fdda82cc6174a3b316bb0cd0ef60 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 6bbbc39b4f4d9d76 + @用例名称: tperf-netperf-ip6-le8900-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py new file mode 100755 index 0000000000000000000000000000000000000000..f11e63b7d13e2f5dd5b23a7e2a3d4a5424c6ab09 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1f05b2a834a34b14 + @用例名称: tperf-netperf-ip6-le8900-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/parse-csv2case.py b/testcase/parse-csv2case.py index 3623f1a7c52b8e0710059ab3b655606d20638b42..7bc9c77cce615e2869cc6db7b6f91dda3b90383b 100755 --- a/testcase/parse-csv2case.py +++ b/testcase/parse-csv2case.py @@ -147,9 +147,7 @@ def gen_case_id(case_info: dict) -> str: # 然后按顺序将参数和取值拼接起来 # 计算hash作为用例ID result = hashlib.sha256( - "|".join( - [f"{x}&{case_info['参数'][x]}" for x in sorted(case_info["参数"].keys())] - ).encode("utf-8") + "|".join([f"{x}&{case_info['参数'][x]}" for x in sorted(case_info["参数"].keys())]).encode("utf-8") ).hexdigest()[:16] return result @@ -173,14 +171,10 @@ def gen_case_name(case_info: dict) -> str: arg_s = arg.strip(g_strip_char) if "_" in arg_s: _arg = arg_s.split("_") - result_str += ( - f"-{_arg[0].strip(g_strip_char)[:1]}{_arg[1].strip(g_strip_char)[:1]}" - ) + result_str += f"-{_arg[0].strip(g_strip_char)[:1]}{_arg[1].strip(g_strip_char)[:1]}" elif "-" in arg_s: _arg = arg_s.split("-") - result_str += ( - f"-{_arg[0].strip(g_strip_char)[:1]}{_arg[1].strip(g_strip_char)[:1]}" - ) + result_str += f"-{_arg[0].strip(g_strip_char)[:1]}{_arg[1].strip(g_strip_char)[:1]}" else: result_str += f"-{arg_s[:2]}" result_str += value @@ -190,7 +184,7 @@ def gen_case_name(case_info: dict) -> str: def parse_args_csv(args_file: str) -> dict: """解析csv文件,返回工具参数配置列表 - csv文件格式前3列固定,遇到【工具名称,子系统,权重】认为是具体工具参数配置的开始,示例如下: + csv文件格式前3列固定,遇到【工具名称,子系统,权重,模板】认为是具体工具参数配置的开始,示例如下: 工具名称,子系统,权重,--ioengine=,--direct=,--iodepth=,--rw=,--numjobs=,filesystem,--rwmixread=,--bs_read=,--bs_write= fio,io,0.002588,sync,0,1,read,1,ext4,,4K, fio,io,0.003551,sync,0,1,read,1,ext4,,16K, @@ -207,6 +201,7 @@ def parse_args_csv(args_file: str) -> dict: "用例ID": "<用例ID>", "子系统": "<子系统>", "权重": "<权重>", + "模板": "<模板>", "参数": { "<参数名1>": "<参数值1>", "<参数名2>": "<参数值2>", @@ -221,6 +216,7 @@ def parse_args_csv(args_file: str) -> dict: "用例ID": "<用例ID>", "子系统": "<子系统>", "权重": "<权重>", + "模板": "<模板>", "参数": { "<参数名1>": "<参数值1>", "<参数名2>": "<参数值2>", @@ -239,17 +235,16 @@ def parse_args_csv(args_file: str) -> dict: if not tool_name: tool_name = row["工具名称"].strip() if tool_name != row["工具名称"].strip(): - raise ValueError( - f"line:{line_count} 工具名称不一致: {tool_name} != {row['工具名称']}" - ) + raise ValueError(f"line:{line_count} 工具名称不一致: {tool_name} != {row['工具名称']}") args_dict = { "工具名称": tool_name, "子系统": row["子系统"].strip(), "权重": float(row.get("权重", "0").strip()), + "模板": row.get("模板", "huoyan").strip(), "参数": { k.strip().strip(g_strip_char): v.strip() for k, v in row.items() - if k.strip() not in ["工具名称", "子系统", "权重"] + if k.strip() not in ["工具名称", "子系统", "权重", "模板"] }, } case_name = gen_case_name(args_dict) @@ -266,7 +261,32 @@ def parse_args_csv(args_file: str) -> dict: return result_dict -def parse_tune_config(tune_file: str) -> dict: +def parse_tool_args_csv(tool_name: str) -> dict: + """遍历testcase//-args*.csv文件 + 逐个解析工具参数配置csv文件,返回工具参数配置字典 + Args: + tool_name (str): 工具名称 + Returns: + dict: 工具参数配置字典 + """ + result_dict = {} + tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) + for file in os.listdir(tool_dir_path): + if not file.startswith(f"{tool_name}-args"): + continue + if not file.endswith(".csv"): + continue + args_file = os.path.join(tool_dir_path, file) + args_dict = parse_args_csv(args_file=args_file) + # 检查是否有重名的用例 + for case_name, case_info in args_dict.items(): + if case_name in result_dict: + raise ValueError(f"{tool_name}:{args_file} 用例名称重复: {case_name}") + result_dict[case_name] = case_info + return result_dict + + +def parse_tune_csv(tune_file: str) -> dict: """解析调优信息文件,返回调优信息字典 文件内容示例: # 性能用例稳定性参数配置 @@ -337,6 +357,31 @@ def parse_tune_config(tune_file: str) -> dict: return result_dict +def parse_tool_tune_csv(tool_name: str) -> dict: + """遍历testcase//-tune*.csv文件 + 逐个解析工具调优信息csv文件,返回工具调优信息字典 + Args: + tool_name (str): 工具名称 + Returns: + dict: 工具调优信息字典 + """ + result_dict = {} + tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) + for file in os.listdir(tool_dir_path): + if not file.startswith(f"{tool_name}-tune"): + continue + if not file.endswith(".csv"): + continue + tune_file = os.path.join(tool_dir_path, file) + tune_dict = parse_tune_csv(tune_file=tune_file) + # 检查是否有重名的用例 + for case_name, case_info in tune_dict.items(): + if case_name in result_dict: + raise ValueError(f"{tool_name}:{tune_file} 用例名称重复: {case_name}") + result_dict[case_name] = case_info + return result_dict + + def get_tool_class(tool_name: str) -> str: """获取工具类 Args: @@ -346,7 +391,7 @@ def get_tool_class(tool_name: str) -> str: """ tool_dir = os.path.join(g_tperf_top_dir, "testcase", tool_name) tool_file = os.path.join(tool_dir, f"{tool_name}.py") - pattern = re.compile(r"class (\w+)\(TSTPerf\):") + pattern = re.compile(r"class +(\w+)\(.*\bTSTPerf\b.*\):") with open(tool_file, "r") as f: for line in f: if not line.startswith("class "): @@ -394,12 +439,8 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: raise ValueError(f"tool directory {tool_dir} not found") # 将已有的测试套整体读出来 testsuite = TestSuite(g_tperf_top_dir) - testcases_by_name = { - testcase.testcase_attr["用例名称"]: testcase for testcase in testsuite.testcases - } - logger.info( - f"testsuite: {testsuite.testsuite_name}, case: {len(testsuite.testcases)}" - ) + testcases_by_name = {testcase.testcase_attr["用例名称"]: testcase for testcase in testsuite.testcases} + logger.info(f"testsuite: {testsuite.testsuite_name}, case: {len(testsuite.testcases)}") # 备份当前工具已有的测试用例脚本 case_prefix = f"tperf-{tool_name}-" for file in os.listdir(tool_dir): @@ -420,10 +461,7 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: # 检查参数配置文件和现有用例脚本是否一致 if case_name in testcases_by_name: logger.info(f"case {case_name} is old testcase, check it") - if ( - case_info["用例ID"] - != testcases_by_name[case_name].testcase_attr["用例ID"] - ): + if case_info["用例ID"] != testcases_by_name[case_name].testcase_attr["用例ID"]: raise ValueError( f"case {case_name} ID mismatch: {case_info['用例ID']} != " f"{testcases_by_name[case_name].testcase_attr['用例ID']}" @@ -436,8 +474,7 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: if os.path.exists(case_path): raise FileExistsError(f"case {case_name} already exists") new_desc = ( - f"使用{tool_name}测试{sub_system}性能,参数:" - f"{','.join([f'{k}={v}' for k, v in case_info['参数'].items()])}" + f"使用{tool_name}测试{sub_system}性能,参数:{','.join([f'{k}={v}' for k, v in case_info['参数'].items()])}" ) class_args_str = "" for k, v in case_info["参数"].items(): @@ -445,6 +482,7 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: class_args_str = class_args_str.rstrip() script_content = f'''#!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -465,34 +503,20 @@ class PythonTestCase(MyTestCase): @用例ID: {case_info["用例ID"]} @用例名称: {case_info["用例名称"]} @用例级别: { - 3 - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("用例级别", "3") + 3 if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("用例级别", "3") } @用例标签: { - "" - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("用例标签", "") + "" if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("用例标签", "") } @扩展属性: { - "" - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("扩展属性", "") - } - @用例类型: { - "" - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("用例类型", "") + "" if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("扩展属性", "") } + @用例类型: 性能测试 @自动化: { - 1 - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("自动化", "1") + 1 if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("自动化", "1") } @超时时间: { - 0 - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("超时时间", "0") + 0 if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("超时时间", "0") } @用例描述: {new_desc} """ @@ -509,25 +533,13 @@ class PythonTestCase(MyTestCase): def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用{tool_name}工具测试性能,参数:{ - ",".join([f"{k}={v}" for k, v in case_info["参数"].items()]) - } + # @测试步骤: 使用{tool_name}工具测试性能,参数:{",".join([f"{k}={v}" for k, v in case_info["参数"].items()])} # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup={ - 0 - if case_name not in tune_config - else tune_config[case_name].get("warmup", 0) - }, - run_loop={ - 1 - if case_name not in tune_config - else tune_config[case_name].get("run_loop", 1) - }, + warmup={0 if case_name not in tune_config else tune_config[case_name].get("warmup", 0)}, + run_loop={1 if case_name not in tune_config else tune_config[case_name].get("run_loop", 1)}, result_select_percent={ - 100 - if case_name not in tune_config - else tune_config[case_name].get("result_select_percent", 100) + 100 if case_name not in tune_config else tune_config[case_name].get("result_select_percent", 100) }, ) self.perf_tool.report(testcase=self) @@ -568,55 +580,132 @@ def gen_tool_case(tool_name: str): logger.error(f"{tool_name}: tool directory {tool_dir_path} not found") return 0 - args_file = os.path.join(tool_dir_path, f"{tool_name}-args.csv") - if not os.path.isfile(args_file): - logger.error(f"{tool_name}: args file {args_file} not found") - return 0 - args_dict = parse_args_csv(args_file=args_file) + args_dict = parse_tool_args_csv(tool_name=tool_name) + if not args_dict: + logger.warning(f"{tool_name}: no case args found") + return {}, {}, 0 - tune_file = os.path.join(tool_dir_path, f"{tool_name}-tune.csv") - if os.path.exists(tune_file): - tune_dict = parse_tune_config(tune_file=tune_file) - else: - tune_dict = {} - logger.warning(f"{tool_name}: tune file {tune_file} not found") + tune_dict = parse_tool_tune_csv(tool_name=tool_name) - logger.info( - f"{tool_name}: get {len(args_dict)} case args and {len(tune_dict)} tune config" - ) - return gen_case_script( - tool_name=tool_name, case_args=args_dict, tune_config=tune_dict - ) + logger.info(f"{tool_name}: get {len(args_dict)} case args and {len(tune_dict)} tune config") + case_count = gen_case_script(tool_name=tool_name, case_args=args_dict, tune_config=tune_dict) + return args_dict, tune_dict, case_count + + +def gen_template(case_data_dict: dict): + """生成模板文件 + Args: + case_data_dict (dict): 用例数据字典 + Returns: + None: 无返回值 + """ + # 先将用例数据按模板分类 + case_data_by_template = { + "<模板名称>": { + "<工具名称>": { + "<子系统>": { + "<用例名称>": { + "工具名称": "<工具名称>", + "用例名称": "<用例名称>", + "用例ID": "<用例ID>", + "子系统": "<子系统>", + "权重": "<权重>", + "模板": "<模板>", + "参数": { + "<参数名1>": "<参数值1>", + "<参数名2>": "<参数值2>", + }, + }, + }, + } + } + } + case_data_by_template.clear() + # 将用例数据分别按工具名称、子系统和用例名排序后记录到case_data_by_template + for tool_name, case_data in case_data_dict.items(): + for case_name, case_info in case_data["args_dict"].items(): + if tool_name != case_info["工具名称"]: + raise ValueError(f"{tool_name}:{case_name} tool name mismatch: {tool_name} != {case_info['工具名称']}") + template = case_info.get("模板") + if not template: + logger.warning(f"{tool_name}:{case_name} no template found") + continue + subsys = case_info.get("子系统") + if not subsys: + logger.warning(f"{tool_name}:{case_name} no subsys found") + continue + if template not in case_data_by_template: + case_data_by_template[template] = {} + if tool_name not in case_data_by_template[template]: + case_data_by_template[template][tool_name] = {} + if subsys not in case_data_by_template[template][tool_name]: + case_data_by_template[template][tool_name][subsys] = {} + case_data_by_template[template][tool_name][subsys][case_name] = case_info + # 遍历模板,重新生成模板文件 + template_count = 0 + for template, tool_data in case_data_by_template.items(): + template_case_count = 0 + # 如果模板文件已经存在,则将原内容备份并打印出来 + template_file = os.path.join(g_tperf_top_dir, "templates", f"{template}.csv") + if os.path.exists(template_file): + os.rename(template_file, f"{template_file}.bak") + logger.info(f"backup {template_file} to {template_file}.bak") + logger.info(f"original content: {template_file}.bak") + with open(f"{template_file}.bak", "r") as f: + logger.info(f.read()) + # 重新生成模板文件 + with open(template_file, "w") as f: + f.write("本文件由parse-csv2case.py自动生成,请勿手动修改\n") + f.write("表格的【用例名、性能指标名、L0、L1、L2、权重】标题是固定的,不能修改,,,,,\n") + f.write("用例名:对应testcase目录下各用例文件的【@用例名称:】字段,,,,,\n") + f.write("性能指标名:用例测试输出的性能数据,名称由测试代码填入,,,,,\n") + f.write("L0/L1/L2:各指标所属维度,需要按维度统计结果时填写,,,,,\n") + f.write("权重:除以同维度指标权重和得到最终权重,用于计算加权几何平均数,0和空不做统计,,,,,\n") + f.write("用例名,性能指标名,L0,L1,L2,权重\n") + for tool_name in sorted(tool_data.keys()): + subsys_data = tool_data[tool_name] + for subsys in sorted(subsys_data.keys()): + case_data = subsys_data[subsys] + for case_name in sorted(case_data.keys()): + case_info = case_data[case_name] + f.write(f"{case_name},,{subsys},,,{case_info['权重']}\n") + template_case_count += 1 + logger.info(f"template {template} has {template_case_count} cases") + template_count += 1 + logger.info(f"total {template_count} templates generated") def main(): + tool_list = [] args = parse_args() print(args) + if args.tool: + tool_list = args.tool.split(",") + else: + tool_list = os.listdir(os.path.join(g_tperf_top_dir, "testcase")) + + case_data_dict = {} result_count = 0 - if args.all: - for tool_name in os.listdir(os.path.join(g_tperf_top_dir, "testcase")): - tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) - if not os.path.isdir(tool_dir_path): - continue - result_count += gen_tool_case(tool_name=tool_name) - elif args.tool: - result_count += gen_tool_case(tool_name=args.tool) - elif args.args_file: - args_dict = parse_args_csv(args.args_file) - tool_name = list(args_dict.values())[0]["工具名称"] - logger.info(f"{tool_name}: get {len(args_dict)} case args") - if args.tune_file: - tune_dict = parse_tune_config(args.tune_file) - logger.info(f"{tool_name}: get {len(tune_dict)} tune config") - else: - tune_dict = {} - result_count += gen_case_script( - tool_name=tool_name, case_args=args_dict, tune_config=tune_dict - ) + # 遍历工具目录,生成用例脚本 + for tool_name in tool_list: + tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) + if not os.path.isdir(tool_dir_path): + continue + args_dict, tune_dict, case_count = gen_tool_case(tool_name=tool_name) + case_data_dict[tool_name] = { + "args_dict": args_dict, + "tune_dict": tune_dict, + "case_count": case_count, + } + result_count += case_count logger.info(f"total {result_count} case scripts generated") + # 生成模板文件 + if args.all: + gen_template(case_data_dict=case_data_dict) + if __name__ == "__main__": main() diff --git a/testcase/qperf/qperf-args.csv b/testcase/qperf/qperf-args.csv new file mode 100644 index 0000000000000000000000000000000000000000..48a7f26cc8e8748bc4084b4265a16205d6420080 --- /dev/null +++ b/testcase/qperf/qperf-args.csv @@ -0,0 +1,49 @@ +工具名称,子系统,权重,模板,ipver,type,len +qperf,net,0.079267,huoyan,4,tcp_bw,500 +qperf,net,0.079267,huoyan,4,tcp_lat,500 +qperf,net,0.012232,huoyan,4,tcp_bw,5300 +qperf,net,0.012232,huoyan,4,tcp_lat,5300 +qperf,net,0.007937,huoyan,4,tcp_bw,8900 +qperf,net,0.007937,huoyan,4,tcp_lat,8900 +qperf,net,0.003909,huoyan,4,tcp_bw,12400 +qperf,net,0.003909,huoyan,4,tcp_lat,12400 +qperf,net,0.002145,huoyan,4,tcp_bw,16100 +qperf,net,0.002145,huoyan,4,tcp_lat,16100 +qperf,net,0.001176,huoyan,4,tcp_bw,19600 +qperf,net,0.001176,huoyan,4,tcp_lat,19600 +qperf,net,0.019817,huoyan,4,udp_bw,500 +qperf,net,0.019817,huoyan,4,udp_lat,500 +qperf,net,0.003058,huoyan,4,udp_bw,5300 +qperf,net,0.003058,huoyan,4,udp_lat,5300 +qperf,net,0.001984,huoyan,4,udp_bw,8900 +qperf,net,0.001984,huoyan,4,udp_lat,8900 +qperf,net,0.000977,huoyan,4,udp_bw,12400 +qperf,net,0.000977,huoyan,4,udp_lat,12400 +qperf,net,0.000536,huoyan,4,udp_bw,16100 +qperf,net,0.000536,huoyan,4,udp_lat,16100 +qperf,net,0.000294,huoyan,4,udp_bw,19600 +qperf,net,0.000294,huoyan,4,udp_lat,19600 +qperf,net,0.019817,huoyan,6,tcp_bw,500 +qperf,net,0.019817,huoyan,6,tcp_lat,500 +qperf,net,0.003058,huoyan,6,tcp_bw,5300 +qperf,net,0.003058,huoyan,6,tcp_lat,5300 +qperf,net,0.001984,huoyan,6,tcp_bw,8900 +qperf,net,0.001984,huoyan,6,tcp_lat,8900 +qperf,net,0.000977,huoyan,6,tcp_bw,12400 +qperf,net,0.000977,huoyan,6,tcp_lat,12400 +qperf,net,0.000536,huoyan,6,tcp_bw,16100 +qperf,net,0.000536,huoyan,6,tcp_lat,16100 +qperf,net,0.000294,huoyan,6,tcp_bw,19600 +qperf,net,0.000294,huoyan,6,tcp_lat,19600 +qperf,net,0.004954,huoyan,6,udp_bw,500 +qperf,net,0.004954,huoyan,6,udp_lat,500 +qperf,net,0.000765,huoyan,6,udp_bw,5300 +qperf,net,0.000765,huoyan,6,udp_lat,5300 +qperf,net,0.000496,huoyan,6,udp_bw,8900 +qperf,net,0.000496,huoyan,6,udp_lat,8900 +qperf,net,0.000244,huoyan,6,udp_bw,12400 +qperf,net,0.000244,huoyan,6,udp_lat,12400 +qperf,net,0.000134,huoyan,6,udp_bw,16100 +qperf,net,0.000134,huoyan,6,udp_lat,16100 +qperf,net,0.000073,huoyan,6,udp_bw,19600 +qperf,net,0.000073,huoyan,6,udp_lat,19600 diff --git a/testcase/qperf/qperf.py b/testcase/qperf/qperf.py new file mode 100644 index 0000000000000000000000000000000000000000..15984dd88f40df4ccd68335f39ae7f02008123ac --- /dev/null +++ b/testcase/qperf/qperf.py @@ -0,0 +1,122 @@ +#!/usr/bin/python3 +# coding: utf-8 +# Time: 2026-04-08 15:14:08 +# Desc: + + +import json +import os +import shutil +import stat +import time +import sys +from typing import Union + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) + +from common.lib.benchmark import KeyItem, PerfData, TSTPerf, ValueType # noqa: E402 +from common.lib.common import command, is_process_exists # noqa: E402 +from lib.ts_common import ( # noqa: E402 + PerfNetSingle, + tperf_top_dir, +) + + +class PerfQperfSingle(TSTPerf, PerfNetSingle): + def __init__( + self, + tc_name: str, + ipver: str, + type: str, + len: str, + ): + self.log(PerfQperfSingle.mro()) + super(PerfNetSingle, self).__init__() + super(TSTPerf, self).__init__() + super(PerfQperfSingle, self).__init__() + self.qperf = os.path.join(tperf_top_dir, "tools/qperf.install/build/bin/qperf") + self.tc_name = tc_name + self.ipver = ipver + self.type = type + self.len = len + self.test_opt = f"--msg_size {self.len} {self.type}" + self.duration = 5 + self.test_server_ip = self.ip6_server if self.is_ipv6() else self.ip_server + self.cmd_server = f"{self.qperf}" + self.cmd_client = f"{self.qperf} {self.test_server_ip} -t {self.duration} -vv -uu {self.test_opt}" + self.outs = "" + self.errs = "" + self.server_pid = -8 + + def is_ipv6(self) -> bool: + if "-6" in self.test_opt or "--version6" in self.test_opt: + return True + return False + + def prepare(self): + """正式执行benchmark性能测试前,先prepare""" + # 检查iperf3是否有被编译 + if not os.path.isfile(self.qperf): + fail_dir = os.path.join(tperf_top_dir, "tools/qperf.install.fail") + if os.path.isdir(fail_dir): + raise FileNotFoundError(f"qperf may compile fail: {fail_dir}") + self.log("compile qperf") + command(cmd=f"{os.path.join(tperf_top_dir, 'tools/qperf/tst-build.sh')}") + if not os.path.isfile(self.qperf): + raise FileNotFoundError(f"qperf tool compile fail: {self.qperf}") + # 配置测试环境的网络 + self.prepare_net() + # 拉起服务端 + _, _, _, self.server_pid = self.run_in_server(cmd=self.cmd_server, daemon=True) + + def benchmark(self): + """执行性能测试""" + # 客户端执行性能测试 + self.outs, _, _, _ = self.run_in_client(cmd=self.cmd_client, check=True) + self.log("outs:", self.outs) + + def parse_test_data(self) -> Union[list, PerfData]: + """执行benchmark性能测试后,对测试结果进行解析,返回 PerfData 或其 list 性能测试结果""" + if not self.outs: + raise Exception("test output is empty") + test_item = "" + result = [] + for line in self.outs.splitlines(): + line = line.strip() + if line.endswith(":"): + test_item = line.strip(":") + line_list = line.split() + if test_item.endswith("_bw") and str(line_list[0]) in {"bw", "send_bw"}: + r = PerfData( + name=f"{self.tc_name}-{test_item}", + value_type=ValueType.HIB, + key_item=KeyItem.avg, + unit="MB/sec", + label="L0:网络", + ) + r.set_key_value(float(line_list[-2]) / 1024 / 1024) + result.append(r) + test_item = "" + elif test_item.endswith("_lat") and line_list[0] == "latency": + r = PerfData( + name=f"{self.tc_name}-{test_item}", + value_type=ValueType.LIB, + key_item=KeyItem.avg, + unit="us", + label="L0:网络", + ) + r.set_key_value(float(line_list[-2]) / 1000) + result.append(r) + test_item = "" + return result + + def cleanup(self): + """性能测试完成后cleanup""" + if self.server_pid and is_process_exists(pid=self.server_pid): + os.kill(self.server_pid, 9) + self.cleanup_net() diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..5c6f6d021d186083c9c596fd0e3185296cac47c6 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3760c0bf9be465f6 + @用例名称: tperf-qperf-ip4-le12400-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..af402e6700a18a5599dc8b4cc501684c05789734 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0237dbd239210665 + @用例名称: tperf-qperf-ip4-le12400-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..1464ede7e09cd12854711fc26393b02e19e4c85e --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9d778512b1bc9612 + @用例名称: tperf-qperf-ip4-le12400-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..633debd8dcf2218adc8d28714b273f071574902f --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: bad14d7d21848129 + @用例名称: tperf-qperf-ip4-le12400-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..d56fe3ebd3b3066c629bb628b2c68b1eeafa1973 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8ebff255c64d0405 + @用例名称: tperf-qperf-ip4-le16100-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..fcdbc976becc6cfd2105378301b472cb0c4947ef --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 33efdafa9536ea32 + @用例名称: tperf-qperf-ip4-le16100-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..03a761e24bef6e4d45fff8887a751af0419f551d --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: cda9bca6d822974d + @用例名称: tperf-qperf-ip4-le16100-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..46ed2cc96bf281d6259609a7c0b9528b22ac901d --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 797f217b79ca6f1f + @用例名称: tperf-qperf-ip4-le16100-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..b2271fdf8be4041900c43750c5e94842d6ef0006 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 49429f30aa7b5130 + @用例名称: tperf-qperf-ip4-le19600-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..6eeb6008a09a42d43ae1f7e9906199c4973470e7 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: af91e6919d2f4e90 + @用例名称: tperf-qperf-ip4-le19600-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..16c2df9d937946a0e7a204d326b956d31b5d61f9 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3cfb950a6987f9b4 + @用例名称: tperf-qperf-ip4-le19600-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..a4aa6de85f21028141e737ac9a87981120e32280 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5b99803b65bd57b0 + @用例名称: tperf-qperf-ip4-le19600-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..d477b88730a0b7c1b69d35b8f430cc9fdb560ac1 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8661e10b4f2941a5 + @用例名称: tperf-qperf-ip4-le500-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..28c3b861853c9cf85e8edd741b8cf6c159cc1f3e --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4183b57adfb6d858 + @用例名称: tperf-qperf-ip4-le500-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..6cb4ba5f924fcbf0989a3432850efa556b5209fd --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2192f928fa629b16 + @用例名称: tperf-qperf-ip4-le500-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..277c01f33d910dbcf4daa502744b099a03149386 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2177b2ed01899d8a + @用例名称: tperf-qperf-ip4-le500-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..9958177b76225d4b518b930c0bfa074fcaacb7a0 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 75840e915e11c920 + @用例名称: tperf-qperf-ip4-le5300-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..8d580eaf6d4ffb0a6f62a9ce59a34eaed48924b4 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e2ddae848d64a053 + @用例名称: tperf-qperf-ip4-le5300-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..5031075453da4ded60f1e8b70d024538158096a7 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d9f107d78336069d + @用例名称: tperf-qperf-ip4-le5300-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..28b921c934acec83f22aa5a8d43abbad62933581 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e41e6f52284e533a + @用例名称: tperf-qperf-ip4-le5300-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..2b50d295c9aae8459c9325451a3cfc0db8998882 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f843d47bf50bd654 + @用例名称: tperf-qperf-ip4-le8900-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..568336970672c7841c4083fe57d0910c6c8b070e --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d74a2c3a8cb734c2 + @用例名称: tperf-qperf-ip4-le8900-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..f7f9a992c410c15fd42b752086eac944e2949225 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5a8c893bc3aa6ea7 + @用例名称: tperf-qperf-ip4-le8900-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..a1f3dd70e956af508357ac8fd7ea3084724d23fd --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 58cf7cc005335a35 + @用例名称: tperf-qperf-ip4-le8900-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..f56f3189869a75a46f313ed5087edc380f36af14 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 499138e40388e36f + @用例名称: tperf-qperf-ip6-le12400-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..a3fc3f591ea095bd6b2e502ee056d9bacfcfdbd2 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8f9a5bf26fb720d7 + @用例名称: tperf-qperf-ip6-le12400-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..6d18c566fb2cb1e54e2d10b945335187f9985ad6 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1b5f3481520854be + @用例名称: tperf-qperf-ip6-le12400-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..e01d41376a5665078719712a15d756da5259848f --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e35522d37b4a0905 + @用例名称: tperf-qperf-ip6-le12400-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..dec958d13812f20f6cfbb49114dccc95b285b7cf --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 807241a3f8dd2d76 + @用例名称: tperf-qperf-ip6-le16100-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..c566a03f2050f3b54fbebd8750e91212b55b9e87 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 72b4d27d17f4d18a + @用例名称: tperf-qperf-ip6-le16100-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..487002ba00e1475f5ea6034aec7e7f354c04f0c1 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7bcc4506d78e7d65 + @用例名称: tperf-qperf-ip6-le16100-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..8854f4c0d190a748864235fa049517b9479f33d2 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9fe8c9ccebae5b3c + @用例名称: tperf-qperf-ip6-le16100-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..9ac872c9b1b83047830e058abf2dfb9ae10b10eb --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2f0855ab6ddff9cd + @用例名称: tperf-qperf-ip6-le19600-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..54bf7e1dad68a82b23a8c84354c969de325b0f79 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8549f82c9779ff31 + @用例名称: tperf-qperf-ip6-le19600-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..60cf312920a3b4a0278d84a537a8abf3fe6f197f --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 62654309e34ab821 + @用例名称: tperf-qperf-ip6-le19600-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..47e828836065bcea155a034405448811f311b9ad --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b7d9ebb4c4e79cd1 + @用例名称: tperf-qperf-ip6-le19600-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..c3f3f7d620d898fc970d4d95919944a66a1f462b --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2c7b0914e20ebb62 + @用例名称: tperf-qperf-ip6-le500-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..ed38f86f368ccb864171e4ddb0b25a60b89a6fb5 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f8ba97ff53ed57e0 + @用例名称: tperf-qperf-ip6-le500-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..a836589eb9efce28be8fac277042096e8a6a65da --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 979de21a62af351a + @用例名称: tperf-qperf-ip6-le500-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..2dbfd8ec111b7cefb0fa3234b2afa9c196c80ac3 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 6233dfc68da03495 + @用例名称: tperf-qperf-ip6-le500-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..57f32cb056dd5ea6179be906858b6daa6c60c006 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7c390a0ff8858786 + @用例名称: tperf-qperf-ip6-le5300-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..f2e1e17c49ed6f72d12f61ae9ef5f884f1974344 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 166fcdb0b4bf2b14 + @用例名称: tperf-qperf-ip6-le5300-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..4248ef8fc31ebb0016f48d096accfdbd16a06a66 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d00f1d73d6280c29 + @用例名称: tperf-qperf-ip6-le5300-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..e0d9b3f3ca82021508886f5b58df148c77ef7826 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ad6a3bdef1545405 + @用例名称: tperf-qperf-ip6-le5300-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..eee88413501fc16a29ad7efa3e135e9398707ff3 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a028f3d5fce7b49f + @用例名称: tperf-qperf-ip6-le8900-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..a23bf02fdcb04a5d9928430231c8386f561a1df5 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 76be7933a0abaced + @用例名称: tperf-qperf-ip6-le8900-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py new file mode 100755 index 0000000000000000000000000000000000000000..54fc72530918ef77c48a92fa72e16740734a1f0a --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ce95d5910b956289 + @用例名称: tperf-qperf-ip6-le8900-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py new file mode 100755 index 0000000000000000000000000000000000000000..6c9e6a14d312765f5ef31990273825ec5286fc73 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 19257ad1823a7386 + @用例名称: tperf-qperf-ip6-le8900-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/stream/tperf-stream-ON1-bnsingle.py b/testcase/stream/tperf-stream-ON1-bnsingle.py index 3a42a02aa705adf298ffc0d541a5a9ed633f89b2..04c4e9607d536e962c46d69885b220bcbab078cf 100755 --- a/testcase/stream/tperf-stream-ON1-bnsingle.py +++ b/testcase/stream/tperf-stream-ON1-bnsingle.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=single,OMP_NUM_THREADS=1 diff --git a/testcase/stream/tperf-stream-ON16-bnthread-16.py b/testcase/stream/tperf-stream-ON16-bnthread-16.py index a8831bc5ffc24ad5dce147253f40579fc96bd736..408a7967fc1ef93e38daf7f6dadc2f606ccbcaac 100755 --- a/testcase/stream/tperf-stream-ON16-bnthread-16.py +++ b/testcase/stream/tperf-stream-ON16-bnthread-16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-16,OMP_NUM_THREADS=16 diff --git a/testcase/stream/tperf-stream-ON32-bnthread-32.py b/testcase/stream/tperf-stream-ON32-bnthread-32.py index 59764776bf5395353009c336284ad6d56aa0ae7e..201c5319c470477db990a9942b6140db8d82de21 100755 --- a/testcase/stream/tperf-stream-ON32-bnthread-32.py +++ b/testcase/stream/tperf-stream-ON32-bnthread-32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-32,OMP_NUM_THREADS=32 diff --git a/testcase/stream/tperf-stream-ON4-bnthread-4.py b/testcase/stream/tperf-stream-ON4-bnthread-4.py index 8a4e914cbd57237fbdeafabc7654e2ad22ea4e23..2f22a590e3b0aaf95c8a380ac2c9e550c2ed0d35 100755 --- a/testcase/stream/tperf-stream-ON4-bnthread-4.py +++ b/testcase/stream/tperf-stream-ON4-bnthread-4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-4,OMP_NUM_THREADS=4 diff --git a/testcase/stream/tperf-stream-ON8-bnthread-8.py b/testcase/stream/tperf-stream-ON8-bnthread-8.py index d7e0a4b6c8f6ed7c7c24e7c59ec92cbb0c82ceb8..f64aaf7e07849c67d86ab14512fae965327284a1 100755 --- a/testcase/stream/tperf-stream-ON8-bnthread-8.py +++ b/testcase/stream/tperf-stream-ON8-bnthread-8.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-8,OMP_NUM_THREADS=8 diff --git a/testcase/stream/tperf-stream-ONmax-bnmax.py b/testcase/stream/tperf-stream-ONmax-bnmax.py index c0bd89768158ddca69ccc2628e2e32a74300d824..0dad1240dc3cb3bd64acee5d563766d25897d625 100755 --- a/testcase/stream/tperf-stream-ONmax-bnmax.py +++ b/testcase/stream/tperf-stream-ONmax-bnmax.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=max,OMP_NUM_THREADS=max diff --git a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py index a8c49a42d9f2d3074d7efffaaac324f7d82cd148..b94d719303c9f3e52d7cef7454ed6723ffc2a0cd 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-128k-size-10g-rndwr,memory_block_size=128k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py index 722a1e2ce6c63de477ebe0c4c49c040581467173..9db4554736413d8d02a40b3174b52de0a5259541 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-128k-size-10g-seqwr,memory_block_size=128k,memory_total_size=10G,memory_oper=write,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py index e2262b94a72d103e307ddef89eb37d3db70cb923..823c2cf5c3cbbdb7ee42cfdad031bab7dcb92b08 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-16k-size-1g-seqrd,memory_block_size=16k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py index 9c135f15cfab7dbf2d8afbffb3d2f50e44afd2de..4f97cdc99d47ea11e9fad0bf872b6a9820fe01ab 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-1g-size-10g-rndrd,memory_block_size=1G,memory_total_size=10G,memory_oper=read,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py index d6351aedf9fe55eaaf3895495a89d9e1abb4acdb..29a9b4f0de46011fc902a63d3a81eab87c6c941b 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-1g-size-10g-rndwr,memory_block_size=1G,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py index 431543e8e1814d64e3598808491627db5c925388..86b663949472e0b83412f13a2393803f93f0164d 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-1k-size-1g-seqrd,memory_block_size=1k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py index 834575dc18a6431210ea519dced3ab7659da7b61..1a7c57f8e38bb425a2eb520c902329f740792af3 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-256k-size-10g-rndwr,memory_block_size=256k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py index 8da576cbdd60e4483623662c071ac026937f2389..b42de9c24b1c5054d00ea70e7a56545c472b45ff 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-2k-size-1g-seqrd,memory_block_size=2k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py index 93336d787276f9c3478317b7acd957593155101b..6071947acc35cd0dc6bc5252ae32e5c79f3c266e 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-rndrd,memory_block_size=32k,memory_total_size=1G,memory_oper=read,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py index b23707bb6bef073ba4bda1e987b71cbee7667404..baac89d1affdfbdc626dc848a0c36ec86b628957 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-rndwr,memory_block_size=32k,memory_total_size=1G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py index 27eaae5685a9c979ade92be7092988781f112fe3..e712cd89076f2ca05e71b84d6ce2f4289c53fe36 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-seqrd,memory_block_size=32k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py index 4c04616d210962f5e839a5d18acd774b255de27d..41b6e49d4b8e7f301d87f450803913e60aa39b41 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-seqwr,memory_block_size=32k,memory_total_size=1G,memory_oper=write,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py index 5b08b07b6a7ae0d52054bcaca2d30e1f5de7522f..a5a89f68ba06ee64b32ec2b768f08ce89d8c2cae 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-4k-size-1g-seqrd,memory_block_size=4k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py index d11fe8b4009e82c80832f79a929b7c03bb03b12f..3b02502bc9bf0ef3e500537c1c19df6202c2ab7c 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-512k-size-10g-rndwr,memory_block_size=512k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py index 9b994923a6847f7bc8970621b59b2d70eed671cb..79f6d7dc5fb68949d727be9350b4a03dddd9918a 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-512k-size-10g-seqwr,memory_block_size=512k,memory_total_size=10G,memory_oper=write,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py index dc021c9fb14227a70b7754bcfa21b53f7b19b897..f47f95e59ed821d6a8075949e368da14ad9003a4 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-64k-size-10g-rndrd,memory_block_size=64k,memory_total_size=10G,memory_oper=read,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py index 012e0f53e4278ab147f8444abd33f2601487ef58..7ccae07f8d80ba6b38833b6bd3d05ad161e43e0e 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-64k-size-10g-rndwr,memory_block_size=32k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py b/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py index add4dc5521722a13d2d812028f7dee9c5983d115..1e52aba946e980a9fa2b112c2c36581103d54697 100755 --- a/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py +++ b/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=thread-1,memory_block_size=,memory_total_size=,memory_oper=,memory_access_mode=,mm_threads=1,mm_time=300 diff --git a/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py b/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py index 69d5951857e4eaa4f19bc405bd2abcd02b3dc3e5..765b64add2d7d0670a1e0f05147c66ffd455553f 100755 --- a/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py +++ b/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=thread-max,memory_block_size=,memory_total_size=,memory_oper=,memory_access_mode=,mm_threads=max,mm_time=300 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py index ff00a6833f03cf87c3528a819b57f47ffce5fdad..da4d861ee9d3cdd683a55d2a06c668f43f7bb47d 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py index 60f8a57d8c63c6a6b1f355a7750bd3702025b129..86e47019217d8fc188403d606684d42c067b469c 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py index 237d13fe6d417ddedf673f68c7fbf867c83cc030..628d266c8cad6d1c9be9c2c47d40a45eb54b1c46 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py index be9b8269558d168eaf78942136b13d0b8cc8f53c..47ca4dbb807b0df435b7385dc2e477c96bf6ab98 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py index bebaa1613ea734d2a186636a87e99549de29fc3e..4e199167b92f6e330826e5a8e25509a8282f7e20 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py index 4003cd43a7c295e63af84bdd408a4764948f1b05..2e6beaa9bd102591573cdf8ace4ed3af872f7d12 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py index 51e371d2320af95e3c8a67a5acde443677dd534f..a3c0b7055044faa8858935469aa12a48917bcf32 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py index bfb082c060d3ade730a4f20818cc7900ec6dab87..5577a5e803391d40cb9b1cc9ec9a8111608f8ef7 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py index d81b9decc7608cddb621afabdff5451c81e2e0f1..fe73e21469f61927755b96c7cab07454749e7ad2 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py index 15468fecd8e2bec576f92877f5614f4065153853..9852a3862a27ec4f6fd5485963bdaadfccf4d1ab 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py index 3664266a7e30c108fadbceeb5429fcff63160a70..63ddb45539c63b1c2d860e4b6be7573a95fd19e3 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py index 29888dfe95f2251033e76b393e60861236bae1b2..a14a66fcf7af26c9d37071e81d9de62bd455fd92 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py index 82bb2d7c2f13f2119b4b52da7c0847473f123b4b..6f992a041925cfb004bbfdcde856255955350bf6 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py index e64e125e64ac6a1c9acf56cedd816be15c45b17a..34e37fd94ca9471c00d8fb9e114bf40c43b66179 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py index b623a5623880b3eabb60928d76d0f7d8abd20317..d8d6e15f902841b48ed6ab0e3caca99a19466f51 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py index c46e5f3f040f255393166b5e317d488dcf025d79..121728bc5ac067b749c075945e620d71f1c84934 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py index cca4ddb5fb2e8f5a37f5d300966d8b53a82dbac9..7904a4d06694f01cbbe0e071d84fa830cef05bc0 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py index 7354e83fb2f90f9b7128a263431eb2fc53b97b24..e1acd0790f484d62a2b6fd8ebe823cf7681459d0 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py index e58c402d591abc616fe3113d0bc422d8d711712e..1b64784d07b919dc24d428a247dfa59bc393c9b2 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py index 55ccf205c50ec828dbccf45f7f4e930c647b44cb..d095557e22293fd471d14374c10b9dc8ec091463 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py index cc4808cfa4583cab12cdb41eebb9dfb5613a1783..0a4e56e3715d2800800cf1b5cd8d796244cda095 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py index 6489c23e0151e06d76a1d234eafde2285faaa382..89c522ea680237ff3c29d59b62af69de0d6e635c 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py index 20260f79df8ae0906fe205822f1853de29e27927..36f8a3d8553d925067f48aa07ccdef3c5c34c837 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py index 06fd86e2db3e3b1d9bb388391da14ab1539ceb69..c9cf0cd81cbbac62f0e0f7c04a10a7e8d7da8583 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py index 5abde7501787fea215c7af973ae1314e07612cf0..825212ebc9d0ae8aa80826f5e8e1690752956bc1 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py index c12f591c09db4239e319b20ebbcd20cd6ad58148..ba7a2703434a12065af4e97711589ec782cb310e 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py index eb0380fa3d1eccb07d79af2b2ba8de6dac571caf..329905f8b27d8132957e606505449f7a189f40be 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py index 037c6bde37b41cd703b8b6d55327ded72021675f..3cd55c047ea4a7fefb401eff94cd853becdfc641 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py index 0b3d4b93bce534582cc96f57b13d9258ca2043c2..b863ad77869738aadf10d4e17785022e61063647 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py index 538762401581d3936e98a14c9cff08d0c2d147c3..1403300dd679667f8c0792537edd03c3b352ee88 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py index 512b6c08de35ee333ba0fb7cc9a11b3965cfc3a1..34894e7dae24080dc342113f40739d14ee447601 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py index 764c73560c9a23b75cc5810e35f6596cbefc04c5..5afe0679800b1161ef18e8108671747bb4100a2f 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py index 3590aecadcde72bc9366affb6d25cc607e2aa9e3..5d9789ea5be0252ec379cca1fad693778baa3bd7 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py index 30ef3e43ad15373634c147f59dff8a23a6e362eb..1542f3f536dfce3cc06c723175d3d1186b8419a5 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py index ed02197a3392df6743fe58ef24198bb149874118..a36033cc2f8b67383b6c8952e64273867baecd3b 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py index 50f50b4d73d6ec3b6f1b2b965a0cfde6716a7aac..60e313bb0514172657f5489da2836918a283d144 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py index ee7d9e17bd63688d2a947e201195a515bbf51c32..8db3f0d76db865db9986f77bb100ccf2aa5a2a6f 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py index 0c01ab0935743068cc01e53bb23ec8ae4c2faa2e..7d61157e6a385391b247ead7475a73274f7cdbd8 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py index 09065372204a2f158baf0f18d917655b4c6bac81..20604738bdb052101927aabba777b1e31b3ddf6c 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py index c9d1f8761c4cc27349f17de47f63ecb57e6b2fd2..bd441bb0729ec996fce5f6bae77d794211ea3452 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=4000 diff --git a/testcase/unixbench/tperf-unixbench-c1-teshell16.py b/testcase/unixbench/tperf-unixbench-c1-teshell16.py index 8a2b73b92ef4d633512771b38389baeb1530586e..b79ce103ea36630d4736169c1f46f4ad13245aed 100755 --- a/testcase/unixbench/tperf-unixbench-c1-teshell16.py +++ b/testcase/unixbench/tperf-unixbench-c1-teshell16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用unixbench测试mm性能,参数:testname=shell16,c=1 diff --git a/testcase/unixbench/tperf-unixbench-c1-tespawn.py b/testcase/unixbench/tperf-unixbench-c1-tespawn.py index 2ba79303301a893136bead0f2fd02776eaf4da7e..1fdac20c7f91879edaa58d57dc3f07b6eb0805fc 100755 --- a/testcase/unixbench/tperf-unixbench-c1-tespawn.py +++ b/testcase/unixbench/tperf-unixbench-c1-tespawn.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用unixbench测试mm性能,参数:testname=spawn,c=1 diff --git a/tools/stream/tst-build.sh b/tools/stream/tst-build.sh index 3a5b725c5e484b6747046a14a338c3cbdb1d3be4..b1234415ccea35fb5448352b749b3ce52474eeeb 100755 --- a/tools/stream/tst-build.sh +++ b/tools/stream/tst-build.sh @@ -23,17 +23,24 @@ build_tool() { nr_node="$(grep "^physical id" /proc/cpuinfo | sort | uniq | wc -l)" [ -z "$nr_node" ] && nr_node=2 [ "$nr_node" -lt 1 ] && nr_node=2 + local cache_size_kb cache_size_kb="$(cat /sys/devices/system/cpu/cpu0/cache/index*/size | grep -o "[0-9]\+" | sort -n | tail -n 1)" [ -z "$cache_size_kb" ] && cache_size_kb=$((32 * 1024)) [ "$cache_size_kb" -lt $((32 * 1024)) ] && cache_size_kb=$((32 * 1024)) - local STREAM_ARRAY_SIZE=$((cache_size_kb * 1024 * 5 * nr_node / 8)) + + local STREAM_ARRAY_SIZE=$((cache_size_kb * 1024 * 32 * nr_node / 8)) echo "nr_node=$nr_node, cache_size_kb=$cache_size_kb, STREAM_ARRAY_SIZE=$STREAM_ARRAY_SIZE" cp -r "$g_tool_dir" "$g_install_dir/build" || return 1 cd "$g_install_dir/build" \ - && sed -i "s|STREAM_ARRAY_SIZE=50000000|STREAM_ARRAY_SIZE=${STREAM_ARRAY_SIZE}|g" ./Makefile \ - && make -j + && gcc -O3 -fopenmp \ + -DSTREAM_ARRAY_SIZE=${STREAM_ARRAY_SIZE} \ + -DNTIMES=20 \ + -mcmodel=large \ + -mtune=native \ + -march=native \ + stream.c -o stream_c.exe } # 下面代码建议保持不变 diff --git a/tperf.py b/tperf.py index 340ae420198f0ba940cff1ba97f9a3d4b86c057f..7563f95059c8657acc521d0a730b2dacc67b3310 100755 --- a/tperf.py +++ b/tperf.py @@ -3,6 +3,29 @@ # Author: deshengwu # Time: 2025/07/14 15:23:53 # Desc: 运行TPerf性能测试 +# 测试执行成功后日志目录结构如下: +# logs/ +# ├── report.result +# ├── tperf-result -- 测试结果目录 +# │ └── 20260407-202553-660058 -- 测试时间戳,每次执行生成一个唯一目录 +# │ ├── env-info.json -- 环境信息 +# │ ├── loop-001 -- 测试轮次目录 +# │ │ ├── env-info.json -- 环境信息 +# │ │ ├── perf -- 性能测试结果目录 +# │ │ │ ├── tperf-debug-stream -- 以用例名命名的目录,内部以性能指标名命名的json文件 +# │ │ │ │ ├── tperf-debug-stream-Add.json -- 以性能指标名命名的json文件 +# │ │ │ │ ├── tperf-debug-stream-Copy.json +# │ │ │ │ ├── tperf-debug-stream-Scale.json +# │ │ │ │ └── tperf-debug-stream-Triad.json +# │ │ │ └── tperf-libmicro-strchr_10 +# │ │ │ └── tperf-libmicro-strchr_10.json +# │ │ └── testcase -- 用例日志目录,内部以用例名命名的日志文件 +# │ │ ├── tperf-debug-stream.log -- 用例日志文件 +# │ │ └── tperf-libmicro-strchr_10.log +# │ ├── loop-001.json -- 测试轮次结果json文件 +# │ ├── report-20260407-202553-660058.json -- 测试结果json文件 +# │ └── report-20260407-202553-660058.xlsx -- 测试结果excel文件 +# └── tperf-setup import argparse @@ -25,7 +48,7 @@ from common.lib.common import command_check # noqa: E402 g_debug = 0 -def dbg(msg: str, level=1): +def dbg(msg: object, level=1): if g_debug >= level: print(msg, file=sys.stderr, flush=True) @@ -51,15 +74,10 @@ def parse_args(): args_parser.add_argument("-c", "--config", help="环境配置文件", required=False) args_parser.add_argument("-t", "--template", help="性能用例集模板", required=False) args_parser.add_argument("-b", "--base", help="基准性能", required=False) - args_parser.add_argument( - "-l", "--loop", help="测试轮次", default=1, type=int, required=False - ) - args_parser.add_argument( - "-d", "--debug", help="打印调试日志", action="count", default=0, required=False - ) - args_parser.add_argument( - "-p", "--parse", help="解析性能测试结果", default=None, required=False - ) + args_parser.add_argument("-l", "--loop", help="测试轮次", default=1, type=int, required=False) + args_parser.add_argument("-d", "--debug", help="打印调试日志", action="count", default=0, required=False) + args_parser.add_argument("-p", "--parse", help="解析性能测试结果", default=None, required=False) + args_parser.add_argument("-s", "--score", help="计算性能评分", action="store_true", default=False) return args_parser.parse_args() @@ -74,10 +92,7 @@ def get_config(args: argparse.Namespace) -> dict: raise FileNotFoundError(f"配置文件{config_file}不存在") config = configparser.ConfigParser() config.read(config_file) - config_dict = { - section: collections.OrderedDict(config.items(section)) - for section in config.sections() - } + config_dict = {section: collections.OrderedDict(config.items(section)) for section in config.sections()} return config_dict @@ -101,10 +116,7 @@ def get_template(args: argparse.Namespace) -> collections.OrderedDict: row_index += 1 row = [item.strip() for item in row] if title_flag: - if ( - len(row) >= len(template_title_list) - and list(row)[:6] == template_title_list - ): + if len(row) >= len(template_title_list) and list(row)[:6] == template_title_list: title_flag = False title_list = row dbg(f"title_list:{title_list}") @@ -126,13 +138,9 @@ def get_template(args: argparse.Namespace) -> collections.OrderedDict: else: perf_item = row[1].strip() if len(perf_item) == 0: - raise ValueError( - f"row:{row_index} 性能用例{perf_case}性能指标名不能为空" - ) + raise ValueError(f"row:{row_index} 性能用例{perf_case}性能指标名不能为空") if perf_item in result_dict[perf_case]: - raise Exception( - f"row:{row_index} 性能用例{perf_case}性能指标{perf_item}重复" - ) + raise Exception(f"row:{row_index} 性能用例{perf_case}性能指标{perf_item}重复") result_dict[perf_case][perf_item] = collections.OrderedDict() for k, v in zip(title_list[2:], row[2:]): k = str(k).strip() @@ -146,9 +154,7 @@ def get_template(args: argparse.Namespace) -> collections.OrderedDict: warn(f"{perf_case} 指标 {perf_item} 权重 {v} 太小,设置为0") v = 0 if v > 100: - warn( - f"{perf_case} 指标 {perf_item} 权重 {v} 太大,设置为最大值100" - ) + warn(f"{perf_case} 指标 {perf_item} 权重 {v} 太大,设置为最大值100") v = 100 result_dict[perf_case][perf_item][k] = float(v) else: @@ -200,9 +206,7 @@ def env_node_cleanup(config: dict, runner_id: str): def get_env_info(): env_info = {} - env_info["time"] = ( - datetime.datetime.now().astimezone().isoformat(timespec="seconds") - ) + env_info["time"] = datetime.datetime.now().astimezone().isoformat(timespec="seconds") env_info["os"] = platform.system() env_info["arch"] = platform.machine() env_info["uname-a"] = command_check("uname -a")[0].strip() @@ -233,7 +237,7 @@ def get_node_env_info(config: dict): return env_info -def run_tperf(template: collections.OrderedDict, runner_id: str): +def run_tperf(template: collections.OrderedDict, runner_id: str, score: bool = False): tsuite = os.path.join(tperf_top_dir, "tsuite") wrapper_script = f"/tmp/tperf.wrapper.{runner_id}.sh" @@ -256,7 +260,7 @@ def run_tperf(template: collections.OrderedDict, runner_id: str): for tc_name in template: tc_index += 1 # 如果用例所有指标项的权重都是0,就忽略该用例,节约测试时间 - if all(x.get("权重", 0) == 0 for x in template[tc_name].values()): + if score and all(x.get("权重", 0) == 0 for x in template[tc_name].values()): warn(f"{tc_name} all item weight 0, ignore testcase") continue cmd = f"{wrapper_script} '{tsuite}' run {tc_name}" @@ -264,9 +268,7 @@ def run_tperf(template: collections.OrderedDict, runner_id: str): index_str = f"{tc_index}/{nr_tc}" prt(f"{index_str:7} {tc_name:50} ", end="") time_start = time.time() - outs, errs, code, pid = command_check( - cmd=cmd, check_code=False, check_errs=False - ) + outs, errs, code, pid = command_check(cmd=cmd, check_code=False, check_errs=False) dbg( f"run command: {cmd}, code: {code}, pid: {pid}, outs: {outs}, errs: {errs}", level=2, @@ -307,18 +309,14 @@ def run_tperf(template: collections.OrderedDict, runner_id: str): item_data["L1"] = template[tc_name][item].get("L1", "") item_data["L2"] = template[tc_name][item].get("L2", "") item_data["weight"] = weight - prt( - f" - {item:61} {item_data['value']} {item_data['unit']} L0:{item_data['L0']} weight:{weight}" - ) + prt(f" - {item:61} {item_data['value']} {item_data['unit']} L0:{item_data['L0']} weight:{weight}") msg(f"PASS: {pass_count}, FAIL: {fail_count}") if fail_count > 0: - raise RuntimeError(f"there are {fail_count} failed testcases") + err(f"there are {fail_count} failed testcases") return result_dict -def parse_result_files( - result_dir: str, template: collections.OrderedDict = None -) -> dict: +def parse_result_files(result_dir: str, template: collections.OrderedDict = None) -> dict: if not os.path.isdir(result_dir): raise NotADirectoryError(f"结果目录{result_dir}不存在") result_dict = collections.OrderedDict() @@ -341,9 +339,7 @@ def parse_result_files( if item not in template[tc]: continue loop_data[tc]["result"][item]["L0"] = template[tc][item]["L0"] - loop_data[tc]["result"][item]["weight"] = template[tc][item][ - "权重" - ] + loop_data[tc]["result"][item]["weight"] = template[tc][item]["权重"] result_dict[loop] = loop_data return result_dict @@ -359,13 +355,25 @@ def parse_data(args: argparse.Namespace) -> dict: if os.path.exists(result_json): warn(f"the result json {result_json} existed, remove it") os.remove(result_json) - report(data=result_dict, base=base, format="json", output=result_json) + report( + data=result_dict, + base=base, + format="json", + output=result_json, + score=args.score, + ) msg(f"parse report saved to {result_json}") result_excel = os.path.join(args.parse, f"parse-report-{report_id}.xlsx") if os.path.exists(result_excel): warn(f"the result excel {result_excel} existed, remove it") os.remove(result_excel) - report(data=result_dict, base=base, format="excel", output=result_excel) + report( + data=result_dict, + base=base, + format="excel", + output=result_excel, + score=args.score, + ) msg(f"parse report saved to {result_excel}") return args.parse @@ -461,17 +469,13 @@ def summary_result(data: dict, base: dict) -> dict: } for L0 in result_dict["dim"]: dbg(f"try get score for {L0}") - result_dict["dim"][L0]["score"] = int( - safe_weighted_geometric_mean(result_dict["dim"][L0]["data"]) * 10000 - ) + result_dict["dim"][L0]["score"] = int(safe_weighted_geometric_mean(result_dict["dim"][L0]["data"]) * 10000) msg(f"{L0} score: {result_dict['dim'][L0]['score']}") - result_dict["score"] = sum( - result_dict["dim"][L0]["score"] for L0 in result_dict["dim"] - ) + result_dict["score"] = sum(result_dict["dim"][L0]["score"] for L0 in result_dict["dim"]) return result_dict -def report_excel(data: dict, base: dict, output: str): +def report_excel(data: dict, base: dict, output: str, score: bool = True): from openpyxl import Workbook # pyright: ignore[reportMissingModuleSource] book = Workbook() @@ -505,14 +509,28 @@ def report_excel(data: dict, base: dict, output: str): summary_title.append("平均值") summary_title.append("极差/平均值") - sheet_summary.append(summary_title) - for dim in data[loop_list[0]]["score"]["dim"]: - summary_row = [dim] + if score: + sheet_summary.append(summary_title) + for dim in data[loop_list[0]]["score"]["dim"]: + summary_row = [dim] + score_list = [] + for loop in loop_list: + s = data[loop]["score"]["dim"][dim]["score"] + summary_row.append(s) + score_list.append(s) + max_value = max(score_list) + min_value = min(score_list) + avg_value = sum(score_list) / len(score_list) + range_value = max_value - min_value + range_avg_value = range_value / avg_value if avg_value != 0 else 0 + summary_row += [max_value, min_value, avg_value, range_avg_value] + sheet_summary.append(summary_row) + summary_row = ["总分"] score_list = [] for loop in loop_list: - score = data[loop]["score"]["dim"][dim]["score"] - summary_row.append(score) - score_list.append(score) + s = data[loop]["score"]["score"] + summary_row.append(s) + score_list.append(s) max_value = max(score_list) min_value = min(score_list) avg_value = sum(score_list) / len(score_list) @@ -520,19 +538,8 @@ def report_excel(data: dict, base: dict, output: str): range_avg_value = range_value / avg_value if avg_value != 0 else 0 summary_row += [max_value, min_value, avg_value, range_avg_value] sheet_summary.append(summary_row) - summary_row = ["总分"] - score_list = [] - for loop in loop_list: - score = data[loop]["score"]["score"] - summary_row.append(score) - score_list.append(score) - max_value = max(score_list) - min_value = min(score_list) - avg_value = sum(score_list) / len(score_list) - range_value = max_value - min_value - range_avg_value = range_value / avg_value if avg_value != 0 else 0 - summary_row += [max_value, min_value, avg_value, range_avg_value] - sheet_summary.append(summary_row) + else: + sheet_summary.append(["未计算评分,如需评分请使用 --score 参数"]) sheet_data.append(data_title) for tc_name in sorted(data[loop_list[0]]["data"].keys()): @@ -549,7 +556,10 @@ def report_excel(data: dict, base: dict, output: str): item_data.get("type", ""), item_data.get("unit", ""), ] - row_data.append(base[tc_name]["result"][item]["value"]) + if base: + row_data.append(base[tc_name]["result"][item]["value"]) + else: + row_data.append(0) data_list = [] for loop in loop_list: value = data[loop]["data"][tc_name]["result"][item].get("value", "") @@ -573,19 +583,18 @@ def report_excel(data: dict, base: dict, output: str): book.save(output) -def report(data: dict, base: dict, format: str, output: str): +def report(data: dict, base: dict, format: str, output: str, score: bool = True): data_dict = collections.OrderedDict() for loop in sorted(list(data.keys())): - summary = summary_result(data=data[loop], base=base) - data_dict[loop] = { - "data": data[loop], - "score": summary, - } + loop_entry = {"data": data[loop]} + if score: + loop_entry["score"] = summary_result(data=data[loop], base=base) + data_dict[loop] = loop_entry if format == "json": with open(output, "w") as f: json.dump(data_dict, f, indent=4, ensure_ascii=False) elif format == "excel": - report_excel(data=data_dict, base=base, output=output) + report_excel(data=data_dict, base=base, output=output, score=score) else: raise TypeError(f"unknown report format {format}") @@ -608,7 +617,9 @@ def main(): msg(f"runner_id: {runner_id}") config = get_config(args) template = get_template(args) - base = get_base(args) + base = None + if args.score: + base = get_base(args) env_node_prepare(config=config, runner_id=runner_id) # 将测试结果保存到文件 @@ -639,7 +650,7 @@ def main(): indent=4, ensure_ascii=False, ) - result_dict[loop] = run_tperf(template=template, runner_id=runner_id) + result_dict[loop] = run_tperf(template=template, runner_id=runner_id, score=args.score) dbg(result_dict[loop]) shutil.move(src=data_dir, dst=os.path.join(loop_dir, "perf")) shutil.move(src=case_log_dir, dst=os.path.join(loop_dir, "testcase")) @@ -651,15 +662,25 @@ def main(): loop_hour = int(time_loop_cost / 3600) loop_min = int((time_loop_cost % 3600) / 60) loop_sec = int(time_loop_cost % 60) - msg( - f"loop {loop} cost {loop_hour} hours {loop_min} minutes {loop_sec} seconds, dir: {loop_dir}" - ) + msg(f"loop {loop} cost {loop_hour} hours {loop_min} minutes {loop_sec} seconds, dir: {loop_dir}") dbg(json.dumps(result_dict, indent=4, ensure_ascii=False)) result_json = os.path.join(result_dir, f"report-{runner_id}.json") - report(data=result_dict, base=base, format="json", output=result_json) + report( + data=result_dict, + base=base, + format="json", + output=result_json, + score=args.score, + ) result_excel = os.path.join(result_dir, f"report-{runner_id}.xlsx") - report(data=result_dict, base=base, format="excel", output=result_excel) + report( + data=result_dict, + base=base, + format="excel", + output=result_excel, + score=args.score, + ) env_node_cleanup(config=config, runner_id=runner_id) except Exception as e: @@ -671,9 +692,7 @@ def main(): cost_min = int((time_cost % 3600) / 60) cost_sec = int(time_cost % 60) if args.parse: - msg( - f"parse result cost {cost_houe} hours {cost_min} minutes {cost_sec} seconds, result dir: {result_dir}" - ) + msg(f"parse result cost {cost_houe} hours {cost_min} minutes {cost_sec} seconds, result dir: {result_dir}") else: msg( f"{runner_id} run {args.loop} loops cost {cost_houe} hours {cost_min} minutes {cost_sec} seconds, "