[aur-dev] [PATCH 00/17] Add tests for Python scripts

Lukas Fleischer lfleischer at archlinux.org
Mon Sep 26 07:24:44 UTC 2016


Various changes in the way Python scripts and tests are organized.
Shared Python modules are now placed in a site-packages directory.

Tests for mkpkglists, tuvotereminder, pkgmaint and aurblup are added.

Lukas Fleischer (17):
  Add a main() method to all Python scripts
  git-auth: Move entry point to a main() method
  git-serve: Pass user and privileges as parameters
  git-serve: Move entry point to a main() method
  git-update: Move entry point to a main() method
  Use setuptools to install Python modules
  Use config and db in scripts
  Make test suite paths top-level directory relative
  Reorganize tests
  Update README
  mkpkglists: Make output files configurable
  Add tests for mkpkglists
  Add tests for tuvotereminder
  scripts: Do not use UNIX_TIMESTAMP
  Add tests for pkgmaint
  aurblup: Drop support for multiple servers
  Add tests for aurblup

 README                                             |   6 +
 aurweb/__init__.py                                 |   0
 {git-interface => aurweb}/config.py                |   0
 {git-interface => aurweb}/db.py                    |  16 +-
 conf/config.proto                                  |   6 +-
 git-interface/__init__.py                          |   0
 git-interface/git-auth.py                          |  58 ++--
 git-interface/git-serve.py                         | 270 ++++++++++---------
 git-interface/git-update.py                        | 300 +++++++++++----------
 scripts/__init__.py                                |   0
 scripts/aurblup.py                                 | 105 ++++----
 scripts/mkpkglists.py                              |  71 +++--
 scripts/notify.py                                  | 278 ++++++++++---------
 scripts/pkgmaint.py                                |  31 +--
 scripts/popupdate.py                               |  52 ++--
 scripts/tuvotereminder.py                          |  40 ++-
 setup.py                                           |  20 ++
 {git-interface/test => test}/Makefile              |   0
 {git-interface/test => test}/setup.sh              |  29 +-
 {git-interface/test => test}/sharness.sh           |   0
 .../test/t0001-auth.sh => test/t1100-git-auth.sh   |   0
 .../test/t0002-serve.sh => test/t1200-git-serve.sh |   0
 .../t0003-update.sh => test/t1300-git-update.sh    |   0
 test/t2100-mkpkglists.sh                           |  47 ++++
 test/t2200-tuvotereminder.sh                       |  26 ++
 test/t2300-pkgmaint.sh                             |  26 ++
 test/t2400-aurblup.sh                              |  53 ++++
 27 files changed, 818 insertions(+), 616 deletions(-)
 create mode 100644 aurweb/__init__.py
 rename {git-interface => aurweb}/config.py (100%)
 rename {git-interface => aurweb}/db.py (73%)
 create mode 100644 git-interface/__init__.py
 create mode 100644 scripts/__init__.py
 create mode 100644 setup.py
 rename {git-interface/test => test}/Makefile (100%)
 rename {git-interface/test => test}/setup.sh (89%)
 rename {git-interface/test => test}/sharness.sh (100%)
 rename git-interface/test/t0001-auth.sh => test/t1100-git-auth.sh (100%)
 rename git-interface/test/t0002-serve.sh => test/t1200-git-serve.sh (100%)
 rename git-interface/test/t0003-update.sh => test/t1300-git-update.sh (100%)
 create mode 100755 test/t2100-mkpkglists.sh
 create mode 100755 test/t2200-tuvotereminder.sh
 create mode 100755 test/t2300-pkgmaint.sh
 create mode 100755 test/t2400-aurblup.sh

-- 
2.10.0


More information about the aur-dev mailing list