From: Hans-Christoph Steiner Date: Thu, 16 Mar 2017 18:22:32 +0000 (+0100) Subject: add a simple test of the binary transparency log X-Git-Tag: 0.8~101^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a737255ce438717e7841f6d7de8c592a4f636d97;p=fdroidserver.git add a simple test of the binary transparency log This makes sure it gets generated with two commits: README and first log. --- diff --git a/tests/run-tests b/tests/run-tests index 027d1cec..66c4b2a1 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -553,6 +553,27 @@ fi set -e +#------------------------------------------------------------------------------# +echo_header "copy tests/repo, update with binary transparency log" + +REPOROOT=`create_test_dir` +GNUPGHOME=$REPOROOT/gnupghome +KEYSTORE=$WORKSPACE/tests/keystore.jks +cd $REPOROOT +$fdroid init --keystore $KEYSTORE --repo-keyalias=sova +cp -a $WORKSPACE/tests/metadata $WORKSPACE/tests/repo $WORKSPACE/tests/stats $REPOROOT/ +echo 'keystorepass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py +echo 'keypass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py +echo 'binary_transparency_remote = "git@gitlab.com:fdroid-continuous-integration/binary-transparency.git"' >> config.py +echo "accepted_formats = ['json', 'txt', 'yml']" >> config.py +$fdroid update --verbose --pretty +test -e repo/index.xml +test -e repo/index.jar +grep -F '