]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
build-perf-bisect: add parsetime test method
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 30 Aug 2016 08:08:15 +0000 (11:08 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 6 Oct 2016 05:48:48 +0000 (08:48 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
build-perf-bisect.sh

index 947115158350bd0cc145dd0a56cc8961d7ec24a9..6ad63a7a8e1c10a203bba051e35e33c8b70b59e8 100755 (executable)
@@ -31,7 +31,8 @@ Optional arguments:
   -h                show this help and exit.
   -d                DL_DIR to use
   -m                test method, available options are:
-                        buildtime, tmpsize, esdktime (default: $test_method)
+                        buildtime, tmpsize, esdktime, parsetime
+                        (default: $test_method)
   -w                work directory to use
 EOF
 }
@@ -194,6 +195,13 @@ esdktime () {
     run_cmd rm -rf esdk-deploy tmp*
 }
 
+parsetime () {
+    run_cmd rm -rf bitbake.lock conf/sanity_info cache tmp sstate-cache
+
+    do_sync
+    result=`time_cmd bitbake -p` || exit 125
+    result_h=`s_to_hms $result`
+}
 
 #
 # MAIN SCRIPT
@@ -215,6 +223,11 @@ case "$test_method" in
         threshold_h=`s_to_hms $threshold`
         builddir="$workdir/build"
         ;;
+    parsetime)
+        threshold=`hms_to_s $2`
+        threshold_h=`s_to_hms $threshold`
+        build_target=""
+        ;;
     *)
         echo "Invalid test method $test_method"
         exit 255
@@ -231,7 +244,9 @@ echo CONNECTIVITY_CHECK_URIS = \"\" >> conf/local.conf
 # Do actual build
 log "TESTING REVISION $git_rev (#$git_rev_cnt)"
 log "fetching sources"
-run_cmd bitbake $build_target -c fetchall || exit 125
+if [ -n "$build_target" ]; then
+    run_cmd bitbake $build_target -c fetchall || exit 125
+fi
 
 $test_method $build_target