Natanael Copa
9d5b268aec
functions: hide error on missing git remote origin
2022-06-22 16:13:07 +02:00
Natanael Copa
fe74a8a760
abump: fix help/usage
...
- exit with success with -h is specified and use stdout
2022-06-22 16:13:07 +02:00
Natanael Copa
df0eece116
tests: remove abuild.bats
...
its completely ported now
2022-06-22 16:13:07 +02:00
Natanael Copa
709235bc82
tests: abuild: port mutiline license test
2022-06-22 16:13:07 +02:00
Natanael Copa
bd84b91ba9
test: abuild: port invalid pkgname/subpkgname/subpkgversion
2022-06-22 16:13:07 +02:00
Natanael Copa
07894fa745
tests: abuild: port invalid-initd test
2022-06-22 16:13:07 +02:00
Natanael Copa
30b493d4b2
tests: abuild: port and fix py provides generation
2022-06-22 16:13:07 +02:00
Natanael Copa
ca29f73dfe
tests: abuild: port subpkg-dep-leak test
2022-06-22 16:13:07 +02:00
Natanael Copa
9c67324854
tests: abuild: port duplicate checksum test
2022-06-22 16:13:07 +02:00
Natanael Copa
e25a2b6fc5
abuild: use timestamp of APKBUILD if not in git
...
we normally use the last git commit timestamp for creating reproducible
builds. Fall back to APKBUILD timestamp if there are no git commits.
2022-06-22 16:13:07 +02:00
Natanael Copa
e684847caf
tests: add test for checksum generation
2022-06-22 16:13:07 +02:00
Natanael Copa
2e3816d08c
tests: abuild: port reproducible build test
2022-06-22 16:13:07 +02:00
Natanael Copa
f932f3d32a
tests: abuild: add tests for dbg subpackage
...
Apparently tmpfs does not support extended attributes user namespace, so
ddrop the SETFATTR=false test.
2022-06-22 16:13:07 +02:00
Natanael Copa
35592db050
tests: abuild: add lib64 tests
2022-06-22 16:13:07 +02:00
Natanael Copa
1b66d65805
tests: abuild: add test for invalid filename
2022-06-22 16:13:07 +02:00
Natanael Copa
a845a0bf1d
abuild: echo invalid filenames to stderr
2022-06-22 16:13:07 +02:00
Natanael Copa
1913c6929c
tests: refacgor abuild build failure
2022-06-22 16:13:07 +02:00
Natanael Copa
209ad1f6ab
tests: abuild: add test for simple build
2022-06-22 16:13:07 +02:00
Natanael Copa
1a4e76dd74
abuild: export $git to fix fatal: not a git repository
...
We re-spawn abuild and need to pass $git
2022-06-22 16:13:07 +02:00
Natanael Copa
63467b1ef3
abuild: pass -v option to subshells
...
Help debugging in fakeroot by passing -v option
2022-06-22 16:13:07 +02:00
Natanael Copa
4da872b8c9
tests: abuild: test show version
2022-06-22 16:13:07 +02:00
Natanael Copa
f69cbe8b96
abuild: show usage on stderr on invalid options
2022-06-22 16:13:07 +02:00
Natanael Copa
0a9f7d1e31
tests: abuild-sign: refactor owner 0/0 test
...
Refactor test that verifies that owner in tar archive is numeric 0/0
2022-06-22 16:13:07 +02:00
Natanael Copa
ea4c0e0eba
abuild-sign: fix --installed to detect missing keys
2022-06-22 16:13:07 +02:00
Natanael Copa
32d080e427
abuild-sign: send help text to stderr on error
2022-06-22 16:13:07 +02:00
Natanael Copa
97d6a8567d
tests: add tests for abuild-sign
...
Test help text, invalid opts and args, and --installed
2022-06-22 16:13:07 +02:00
Natanael Copa
657a2086cf
abuild-keygen: allow override git binary
...
Makes it easier to test without creating a fake git binary
2022-06-22 16:13:07 +02:00
Natanael Copa
2326f0c4ef
tests: refactor abuild-keygen tests
2022-06-22 16:13:07 +02:00
Natanael Copa
7f675c1de3
abuild-keygen: use 4096 bits as the default
2022-06-22 16:13:07 +02:00
Natanael Copa
11c1091659
abulid-keygen: only send help text to stderr on error
2022-06-22 16:13:07 +02:00
Natanael Copa
ad5697ac44
tests: refactor test for abuild-gzsplit
...
Also test that the splitted components contains what is expected
2022-06-22 16:13:07 +02:00
Natanael Copa
26938597a0
tests: remove abuild-fetch.bats
...
It is replaced by abuild_fetch_test
2022-06-22 16:13:07 +02:00
Natanael Copa
14b89510ec
tests: abuild-fetch: add test for fetch locking
2022-06-22 16:13:07 +02:00
Natanael Copa
956f452c10
tests: abuild-fetch: use -d to set output dir
2022-06-22 16:13:07 +02:00
Natanael Copa
0fe4de3663
tests: abuild-fetch: test wget --no-check-certificate
2022-06-22 16:13:07 +02:00
Natanael Copa
c87b6a47fe
tests: abuild-fetch: test wget failure
2022-06-22 16:13:07 +02:00
Natanael Copa
0c40d8aca7
tests: abuild-fetch: test wget fallback
2022-06-22 16:13:07 +02:00
Natanael Copa
684cd989e6
tests: abuild-fetch: add test for http --insecure
...
when abuild-fetch is used with http source, curl should add --insecure
option. Verify this in a test.
2022-06-22 16:13:07 +02:00
Natanael Copa
d7d4eb7d60
tests: abuild-fetch: test curl failure
2022-06-22 16:13:07 +02:00
Natanael Copa
38a62bd063
tests: abuild-fetch: add test for curl invocation
2022-06-22 16:13:07 +02:00
Natanael Copa
911550dbe1
tests: add test for abuild-fetch help
2022-06-22 16:13:07 +02:00
Natanael Copa
f24dcff607
tests: functions.sh: test missing git
2022-06-22 16:13:07 +02:00
Natanael Copa
b9739f2c3f
functions.sh: make it possible to set git binary
...
to help with testing
2022-06-22 16:13:07 +02:00
Natanael Copa
9dc6b74058
tests: Switch to kyua/atf-test, add tests for functions.sh
2022-06-22 16:13:07 +02:00
Natanael Copa
4d3c8c8533
functions.sh: send error message to stderr
2022-06-14 16:38:40 +02:00
Leo
8219a3219f
newapkbuild: use meson-abuild helper instead of meson
...
abuild-meson is a shellscript that wraps around meson and passes options
meant for packaging software that uses meson, for Alpine Linux.
2022-06-14 13:45:20 +00:00
psykose
b070451ae3
apkgrel: pass -- to git with name of file in do_add
...
the name of the file can be ambiguous, as it might also be the name of a
branch. passing -- makes git look at it as a file only, and not a
potential branch.
2022-06-14 13:41:14 +00:00
Nathan Rennie-Waldock
83f19b7fd8
abuild: Fix always reporting ccache as missing when USE_CCACHE=1
2022-06-14 12:40:59 +00:00
Jakub Jirutka
140d8ab82c
newapkbuild: do not run cargo test with --release
...
It takes a longer time to compile and, most importantly, it may cause
unnecessary rebuild of everything in the package phase (installation).
2022-06-14 12:25:28 +00:00
Jakub Jirutka
bf1dae494b
newapkbuild: fetch rust dependencies in prepare phase
...
Fetch all dependencies in the prepare phase and do not access network
in the following phases.
2022-06-14 12:25:28 +00:00