pmbootstrap/test
Oliver Smith 5438085e62
pmb/parse/_apkbuild: fix parsing commented lines (!1837)
Properly ignore comments at the end of lines, instead of assuming that
all lines below belong to the attribute:
	subpackages="$pkgname-dev" # $pkgname-lang

Fixes build.postmarketos.org#61, where pmbootstrap would assume that a
random package provides "make", just because the word "make" is written
somewhere below subpackages=" in the APKBUILD and it is parsed
incorrectly.

While at it, also support the ' character for quotations and detect if
a quotation for a value was started, but there is no end quotation sign
in the rest of the file.

I've added tests, and manually checked that this did not introduce any
parsing bugs for all the APKBUILDs in pmaports.git, by running
'pmbootstrap apkbuild_parse' with the old and new code, and diffing the
result.
2019-11-30 12:44:06 +01:00
..
testdata Detect if DTB is placed in second area of Android boot image (!1828) 2019-10-25 17:36:22 +02:00
static_code_analysis.sh Move aports into own repository (pmaports) 2018-09-05 05:57:38 +00:00
test_apk_static.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_aportgen.py pmb/build/_package.py: create .git symlink (!1831) 2019-11-10 12:29:55 +01:00
test_aportgen_device_wizard.py pmb/build/_package.py: create .git symlink (!1831) 2019-11-10 12:29:55 +01:00
test_bootimg.py Detect if DTB is placed in second area of Android boot image (!1828) 2019-10-25 17:36:22 +02:00
test_build_is_necessary.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_build_package.py pmb/build/_package.py: create .git symlink (!1831) 2019-11-10 12:29:55 +01:00
test_chroot_interactive_shell.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_config_user.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_cross_compile_distcc.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_envkernel.py envkernel: Add build command to create an apk package from envkernel (!1747) 2019-02-15 16:24:07 +01:00
test_file.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_folder_size.py pmb: increase inode count for rootfs and use a more accurate size (!1743) 2019-01-21 08:42:22 +01:00
test_frontend.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_helpers_package.py repo_missing: don't check arch recursively (!1820) 2019-10-01 10:46:21 +02:00
test_helpers_pmaports.py pmaports.guess_main: new assumption for -dev pkgs (!1827) 2019-10-20 20:03:56 +02:00
test_helpers_repo_missing.py repo_missing: don't check arch recursively (!1820) 2019-10-01 10:46:21 +02:00
test_install.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_keys.py pmb/data/keys/pmos-5a03a13a.rsa.pub: remove (!1835) 2019-11-21 23:52:25 +01:00
test_mount.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_newapkbuild.py test_newapkbuild: enable full test again (!1792) 2019-06-26 23:52:23 +02:00
test_parse_apkbuild.py pmb/parse/_apkbuild: fix parsing commented lines (!1837) 2019-11-30 12:44:06 +01:00
test_parse_apkindex.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_parse_depends.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_pkgrel_bump.py pmb/build/_package.py: create .git symlink (!1831) 2019-11-10 12:29:55 +01:00
test_qemu_running_processes.py Fix case sensitivity: Qemu => QEMU (!1800) 2019-07-05 20:27:12 +02:00
test_questions.py pmb.config.init: 2-step device selection (!1825) 2019-10-30 22:51:33 +01:00
test_repo.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_run_core.py Fix spelling mistakes (!1794) 2019-06-25 09:20:05 +02:00
test_shell_escape.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
test_version.py Add pmb.parse.version.check_string() (!1796) 2019-06-30 16:39:56 +02:00
test_version_validate.py Update copyright to 2019 2019-01-02 09:31:20 +01:00
testcases_fast.sh Run aportgen test in CI again (!1727) 2018-12-14 07:35:55 +01:00