tests: add Novell DOS tool baseline suite
Add DOS-side baseline scripts for the Novell tools used to compare the reimplemented public utilities. The suite covers the current baseline set: MAP SLIST WHOAMI LOGIN / LOGOUT NDIR NCOPY FLAG FLAGDIR CREATOR RIGHTS GRANT REVOKE REMOVE It also includes supporting trustee, rights, rename, move, delete and file-operation tests. Each test writes reproducible output into a per-tool CMP directory and provides a matching ZIP helper for collecting the results. The ZIP helpers clean generated test trees afterwards so SYS: does not keep accumulating temporary directories. This is the Novell baseline layer only. A later change can extend the same scripts to run the full comparison cycle: NPUBLIC baseline -> PUBLIC implementation -> NPUBLIC control
This commit is contained in:
76
test/rightsuser/README.md
Normal file
76
test/rightsuser/README.md
Normal file
@@ -0,0 +1,76 @@
|
||||
# Rights user / trustee practical matrix test
|
||||
|
||||
This test checks whether trustee rights granted to `MARIO` actually control
|
||||
real DOS operations. It also contains a rename-rights matrix.
|
||||
|
||||
## Files
|
||||
|
||||
| File | Run as | Purpose |
|
||||
| --- | --- | --- |
|
||||
| `RUTPRE.BAT` | SUPERVISOR | Create test tree and grant rights to MARIO. |
|
||||
| `RUTMARIO.BAT` | MARIO | Perform real operations. |
|
||||
| `RUTPOST.BAT` | SUPERVISOR | Capture final state and summary. |
|
||||
| `RUTZIP.BAT` | SUPERVISOR | Pack results into `RUTSTA.ZIP`. |
|
||||
|
||||
## Flow
|
||||
|
||||
```text
|
||||
Login SUPERVISOR
|
||||
RUTPRE
|
||||
|
||||
Logout / Login MARIO
|
||||
RUTMARIO
|
||||
|
||||
Logout / Login SUPERVISOR
|
||||
RUTPOST
|
||||
RUTZIP
|
||||
```
|
||||
|
||||
Result ZIP:
|
||||
|
||||
```text
|
||||
F:\RUCMP\RUTSTA.ZIP
|
||||
```
|
||||
|
||||
Linux package with server log:
|
||||
|
||||
```sh
|
||||
sudo ./mars_packtest_v3.sh rutsta 5 mario
|
||||
```
|
||||
|
||||
## Rename matrix
|
||||
|
||||
The previous run showed rename failing with `R W M F` while ALL rights worked.
|
||||
This version creates four directories:
|
||||
|
||||
```text
|
||||
MOD1 = R W M F
|
||||
MOD2 = R W C M F
|
||||
MOD3 = R W E M F
|
||||
MOD4 = R W C E M F
|
||||
```
|
||||
|
||||
`RUTMARIO.BAT` tries:
|
||||
|
||||
```text
|
||||
REN F:\RUTEST\MODx\M.TXT M2.TXT
|
||||
```
|
||||
|
||||
The result is written to:
|
||||
|
||||
```text
|
||||
F:\RUCMP\MARIO\U06.OUT
|
||||
```
|
||||
|
||||
## Other coverage
|
||||
|
||||
- R/F read + file scan
|
||||
- R/F/C create
|
||||
- R/W/F write/append
|
||||
- R/F/E erase
|
||||
- F only directory scan
|
||||
- R/F/A access-control test
|
||||
- R/W/C/E/M/F/A all-rights operation set
|
||||
|
||||
`RUTPRE.BAT` now also grants MARIO write/create rights to `F:\RUCMP\MARIO`,
|
||||
so the `Uxx.OUT` files should be created.
|
||||
Reference in New Issue
Block a user