diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-04 17:30:01 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-04 19:04:32 +0300 |
commit | d77f50aab8f7727eebcfb122a10607f2f9f7d835 (patch) | |
tree | 26920c92fe37fff2744c570ea3b91b6037151be1 /test | |
parent | 48dafae913459780cb081c8c31191ecbaf6b26f0 (diff) |
Isolate tests from a local repodir
This fixes the tests if a local /git/cygwin-packages happens to exist,
and adds some test coverage of code which examines repodir.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_calm.py | 2 | ||||
-rwxr-xr-x | test/testdata/htdocs.expected/summary/cygwin-src.html | 1 | ||||
-rw-r--r-- | test/testdata/process_arch/packages.json.expected | 1 | ||||
-rw-r--r-- | test/testdata/repodir/cygwin.git/cygwin.cygport | 0 |
4 files changed, 4 insertions, 0 deletions
diff --git a/test/test_calm.py b/test/test_calm.py index 819ce64..c494b76 100755 --- a/test/test_calm.py +++ b/test/test_calm.py @@ -149,6 +149,7 @@ class CalmTest(unittest.TestCase): args.dryrun = False args.force = True args.pkglist = 'testdata/pkglist/cygwin-pkg-maint' + args.repodir = 'testdata/repodir' try: shutil.rmtree(htdocs) @@ -421,6 +422,7 @@ class CalmTest(unittest.TestCase): args.inifile = os.path.join(args.rel_area, 'setup.ini') args.pkglist = 'testdata/pkglist/cygwin-pkg-maint' args.release = 'trial' + args.repodir = 'testdata/repodir' args.setup_version = '3.1415' args.stale = True diff --git a/test/testdata/htdocs.expected/summary/cygwin-src.html b/test/testdata/htdocs.expected/summary/cygwin-src.html index 87d13f0..d19e118 100755 --- a/test/testdata/htdocs.expected/summary/cygwin-src.html +++ b/test/testdata/htdocs.expected/summary/cygwin-src.html @@ -21,6 +21,7 @@ <span class="smaller">(Use <a href="/lists.html#cygwin">the mailing list</a> to report bugs or ask questions. <a href="/problems.html#personal-email">Do not contact the maintainer(s) directly</a>.)</span> <br><br> +<span class="detail">packaging repository</span>: <a href="/cgit/cygwin-packages/cygwin/">cygwin.git</a> <ul> <li><span class="detail">x86_64</span></li> <table class="pkgtable"> diff --git a/test/testdata/process_arch/packages.json.expected b/test/testdata/process_arch/packages.json.expected index 0a2a7df..a915f4d 100644 --- a/test/testdata/process_arch/packages.json.expected +++ b/test/testdata/process_arch/packages.json.expected @@ -51,6 +51,7 @@ ' "arches": [\n' ' "x86_64"\n' ' ],\n' + ' "build_recipe": "https://cygwin.com/cgit/cygwin-packages/cygwin/tree/cygwin.cygport",\n' ' "license": "LGPL-3.0-or-later WITH LGPL-3.0-linking-exception",\n' ' "maintainers": [\n' ' "Corinna Vinschen",\n' diff --git a/test/testdata/repodir/cygwin.git/cygwin.cygport b/test/testdata/repodir/cygwin.git/cygwin.cygport new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testdata/repodir/cygwin.git/cygwin.cygport |