dosutils: add maintainer helpers and compare-ready tools
Add maintainer-only support used by the automated DOS compatibility tests. This introduces the MAINTAINER_BUILD option for the DOS tools. In maintainer builds, LOGIN accepts the hidden /PWD: and /PASSWORD: arguments for automated test relogin, and the DLYSTRT helper is built to delay-start DOS batch files after the invoking batch has returned to the prompt. Add the WHOAMI utility and wire it into the NET command dispatch. Also adjust SLIST and RIGHTS output to match Novell behavior more closely, including server-not-found handling, path formatting, Supervisor rights, missing-path errors and usage text. Extend the test scripts to compare NPUBLIC Novell baselines against the PUBLIC implementations. LOGIN/LOGOUT can now run automatically via DLYSTRT and the maintainer LOGIN password option. RIGHTS gains an additional NOPASSUSER effective-rights matrix that covers single rights, mixed rights, Supervisor rights, ALL/N and file trustee cases. Normal builds remain free of maintainer-only helpers and hidden password handling.
This commit is contained in:
@@ -1,23 +1,45 @@
|
||||
# RGHTSTA - RIGHTS baseline test
|
||||
|
||||
Novell-only baseline for `RIGHTS` behavior.
|
||||
|
||||
Runs `\NPUBLIC\RIGHTS` against a small generated test tree:
|
||||
|
||||
- default/current directory from `F:\`
|
||||
- explicit directory and subdirectory paths
|
||||
- explicit file and nested file paths
|
||||
- default/current directory from inside the test directory
|
||||
- relative file and relative directory paths
|
||||
- missing directory/file paths
|
||||
- too-many-arguments and `/?` usage/help cases
|
||||
|
||||
Results are written to `F:\RGHTCMP`. Test input files are generated in `F:\RGHTEST`.
|
||||
Optional packaging is done with `RGHTZIP.BAT`.
|
||||
|
||||
This test does not use `PUBLIC` yet and does not modify trustees. It is only
|
||||
for capturing Novell `NPUBLIC\RIGHTS` output/formatting before the later
|
||||
`NPUBLIC`/`PUBLIC` comparison scripts are added.
|
||||
|
||||
|
||||
Note: commands use absolute `\NPUBLIC\RIGHTS` so relative-path tests from inside `F:\RGHTEST` do not accidentally look for `F:\RGHTEST\NPUBLIC\RIGHTS`.
|
||||
# RGHTSTA - RIGHTS comparison test
|
||||
|
||||
`RGHTSTA.BAT` compares Novell `RIGHTS` with the current implementation.
|
||||
|
||||
Result directories:
|
||||
|
||||
```text
|
||||
F:\RGHTCMP\OUT Novell baseline using \NPUBLIC\RIGHTS
|
||||
F:\RGHTCMP\PUBOUT current implementation using \PUBLIC\RIGHTS
|
||||
F:\RGHTCMP\COMPARE.LOG
|
||||
```
|
||||
|
||||
The test keeps the original Novell-baseline behavior and adds the public-tool
|
||||
comparison layer.
|
||||
|
||||
Coverage:
|
||||
|
||||
- default/current directory from `F:\`
|
||||
- explicit directory and subdirectory paths
|
||||
- explicit file and nested file paths
|
||||
- default/current directory from inside the test directory
|
||||
- relative file and relative directory paths
|
||||
- missing directory/file paths
|
||||
- too-many-arguments and `/?` usage/help cases
|
||||
|
||||
operation. Its redirected output must be identical to the normal Novell output.
|
||||
That means:
|
||||
|
||||
```text
|
||||
OUT == PUBOUT
|
||||
```
|
||||
|
||||
Run:
|
||||
|
||||
```bat
|
||||
F:
|
||||
CD \
|
||||
RGHTSTA
|
||||
RGHTZIP
|
||||
```
|
||||
|
||||
The generated test tree is `F:\RGHTEST`. `RGHTZIP.BAT` packages the result and
|
||||
then removes `F:\RGHTEST` again so the SYS root stays clean.
|
||||
|
||||
Note: `RIGHTS` currently has no short-output comparison in this baseline test. That switch exists for NDIR-style output control and should only be added to RIGHTS later if the tool implements it explicitly.
|
||||
|
||||
Reference in New Issue
Block a user