aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-19 18:26:02 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-19 18:26:02 +0200
commit60b20c0088dbe63c2aa7b550bae16b96278ce9ef (patch)
treebed28d9da9c6bfb935a5c7328b168f21e2b1b7ad
parentacedab7229f02cfeb71ece5b45239e45fe018dc6 (diff)
downloadembedlog-60b20c0088dbe63c2aa7b550bae16b96278ce9ef.tar.gz
embedlog-60b20c0088dbe63c2aa7b550bae16b96278ce9ef.tar.bz2
embedlog-60b20c0088dbe63c2aa7b550bae16b96278ce9ef.zip
test-compilation.sh: remove stdout when test is successfull
stdout can take a lot of space, and if we multiply it by number of compilation we do it will take TONS of memory just to hold unneded data. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rwxr-xr-xtest-compilation.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test-compilation.sh b/test-compilation.sh
index 0c64bd5..7b17631 100755
--- a/test-compilation.sh
+++ b/test-compilation.sh
@@ -37,6 +37,7 @@ build()
project="${2}"
slot="${3}"
project_dir="${4}"
+ workdir="${5}"
cd "${project}-${slot}"
export AM_DISTCHECK_CONFIGURE_FLAGS="${opts}"
@@ -46,6 +47,13 @@ build()
if [ ${ret} -eq 0 ]
then
echo "[ok] ${opts}" >> "${project_dir}/compilation-test-results"
+
+ # also, if test was ok, remove stdout from workdir - stdout takes
+ # about 4megs of data, and with 60k possible compilation flags
+ # it will take 240GB of data! And this number will only go up
+ # in the future releses.
+
+ unlink "${workdir}/1/${opts}/stdout"
else
echo "[nok] ${opts}" >> "${project_dir}/compilation-test-results"
fi
@@ -157,4 +165,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}" {%} "${project_dir}"
+ build {} "${project}" {%} "${project_dir}" "${workdir}"