ci: Record primary context results using g-d-t-r --log-directory
authorColin Walters <walters@verbum.org>
Tue, 26 Sep 2017 18:05:08 +0000 (14:05 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 27 Sep 2017 18:08:06 +0000 (18:08 +0000)
So the output isn't all intermingled.  I just pushed a commit
to add `--log-directory`, so we need to build it from git master
for now.

Closes: #1218
Approved by: jlebon

.papr.yml
ci/build-check.sh

index 9a25343119c406764fcad8bbb5ac2a1321d774bf..00512eda1836dfa4a6e577ec1bbd63b8f33c2929 100644 (file)
--- a/.papr.yml
+++ b/.papr.yml
@@ -25,9 +25,11 @@ tests:
 
 timeout: 30m
 
+# Keep this in sync with build-check.sh
 artifacts:
   - test-suite.log
   - config.log
+  - gdtr-results
 ---
 
 context: c7-primary
index 7df1f42409820987b48298eda939d2a9d78a51ad..cb9dbb8325cfb21af4f1a3705517bffd611d0cbd 100755 (executable)
@@ -6,12 +6,26 @@ set -xeuo pipefail
 dn=$(dirname $0)
 . ${dn}/libbuild.sh
 ${dn}/build.sh
+topdir=$(git rev-parse --show-toplevel)
+resultsdir=$(mktemp -d)
 make check
 make syntax-check  # TODO: do syntax-check under check
+# See comment below
+for x in test-suite.log config.log; do
+    mv ${x} ${resultsdir}
+done
 # And now run the installed tests
 make install
 if test -x /usr/bin/gnome-desktop-testing-runner; then
-    gnome-desktop-testing-runner -p 0 ${INSTALLED_TESTS_PATTERN:-libostree/}
+    mkdir ${resultsdir}/gdtr-results
+    # Temporary hack
+    (git clone --depth=1 https://git.gnome.org/browse/gnome-desktop-testing
+     cd gnome-desktop-testing
+     env NOCONFIGURE=1 ./autogen.sh
+     ./configure --prefix=/usr --libdir=/usr/lib64
+     make && rm -f /usr/bin/ginsttest-runner && make install)
+    # Use the new -L option
+    gnome-desktop-testing-runner -L ${resultsdir}/gdtr-results -p 0 ${INSTALLED_TESTS_PATTERN:-libostree/}
 fi
 
 if test -x /usr/bin/clang; then
@@ -25,3 +39,11 @@ if test -x /usr/bin/clang; then
     export CC=clang
     build
 fi
+
+# Keep this in sync with papr.yml
+# TODO; Split the main/clang builds into separate build dirs
+for x in test-suite.log config.log gdtr-results; do
+    if test -e ${resultsdir}/${x}; then
+        mv ${resultsdir}/${x} ${topdir}
+    fi
+done