tests: add AFP open file fork write smoke
All checks were successful
Source release / source-package (push) Successful in 52s
All checks were successful
Source release / source-package (push) Successful in 52s
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
* Linux smoke test for NetWare AFP Open File Fork.
|
||||
*
|
||||
* This uses ncpfs/libncp so the request travels through the same NCP path as a
|
||||
* normal Linux requester. The first mars_nwe implementation deliberately
|
||||
* exercises the conservative path-backed data-fork subset and returns a normal
|
||||
* normal Linux requester. mars_nwe routes path-backed AFP data-fork read and
|
||||
* write opens through the normal NetWare open/share path and returns a normal
|
||||
* NetWare file handle, which this helper closes before exiting.
|
||||
*/
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define NWE_INVALID_PATH 0x9c
|
||||
#define AFP_DATA_FORK 0x00
|
||||
#define AFP_ACCESS_READ 0x01
|
||||
#define AFP_ACCESS_WRITE 0x02
|
||||
|
||||
static void usage(const char *prog)
|
||||
{
|
||||
@@ -45,7 +46,7 @@ static void usage(const char *prog)
|
||||
" %s -S MARS -U SUPERVISOR -P secret SYS:PUBLIC/pmdflts.ini\n"
|
||||
" %s --allow-invalid-namespace -S MARS -U SUPERVISOR -P secret SYS:PUBLIC/pmdflts.ini\n"
|
||||
" %s --allow-invalid-path -S MARS -U SUPERVISOR -P secret SYS:NO_SUCH_FILE\n"
|
||||
" %s --expect-completion 0x84 --access 0x02 -S MARS -U SUPERVISOR -P secret SYS:PUBLIC/pmdflts.ini\n"
|
||||
" %s --access 0x02 -S MARS -U SUPERVISOR -P secret SYS:PUBLIC/testfile.dat\n"
|
||||
" %s --expect-completion 0x9c --fork 1 -S MARS -U SUPERVISOR -P secret SYS:PUBLIC/pmdflts.ini\n",
|
||||
prog, prog, prog, prog, prog, prog);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user