Fixture providing valid PKGBUILD content.
()
| 56 | |
| 57 | @pytest.fixture |
| 58 | def valid_pkgbuild_content() -> str: |
| 59 | """Fixture providing valid PKGBUILD content.""" |
| 60 | return """ |
| 61 | #!/bin/bash |
| 62 | # Disable unused variable warnings: |
| 63 | # shellcheck disable=2034 |
| 64 | pkgname=(example) |
| 65 | pkgver=0.1.0 |
| 66 | pkgrel=1 |
| 67 | epoch=1 |
| 68 | arch=(x86_64 aarch64) |
| 69 | |
| 70 | pkgdesc="A example with all pkgbase properties set." |
| 71 | url="https://archlinux.org/" |
| 72 | license=(MIT) |
| 73 | changelog=changelog |
| 74 | install=install.sh |
| 75 | groups=( |
| 76 | group |
| 77 | group_2 |
| 78 | ) |
| 79 | backup=(etc/pacman.conf) |
| 80 | options=("!lto") |
| 81 | |
| 82 | depends=(default_dep) |
| 83 | optdepends=(default_optdep) |
| 84 | provides=(default_provides) |
| 85 | conflicts=(default_conflict) |
| 86 | replaces=(default_replaces) |
| 87 | |
| 88 | # x86_64 specific stuff |
| 89 | # This should show up in the test |
| 90 | depends_x86_64=(arch_default_dep) |
| 91 | optdepends_x86_64=(arch_default_optdep) |
| 92 | provides_x86_64=(arch_default_provides) |
| 93 | conflicts_x86_64=(arch_default_conflict) |
| 94 | replaces_x86_64=(arch_default_replaces) |
| 95 | |
| 96 | package_example() { |
| 97 | echo "Building something" |
| 98 | } |
| 99 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected