Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Stop using ghostscript in tests #366

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/org.flatpak.Flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ modules:
stable-only: true
url-template: https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2

- name: ghostscript
- name: glib-networking
sources:
- type: archive
url: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/ghostscript-9.26.tar.xz
sha256: 90ed475f37584f646e9ef829932b2525d5c6fc2e0147e8d611bc50aa0e718598
url: https://download.gnome.org/sources/glib-networking/2.74/glib-networking-2.74.0.tar.xz
sha256: 1f185aaef094123f8e25d8fa55661b3fd71020163a0174adb35a37685cda613b
x-checker-data:
type: anitya
project-id: 1157
project-id: 21353
# Leaving stable-only unset to at least exercise the default path
url-template: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$version0$version1$version2/ghostscript-$version.tar.xz
url-template: https://download.gnome.org/sources/glib-networking/$version0.$version1/glib-networking-$version.tar.xz

- name: gnuradio-iqbal
buildsystem: cmake
Expand Down
8 changes: 4 additions & 4 deletions tests/test_anityachecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ async def test_check(self):

self.assertEqual(len(ext_data), 5)
for data in ext_data:
if data.filename == "ghostscript-9.26.tar.xz":
if data.filename == "glib-networking-2.74.0.tar.xz":
self.assertIsNotNone(data.new_version)
self.assertIsInstance(data.new_version, ExternalFile)
self.assertRegex(
data.new_version.url,
r"^https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs[\d]+/ghostscript-[\d.]+.tar.xz$",
r"^https://download.gnome.org/sources/glib-networking/\d+.\d+/glib-networking-[\d.]+.tar.xz$",
)
self.assertIsNotNone(data.new_version.version)
self.assertGreater(
LooseVersion(data.new_version.version), LooseVersion("9.26")
LooseVersion(data.new_version.version), LooseVersion("2.76")
)
self.assertIsInstance(data.new_version.size, int)
self.assertGreater(data.new_version.size, 0)
Expand All @@ -38,7 +38,7 @@ async def test_check(self):
self.assertNotEqual(
data.new_version.checksum,
MultiDigest(
sha256="90ed475f37584f646e9ef829932b2525d5c6fc2e0147e8d611bc50aa0e718598"
sha256="1f185aaef094123f8e25d8fa55661b3fd71020163a0174adb35a37685cda613b",
),
)
elif data.filename == "boost_1_74_0.tar.bz2":
Expand Down