diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2019-05-19 14:25:17 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2019-05-19 14:26:44 +0200 |
commit | 87f68145d6a0ab0b034f9e0f1958a00d83827357 (patch) | |
tree | 3eaabd167933c62464c116348e1636902bbbdaac | |
parent | 39c9958917ad038ca8474627cc8baecd84df6153 (diff) | |
download | embedlog-87f68145d6a0ab0b034f9e0f1958a00d83827357.tar.gz embedlog-87f68145d6a0ab0b034f9e0f1958a00d83827357.tar.bz2 embedlog-87f68145d6a0ab0b034f9e0f1958a00d83827357.zip |
test-compilation.sh: add generation of compilation test results
compilation-test-results will be generated in the directory
where test-compilation.sh is, with information which flags
did succed and which did not.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rwxr-xr-x | test-compilation.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test-compilation.sh b/test-compilation.sh index bdc83bb..6b0f10a 100755 --- a/test-compilation.sh +++ b/test-compilation.sh @@ -35,11 +35,19 @@ build() opts="${1}" project="${2}" slot="${3}" + project_dir="${4}" cd "${project}-${slot}" export AM_DISTCHECK_CONFIGURE_FLAGS="${opts}" make distcheck - exit ${?} + ret=${?} + + if [ ${ret} -eq 0 ] + then + echo "[ok] ${opts}" >> "${project_dir}/compilation-test-results" + else + echo "[nok] ${opts}" >> "${project_dir}/compilation-test-results" + fi } @@ -57,6 +65,9 @@ workdir="/tmp/parallel-test-compilation" combination_file="${workdir}/combinations" project="embedlog" optfile="test-compilation-options" +project_dir="$(dirname "${0}")" +cd "${project_dir}" +project_dir="$(pwd)" export -f build export -f prepare @@ -145,4 +156,4 @@ parallel --output-as-files --bar --results "${workdir}" \ # and run distcheck tests, will take a loooong time cat ${combination_file} | parallel --output-as-files --bar \ --results "${workdir}" --halt-on-error now,fail=1 --jobs ${num_jobs} \ - build {} "${project}" {%} + build {} "${project}" {%} "${project_dir}" |