chiark / gitweb /
test for original "v0" index XML compatibility
authorHans-Christoph Steiner <hans@eds.org>
Thu, 23 Feb 2017 20:23:45 +0000 (21:23 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 24 Feb 2017 10:01:01 +0000 (11:01 +0100)
commit56ef716a4eba81fe5b7365443e8e26adf8c2420e
tree2bdbaf00e2e01fc1c14299d1b8a73c34ccfd45d5
parent327ba335a7c446340385d463a40b15b8b6fbe99e
test for original "v0" index XML compatibility

The original index.xml format needs to stay around for backwards
compatibility, but we shouldn't touch it anymore once the new format is in
place.  This is a test to make sure `fdroid update` can still generate the
correct XML.

install_list and uninstall_list should be tuples or lists in order to
ensure that the order is preserved.

These tests also check that the added and lastupdated dates are
working correct, based on the dates in tests/stats/known_apks.txt. I
could see no useful way to test the timestamp, it is just hardcoded
using a regexp search-and-replace.  Running these tests manually might
require deleting tmp/apkcache.
.gitignore
examples/config.py
tests/config.py [new file with mode: 0644]
tests/keystore.jks [new file with mode: 0644]
tests/repo/categories.txt [new file with mode: 0644]
tests/repo/index.xml [new file with mode: 0644]
tests/run-tests
tests/stats/known_apks.txt [new file with mode: 0644]