diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/buildperf/basic_tests.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/basic_tests.py b/meta/lib/oeqa/buildperf/basic_tests.py index 4ebbb77574..ada5aba053 100644 --- a/meta/lib/oeqa/buildperf/basic_tests.py +++ b/meta/lib/oeqa/buildperf/basic_tests.py | |||
@@ -11,8 +11,10 @@ | |||
11 | # | 11 | # |
12 | """Basic set of build performance tests""" | 12 | """Basic set of build performance tests""" |
13 | import os | 13 | import os |
14 | import shutil | ||
14 | 15 | ||
15 | from . import BuildPerfTest, perf_test_case | 16 | from . import BuildPerfTest, perf_test_case |
17 | from oeqa.utils.commands import get_bb_vars | ||
16 | 18 | ||
17 | 19 | ||
18 | @perf_test_case | 20 | @perf_test_case |
@@ -103,3 +105,29 @@ class Test3(BuildPerfTest): | |||
103 | # Parse with fully cached data | 105 | # Parse with fully cached data |
104 | self.measure_cmd_resources(['bitbake', '-p'], 'parse_3', | 106 | self.measure_cmd_resources(['bitbake', '-p'], 'parse_3', |
105 | 'bitbake -p (cached)') | 107 | 'bitbake -p (cached)') |
108 | |||
109 | |||
110 | @perf_test_case | ||
111 | class Test4(BuildPerfTest): | ||
112 | name = "test4" | ||
113 | build_target = 'core-image-sato' | ||
114 | description = "eSDK metrics" | ||
115 | |||
116 | def _run(self): | ||
117 | self.log_cmd_output("bitbake {} -c do_populate_sdk_ext".format( | ||
118 | self.build_target)) | ||
119 | self.bb_vars = get_bb_vars(None, self.build_target) | ||
120 | tmp_dir = self.bb_vars['TMPDIR'] | ||
121 | installer = os.path.join( | ||
122 | self.bb_vars['SDK_DEPLOY'], | ||
123 | self.bb_vars['TOOLCHAINEXT_OUTPUTNAME'] + '.sh') | ||
124 | # Measure installer size | ||
125 | self.measure_disk_usage(installer, 'installer_bin', 'eSDK installer') | ||
126 | # Measure deployment time and deployed size | ||
127 | deploy_dir = os.path.join(tmp_dir, 'esdk-deploy') | ||
128 | if os.path.exists(deploy_dir): | ||
129 | shutil.rmtree(deploy_dir) | ||
130 | self.sync() | ||
131 | self.measure_cmd_resources([installer, '-y', '-d', deploy_dir], | ||
132 | 'deploy', 'eSDK deploy') | ||
133 | self.measure_disk_usage(deploy_dir, 'deploy_dir', 'deploy dir') | ||