[aur-dev] [PATCH 0/8] Introduce a test suite for the Git/SSH interface

Lukas Fleischer lfleischer at archlinux.org
Fri Aug 5 10:19:18 UTC 2016


This larger patch set adds a test suite for the Git/SSH interface. It
also includes some very basic tests of git-auth, git-serve and
git-update.

The series consists of three major parts: Patches 1, 4, 5, 6 and 7
prepare the code and the database schema such that one can alternatively
use SQLite as database backend. Patches 2 and 3 add support for
overriding the path to the configuration file using an environment
variable. The last patch finally adds the test suite and some tests.
Since it makes use of the new SQLite backend, no MySQL server is
required.

The whole topic will be merged to pu and sit there for a while.

Comments welcome!

Lukas Fleischer (8):
  git-interface: Add database abstraction layer
  git-interface: Factor out configuration file parsing
  git-interface: Add AUR_CONFIG environment variable
  git-interface: Do not use rowcount
  git-interface: Do not use UNIX_TIMESTAMP
  git-interface: Support SQLite as database backend
  Cleanup database schema
  git-interface: Add test suite and basic tests

 conf/config.proto                  |   2 +-
 git-interface/config.py            |  31 ++
 git-interface/db.py                |  51 +++
 git-interface/git-auth.py          |  33 +-
 git-interface/git-serve.py         |  96 ++---
 git-interface/git-update.py        | 162 ++++---
 git-interface/test/Makefile        |  11 +
 git-interface/test/setup.sh        | 121 ++++++
 git-interface/test/sharness.sh     | 851 +++++++++++++++++++++++++++++++++++++
 git-interface/test/t0001-auth.sh   |  19 +
 git-interface/test/t0002-serve.sh  |  26 ++
 git-interface/test/t0003-update.sh |  20 +
 schema/aur-schema.sql              |  67 ++-
 13 files changed, 1288 insertions(+), 202 deletions(-)
 create mode 100644 git-interface/config.py
 create mode 100644 git-interface/db.py
 create mode 100644 git-interface/test/Makefile
 create mode 100644 git-interface/test/setup.sh
 create mode 100644 git-interface/test/sharness.sh
 create mode 100755 git-interface/test/t0001-auth.sh
 create mode 100755 git-interface/test/t0002-serve.sh
 create mode 100755 git-interface/test/t0003-update.sh

-- 
2.9.2


More information about the aur-dev mailing list