summaryrefslogtreecommitdiff
path: root/tests/test-gpg-signed-commit.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-03-02 10:28:04 -0500
committerColin Walters <walters@verbum.org>2016-03-03 08:50:19 -0500
commitd25212f04ac824afff9f45e61be3d8e63be174f2 (patch)
treef9efa0baed1854462db1b4f7b1fd35b96d4edc1b /tests/test-gpg-signed-commit.sh
parent6d73a620e19dfc982fa08363aed441e0175c8d7b (diff)
downloadostree-d25212f04ac824afff9f45e61be3d8e63be174f2.tar.gz
tests: Port to glib-tap.mk, make `make check` run all of the tests
OSTree's code for testing predates the `glib-tap.mk` making its way into GLib. Let's switch to it, as it provides a number of advantages. By far the biggest advantage is that `make check` can start to run most of the tests *in addition* to having them work installed. This commit keeps the installed tests working, but `make check` turns out to be really broken because...our TAP usage has bitrotted to say the least. Fix that all up. Do some hacks so that the tests work uninstalled as well - in particular, `glib-tap.mk` and the bits encoded into `g_test_build_filename()` assume *recursive* Automake (blah). Work around that by creating a symlink when installed to loop back.
Diffstat (limited to 'tests/test-gpg-signed-commit.sh')
-rwxr-xr-x[-rw-r--r--]tests/test-gpg-signed-commit.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-gpg-signed-commit.sh b/tests/test-gpg-signed-commit.sh
index b713da2d..a0bf9832 100644..100755
--- a/tests/test-gpg-signed-commit.sh
+++ b/tests/test-gpg-signed-commit.sh
@@ -21,11 +21,14 @@
set -euo pipefail
if ! ostree --version | grep -q -e '\+gpgme'; then
- exit 77
+ echo "1..0 #SKIP no gpgme support compiled in"
+ exit 0
fi
. $(dirname $0)/libtest.sh
+echo "1..1"
+
setup_test_repository "archive-z2"
export OSTREE_GPG_SIGN="${OSTREE} gpg-sign --gpg-homedir=${TEST_GPG_KEYHOME}"
@@ -74,3 +77,5 @@ assert_file_has_content test2-delete 'Signatures deleted: 2'
if ${OSTREE} show test2 | grep -o 'Found [[:digit:]] signature'; then
assert_not_reached
fi
+
+echo "ok"