diff options
Diffstat (limited to 'meta/lib/oeqa/buildperf/basic_tests.py')
-rw-r--r-- | meta/lib/oeqa/buildperf/basic_tests.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/basic_tests.py b/meta/lib/oeqa/buildperf/basic_tests.py new file mode 100644 index 0000000000..95bb8d87cb --- /dev/null +++ b/meta/lib/oeqa/buildperf/basic_tests.py | |||
@@ -0,0 +1,31 @@ | |||
1 | # Copyright (c) 2016, Intel Corporation. | ||
2 | # | ||
3 | # This program is free software; you can redistribute it and/or modify it | ||
4 | # under the terms and conditions of the GNU General Public License, | ||
5 | # version 2, as published by the Free Software Foundation. | ||
6 | # | ||
7 | # This program is distributed in the hope it will be useful, but WITHOUT | ||
8 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
9 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
10 | # more details. | ||
11 | # | ||
12 | """Basic set of build performance tests""" | ||
13 | from . import BuildPerfTest, perf_test_case | ||
14 | |||
15 | |||
16 | @perf_test_case | ||
17 | class Test1P1(BuildPerfTest): | ||
18 | name = "test1" | ||
19 | build_target = 'core-image-sato' | ||
20 | description = "Measure wall clock of bitbake {} and size of tmp dir".format(build_target) | ||
21 | |||
22 | def _run(self): | ||
23 | self.log_cmd_output("bitbake {} -c fetchall".format(self.build_target)) | ||
24 | self.rm_tmp() | ||
25 | self.rm_sstate() | ||
26 | self.rm_cache() | ||
27 | self.sync() | ||
28 | self.measure_cmd_resources(['bitbake', self.build_target], 'build', | ||
29 | 'bitbake ' + self.build_target) | ||
30 | self.measure_disk_usage(self.bb_vars['TMPDIR'], 'tmpdir', 'tmpdir') | ||
31 | self.save_buildstats() | ||