pmbootstrap/test
Oliver Smith 6627599cf0
pmbootstrap init: Wizard for new port device- and linux-packages (#821)
* pmbootstrap init: Generate new port device- and linux-package
* adds `pmbootstrap aportgen device-*` and
  `pmbootstrap aportgen linux-*`
* ask for confirmation when selecting a non-existing device
* generate the packages directly from init
* refactor aportgen code
* fixed some easy things in the linux- APKBUILD (more to come in
  follow-up PRs!)

Testing:
* Test all questions to the user from pmb.config.init and pmb.aportgen.device
  (except for the timezone question, because we would need to monkeypatch the
  os.path.exists() function, which messes up pytest, so we'd need to refactor
  the timezone function to be more testsuite friendly first)
* Run the device wizard in a testcase a few times and check the output, that
  pmbootstrap.aportgen.device and pmbootstrap.aportgen.linux create by parsing
  the resulting APKBUILDs and deviceinfo and checking its contents.
* Build the generated device package once in the same testcase

Thanks a lot to @drebrez for all the help with this one:
<https://github.com/postmarketOS/pmbootstrap/pull/821>

See also the updated porting guide:
<https://wiki.postmarketos.org/wiki/Porting_to_a_new_device>
2017-10-30 19:56:38 +00:00
..
check_checksums.py Fixed checksum on travis for removed packages (#332) 2017-08-04 14:52:24 +00:00
static_code_analysis.sh Flake8 checking: disable E722: do not use bare except (#812) 2017-10-23 20:54:07 +00:00
test_apk_static.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_aport_in_sync_with_git.py Close #709: Improve user creation (#725) 2017-10-12 20:08:10 +00:00
test_aportgen.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_aportgen_device_wizard.py pmbootstrap init: Wizard for new port device- and linux-packages (#821) 2017-10-30 19:56:38 +00:00
test_build.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_build_is_necessary.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_challenge_apk.py Run fast testcases in Travis CI, remove obsolete testcase (#760) 2017-10-23 19:44:08 +00:00
test_challenge_apkindex.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_challenge_build.py Close #709: Improve user creation (#725) 2017-10-12 20:08:10 +00:00
test_chroot_interactive_shell.py Add architecture argument for the buildroot chroot (#832) 2017-10-28 00:45:15 +00:00
test_folder_size.py Run fast testcases in Travis CI, remove obsolete testcase (#760) 2017-10-23 19:44:08 +00:00
test_keys.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_mount.py Close #709: Improve user creation (#725) 2017-10-12 20:08:10 +00:00
test_questions.py pmbootstrap init: Wizard for new port device- and linux-packages (#821) 2017-10-30 19:56:38 +00:00
test_repo.py Run fast testcases in Travis CI, remove obsolete testcase (#760) 2017-10-23 19:44:08 +00:00
test_shell_escape.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
test_version.py Fix #271: properly resolve symlinks in all paths (#329) 2017-08-15 14:08:48 +00:00
testcases_fast.sh Disable keys testcase (#813) 2017-10-23 22:11:55 +00:00