[PATCH 4/5] email-test-patchset: add support for Make options.

Artem Bityutskiy dedekind1 at gmail.com
Wed Feb 5 02:50:51 PST 2014


From: Jacob Keller <jacob.e.keller at intel.com>

aiaiai-test-patchset has support for kernel make options which allows the
user to have more fine grained control over the compilation process. However,
the email form did not support passing these options to the test program. This
patch adds a configuration (per project) for specifying make options, so that
the user can have this fine grained control over the kernel build process.

Artem: amend commentaries a bit.

Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
---
 email/aiaiai-email-sh-functions  | 13 +++++++++----
 email/aiaiai-email-test-patchset |  1 +
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/email/aiaiai-email-sh-functions b/email/aiaiai-email-sh-functions
index eb75a14..36c5564 100644
--- a/email/aiaiai-email-sh-functions
+++ b/email/aiaiai-email-sh-functions
@@ -158,10 +158,14 @@ parse_config()
 }
 
 # Similar to "parse_config", but parses a project configuration section. If the
-# project is found, the following variables are defined: cfg_name. cfg_descr,
-# cfg_path, cfg_configs, cfg_branch, cfg_reply_to_all, cfg_accept_notify,
-# cfg_always_cc, cfg_unwanted_keywords. If the project is not found, this
-# function only defined an empty "cfg_name" variable.
+# project is found, the following variables are defined:
+#
+# cfg_name. cfg_descr, cfg_path, cfg_configs, cfg_branch, cfg_reply_to_all,
+# cfg_accept_notify, cfg_always_cc, cfg_unwanted_keywords, and
+# cfg_make_options.
+#
+# If the project is not found, this function only defined an empty "cfg_name"
+# variable.
 #
 # Usage: parse_prj_config <cfgfile> <prj>
 parse_prj_config()
@@ -181,6 +185,7 @@ parse_prj_config()
 
 	cfg_always_cc="$(ini_config_get "$cfgfile" "prj_$prj" "always_cc")"
 	cfg_unwanted_keywords="$(ini_config_get "$cfgfile" ""prj_$prj"" "unwanted_keywords")"
+	cfg_make_options="$(ini_config_get "$cfgfile" "prj_$prj" "make_options")"
 }
 
 # Compose (but not send) e-mail reply. This function assumes that the following
diff --git a/email/aiaiai-email-test-patchset b/email/aiaiai-email-test-patchset
index b4efcaf..77ead41 100755
--- a/email/aiaiai-email-test-patchset
+++ b/email/aiaiai-email-test-patchset
@@ -333,6 +333,7 @@ aiaiai-test-patchset $verbose $preserve $bisectability $sparse $smatch $cppcheck
 	-i "$mbox" -j "$cfg_jobs" -c "$cfg_branch" -w "$tmpdir" \
 	${confdir:+-C "$confdir"} \
 	${cfg_unwanted_keywords:+-K "$cfg_unwanted_keywords"} -- \
+	${cfg_make_options:+-M "$cfg_make_options"} \
 	"$cfg_path" "$cfg_configs" > "$tmpdir/test-patchset.log" ||
 {
 	verbose "aiaiai-test-patchset failed"
-- 
1.8.5.2




More information about the aiaiai mailing list