All checks were successful
Source release / source-package (push) Successful in 46s
Pass NCP_PATH_STD to ncp_ns_alloc_short_dir_handle() when the AFP Entry ID smoke test allocates a temporary directory handle for a VOL: path. The test already uses libncp to allocate the handle, but it passed the raw "SYS:" bytes together with an explicit byte length. ncpfs helpers expect NCP_PATH_STD when the caller wants libncp to encode a normal NetWare path into the component-counted wire format. Sending the raw VOL: string made the server reject the handle allocation with completion 0x98 before the AFP endpoint was reached. Keep the libncp handle allocation path, but let libncp encode the root volume path the same way the ncpfs tools do. This changes only the Linux smoke test; server AFP protocol behavior is unchanged.
Linux NCP smoke tests
This directory contains optional Linux-side integration tests for endpoints that are easier to exercise from a Unix host than from the DOS test utilities.
The tests use the ncpfs/libncp client library. They are not built by default because they require the host ncpfs development headers/library and a running NetWare-compatible server.
Build with:
cmake -DMARS_NWE_BUILD_LINUX_TESTS=ON ...
cmake --build . --target afp_entry_id_smoke
AFP Entry ID smoke test
afp_entry_id_smoke sends the WebSDK-documented NetWare AFP request:
NCP 0x2222/35/12 AFP Get Entry ID From Path Name
It uses libncp's NWRequestSimple() path, so it goes through the same client
transport stack as other Linux ncpfs utilities.
Example:
./tests/linux/afp_entry_id_smoke -S MARS -U SUPERVISOR -P secret SYS:LOGIN
If the server was built without the optional Netatalk/libatalk backend, the endpoint is expected to return invalid namespace. To treat that as a successful negative smoke test, use:
./tests/linux/afp_entry_id_smoke --allow-invalid-namespace -S MARS SYS:LOGIN