From 4bdc945cdd72b50645e6f49ed0c3a59d7cb1a9d9 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 24 Dec 2013 10:42:22 +0000 Subject: [PATCH] scripts/run-regression-tests: Add 'make rpm' test git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5177 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/run-regression-tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/run-regression-tests b/scripts/run-regression-tests index 681b6af17..c859a4c00 100755 --- a/scripts/run-regression-tests +++ b/scripts/run-regression-tests @@ -96,6 +96,17 @@ function duplicate_scst_source_tree { fi } +function make_rpm { + local outputfile="${outputdir}/make-rpm-output.txt" + + echo "Testing whether 'make rpm' works fine ..." + if make rpm > "${outputfile}" 2>&1; then + echo "OK" + else + echo "FAILED" + fi +} + function compile_scst { ( export KCFLAGS=-DCONFIG_SCST_MEASURE_LATENCY @@ -555,6 +566,9 @@ if [ "${run_local_compilation}" = "true" ]; then compile_scst_patched 2release || exit $? compile_scst_patched 2perf || exit $? compile_scst_patched enable_proc || exit $? + if type rpmbuild >/dev/null 2>&1; then + make_rpm || exit $? + fi fi first_iteration="true"