mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
add a simple test of the binary transparency log
This makes sure it gets generated with two commits: README and first log.
This commit is contained in:
parent
110914ebf3
commit
a737255ce4
1 changed files with 21 additions and 0 deletions
|
|
@ -553,6 +553,27 @@ fi
|
||||||
set -e
|
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 '<application id=' repo/index.xml > /dev/null
|
||||||
|
cd binary_transparency
|
||||||
|
[ `git rev-list --count HEAD` == "2" ]
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "setup a new repo with keystore with APK, update, then without key"
|
echo_header "setup a new repo with keystore with APK, update, then without key"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue