2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/spec/unit
Wim de With 17a4aa962f
Fix connection bug with non-ASCII SSIDs in wpa_supplicant (#11089)
* Bump base

includes:

koreader/koreader-base#1691
koreader/koreader-base#1692
koreader/koreader-base#1689
koreader/koreader-base#1690
koreader/koreader-base#1693

* Integrate decoding of SSIDs within wpa_supplicant

The UTF-8 decoding of SSIDs is specific to wpa_supplicant. In this
patch, we move all of this decoding logic to the wpa_supplicant module.
We expose the raw bytes of the SSID to the NetworkMgr code, and make
sure to always fix bad UTF-8 before we display the SSID to the user.

Within the wpa_supplicant module, we replace the call to the
wpa_passphrase binary to get the PSK with a direct function call to
OpenSSL. This allows us to calculate the PSK over any arbitrary bytes,
including UTF-8. In the same vein, we use the hex-encoded SSID to
communicate with wpa_supplicant when setting up the network to support
arbitrary bytes in the SSID.

Unfortunately, we also remove the tests, as there is no way to unit test
local functions.
2023-11-09 21:08:26 +01:00
..
autofrontlight_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
autosuspend_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
background_runner_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
background_task_plugin_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
batterystat_spec.lua SystemStat: Show awake/suspend/standby breakdown in % (#9257) 2022-06-27 21:16:51 +02:00
benchmark.lua
cache_spec.lua Cache: Rewrite based on lua-lru 2021-05-05 20:37:33 +02:00
commonrequire.lua Datastorage: do not create unnecessary folders (#10162) 2023-03-02 08:39:09 +02:00
datetime_spec.lua Duration format: Add spaces, remove lead zeros for Letters (#10141) 2023-02-22 20:38:57 +01:00
dbg_spec.lua
defaults_spec.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2022-09-28 01:10:50 +02:00
depgraph_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
device_spec.lua Misc: Review pass on the previous commits 2023-08-15 21:24:11 +02:00
docsettings_spec.lua DocSettings (again) (#11020) 2023-10-31 07:30:39 +02:00
document_registry_spec.lua Tests: make sure files are deleted (#6323) 2020-06-28 08:03:37 +02:00
document_spec.lua md5: centralize and deduplicate (#11003) 2023-10-15 07:47:09 +03:00
eink_optimization_spec.lua
exporter_plugin_main_spec.lua Refactor exporter.koplugin (#8944) 2022-05-06 22:44:28 +02:00
filemanager_spec.lua DocSettings (again) (#11020) 2023-10-31 07:30:39 +02:00
filemanagerconverter_spec.lua Update UI layout code to use new SVG icons 2020-12-19 14:49:18 +01:00
focusmanager_spec.lua InputContainer: Fall cleanup ;). 2022-10-29 22:55:20 +02:00
font_spec.lua Decrease fonts memory use (#10618) 2023-07-04 09:13:16 +02:00
frontlight_spec.lua
gesturedetector_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
gesturerange_spec.lua
gettext_spec.lua tests: fix listing tests with busted --list 2023-07-04 08:12:07 +02:00
hook_container_spec.lua
httpclient_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
imagewidget_spec.lua "Fix" the ImageWidget test 2022-06-13 02:37:01 +02:00
input_spec.lua Input: Actually fix the timer double-free 2022-08-16 18:09:46 +02:00
inputtext_spec.lua You're doing it wrong, inputtext_spec... 2022-10-06 19:28:26 +02:00
koptinterface_spec.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
kosync_spec.lua
luadata_spec.lua tests: fix listing tests with busted --list 2023-07-04 08:12:07 +02:00
luasettings_spec.lua tests: fix listing tests with busted --list 2023-07-04 08:12:07 +02:00
menu_table_screen_color_spec.lua
menusorter_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
mock_time_spec.lua
mock_time.lua [timeval] RIP on All Saints Day (#9686) 2022-11-01 00:03:22 +01:00
network_manager_spec.lua Fix connection bug with non-ASCII SSIDs in wpa_supplicant (#11089) 2023-11-09 21:08:26 +01:00
networksetting_spec.lua Various Wi-Fi QoL improvements (#6424) 2020-07-27 03:39:06 +02:00
nickel_conf_spec.lua
opds_spec.lua tests: tag tests relying on a working internet access (#10939) 2023-09-24 18:18:03 +02:00
optmath_spec.lua [autosuspend, plugin] Switch to datetimewidget and provide default values (#8480) 2021-11-28 22:18:44 +01:00
persist_spec.lua Persist: unbreak serialize for serpent 2022-10-06 19:28:26 +02:00
quickstart_spec.lua
random_spec.lua
readerbookmark_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 2021-05-19 20:55:00 +02:00
readerdictionary_spec.lua [chore] Fix todo and fixme tags (#8365) 2021-10-23 16:29:00 +02:00
readerfooter_spec.lua ReaderFooter: separate ToggleFooterMode from TapFooter 2023-05-01 15:28:26 -04:00
readerhighlight_spec.lua Revert "Test: Fiw readerhighlight test" 2023-08-15 21:24:11 +02:00
readerlink_spec.lua Revert "Tests: "Unbreak" some more tests" 2023-08-15 21:24:11 +02:00
readerpaging_spec.lua Revert "Tests: "Unbreak" some more tests" 2023-08-15 21:24:11 +02:00
readerrolling_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
readersearch_spec.lua Text search: various Kopt search fixes 2023-07-04 09:03:34 +02:00
readertoc_spec.lua ReaderToc: rework getChapterPageCount/Left/Done() 2023-10-09 00:15:05 +02:00
readerui_spec.lua ReaderUI: minor optimization (#10634) 2023-07-03 17:43:13 +03:00
readerview_spec.lua tests: minor cleanup 2023-07-04 08:12:07 +02:00
readhistory_spec.lua Datastorage: do not create unnecessary folders (#10162) 2023-03-02 08:39:09 +02:00
screenshoter_spec.lua Input/Device: Refactor Gyro events handling (#9935) 2022-12-21 15:50:39 +01:00
size_spec.lua
spore_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
switch_plugin_spec.lua
taskqueue_bench.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
textboxwidget_spec.lua TextBoxWidget: use xtext for text shaping 2019-11-16 18:41:14 +01:00
time_spec.lua Optimization: Use constant folding for divisions not a power of two (#9609) 2022-10-10 22:21:27 +02:00
toggleswitch_spec.lua
touch_probe_spec.lua
translator_spec.lua tests: tag tests relying on a working internet access (#10939) 2023-09-24 18:18:03 +02:00
uimanager_bench.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
uimanager_spec.lua [UIManager] Reverse order of _task_queue (#9706) 2022-11-02 20:08:15 +01:00
util_spec.lua md5: centralize and deduplicate (#11003) 2023-10-15 07:47:09 +03:00
version_spec.lua [chore, spec] Version: test 8-character hash just in case (#7809) 2021-06-06 18:15:52 +02:00
wakeupmgr_spec.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
widget_inputcontainer_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
widget_menu_spec.lua [fix] Use orderedPairs in touch menu item table (#6404) 2020-07-20 20:58:39 +02:00
widget_progresswidget_spec.lua
wikipedia_spec.lua