Repository navigation
tests: run the AmiFUSE integration test on AmiFUSE 1.0 and on amitools 0.10 - #60
Merged
Merged
Conversation
The integration test was written for AmiFUSE 0.6 and fails with 1.0 whatever the handler does: - amifuse detaches after mounting unless it is told to stay, and the script takes the exit of the process it started for a failed mount. Start it with --interactive. - AmiFUSE 1.0 locks the image while it is mounted. The checks that follow open the image themselves, so unmount before them. - amitools 0.9 names the fields of a DosList entry dol_* and reads a pointer with .aptr. check_cdda_icon.py takes whichever is there. Take the interpreter for the check scripts from PYTHON as well, for a system where python3 is not the one AmiFUSE is installed for. With a 1.0 beta4 handler the test passes with AmiFUSE 0.6.0 and with 1.0.0. The handler of this tree shows an empty volume on both: since cd2f563 it waits for its first packet on a PA_SOFTINT port, which they do not serve.
AmiFUSE on amitools 0.10 has Cause() and serves PA_SOFTINT ports, so the handler can be used through it again. The four check scripts cannot: there every packet after the startup packet goes through amitools' DosPktHandler, HandlerLauncher's send_packet() and send_* helpers are gone, and the checks stop with an AttributeError. Send the packets in one place, amifuse_compat.py: through HandlerBridge._packet() where the launcher has no send_packet(), and through the launcher and _run_until_replies() as before where it has. A reply is now matched to its packet in every check, not taken as the first or the last one that came. check_cdda_icon.py looked for the reply to the request it queues during the icon load in poll_replies(). With DosPktHandler taking the replies that no longer sees it. Both take a reply from the reply port with the port manager's get_msg(), so note it there. The checks import a module now and Python leaves a __pycache__ next to them: ignore those. The README says which AmiFUSE the handler needs. The test passes with AmiFUSE 1.0.1.dev34 on amitools 0.9.1.dev156, which has those changes, and with a 1.0 beta4 handler on AmiFUSE 0.6.0 and 1.0.0.
reinauer
force-pushed
the
fix/names-softint-fallback
branch
from
November 27, 2026 01:44
554806f to
609b223
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tests: run the AmiFUSE integration test on AmiFUSE 1.0 and on amitools 0.10
Test changes only. The handler change this PR started with is dropped.
Why the handler change is gone
Since #58 the handler waits for its first packet on a
PA_SOFTINTport. AmiFUSE 0.6.0 and 1.0.0 do not serve such a port, so a volume mounted through them is empty. The first version of this PR made the handler check for that and fall back to a signal port.AmiFUSE on amitools 0.10 has
Cause()and serves these ports. The handler on main works through it as it is, so the fallback is not needed. With AmiFUSE 1.0.0 or older the volume stays empty; the README of the test now says so.First commit: the test script and AmiFUSE 1.0
The test was written for AmiFUSE 0.6 and fails with 1.0 and later whatever the handler does:
amifuse mountdetaches after mounting unless told to stay, and the script took the exit of the process it started for a failed mount. It now passes--interactive.dol_*;check_cdda_icon.pytakes whichever name is there.$PYTHON(defaultpython3), for a system wherepython3is not the interpreter AmiFUSE is installed for.Second commit: the checks and amitools 0.10
On amitools 0.10, AmiFUSE sends every packet after the startup packet through amitools'
DosPktHandler.HandlerLauncher.send_packet()and itssend_*helpers are gone, and the four check scripts stopped with anAttributeError.tests/integration/amifuse_compat.py. It usesHandlerBridge._packet()where the launcher has nosend_packet(), and the launcher as before where it has. A reply is matched to its packet in every check, not taken as the first or last one that came.poll_replies(), which no longer sees it. Both the launcher andDosPktHandlertake replies from the reply port with the port manager'sget_msg(), so the check notes the reply there..gitignore: the checks import a module now, so Python leaves a__pycache__next to them.Testing
tests/integration/test_amifuse.shfrom this branch with the AmigaOS 3.2 CD image. "New" is AmiFUSE 1.0.1.dev34 from itsamitools-0.10.0branch on amitools 0.9.1.dev156, which hasCause()andPA_SOFTINTports.mount did not expose CDVersionA pass covers the mount, reading a file, and the assign-prefix, file-handle, audio TOC and icon checks.
On the new AmiFUSE, with the handler from main:
make integration-check(generated ISO, logging build): passes.names stay Latin-1: not safe to load a library now, a line that is only reached after the software interrupt has fired.Seen along the way, not changed here
With amitools 0.9 and later,
AddDosEntry()accepts only nodes made byMakeDosEntry(). The handler builds its volume node itself, so under AmiFUSE 1.0.0 and later the volume is not published and the handler tries again every 100 ms for as long as the disc is mounted. 1.0 beta4 does the same; reading files is not affected.