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:
21
test/slist/README.md
Normal file
21
test/slist/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# SLSTSTA - SLIST baseline test
|
||||
|
||||
Novell-only baseline for `SLIST` behavior.
|
||||
|
||||
Runs `NPUBLIC\SLIST` with:
|
||||
|
||||
- no argument
|
||||
- `MARS` as expected existing server
|
||||
- `NWBYGONE01` as expected missing-server/negative test
|
||||
- `/CONTINUE` variants
|
||||
- `/?` usage output
|
||||
|
||||
Results are written to `F:\SLSTCMP`. Optional packaging is done with `SLSTZIP.BAT`.
|
||||
|
||||
`D99_HELP.OUT` is intentionally simulated with:
|
||||
|
||||
```text
|
||||
Usage: SLIST [Server] [/Continue]
|
||||
```
|
||||
|
||||
Reason: the Novell `SLIST /?` help text was observed on the console, but it does not reliably land in the redirected output file. Later, our implementation should run `SLIST /? > D99_HELP.OUT`, and this simulated Novell baseline gives us a stable file for comparison.
|
||||
66
test/slist/SLSTSTA.BAT
Normal file
66
test/slist/SLSTSTA.BAT
Normal file
@@ -0,0 +1,66 @@
|
||||
@ECHO OFF
|
||||
REM SLSTSTA.BAT
|
||||
REM Automated SLIST test for MARS NWE.
|
||||
REM
|
||||
REM Uses NPUBLIC\SLIST as Novell baseline for currently implemented tool behavior.
|
||||
REM Servers:
|
||||
REM MARS expected to exist
|
||||
REM NWBYGONE01 expected negative/missing-server test
|
||||
REM
|
||||
REM Result tree:
|
||||
REM F:\SLSTCMP
|
||||
|
||||
F:
|
||||
CD \
|
||||
|
||||
REM --- Clean generated test/result directories (contents only). ---
|
||||
IF EXIST SLSTCMP\NUL DELTREE /Y SLSTCMP\*.*
|
||||
|
||||
IF NOT EXIST SLSTCMP\NUL MD SLSTCMP
|
||||
IF NOT EXIST SLSTCMP\OUT\NUL MD SLSTCMP\OUT
|
||||
|
||||
ECHO SLSTSTA SLIST test > F:\SLSTCMP\RUN.LOG
|
||||
ECHO Server MARS should exist. >> F:\SLSTCMP\RUN.LOG
|
||||
ECHO Server NWBYGONE01 is expected to be missing. >> F:\SLSTCMP\RUN.LOG
|
||||
ECHO. >> F:\SLSTCMP\RUN.LOG
|
||||
|
||||
ECHO === D01 default SLIST === >> F:\SLSTCMP\RUN.LOG
|
||||
NPUBLIC\SLIST > F:\SLSTCMP\OUT\D01_LIST.OUT
|
||||
|
||||
ECHO === D02 existing server MARS === >> F:\SLSTCMP\RUN.LOG
|
||||
NPUBLIC\SLIST MARS > F:\SLSTCMP\OUT\D02_MARS_OK.OUT
|
||||
|
||||
ECHO === D03 missing server NWBYGONE01 === >> F:\SLSTCMP\RUN.LOG
|
||||
NPUBLIC\SLIST NWBYGONE01 > F:\SLSTCMP\OUT\D03_NWBYGONE01_MISSING.OUT
|
||||
|
||||
ECHO === D04 default SLIST /CONTINUE === >> F:\SLSTCMP\RUN.LOG
|
||||
NPUBLIC\SLIST /CONTINUE > F:\SLSTCMP\OUT\D04_CONT.OUT
|
||||
|
||||
ECHO === D05 MARS /CONTINUE === >> F:\SLSTCMP\RUN.LOG
|
||||
NPUBLIC\SLIST MARS /CONTINUE > F:\SLSTCMP\OUT\D05_MARS_CONT_OK.OUT
|
||||
|
||||
ECHO === D06 NWBYGONE01 /CONTINUE === >> F:\SLSTCMP\RUN.LOG
|
||||
NPUBLIC\SLIST NWBYGONE01 /CONTINUE > F:\SLSTCMP\OUT\D06_NWBYGONE01_CONT_MISSING.OUT
|
||||
|
||||
ECHO === D99 usage/help simulated from Novell console output === >> F:\SLSTCMP\RUN.LOG
|
||||
REM Novell SLIST /? prints the usage on the console and does not reliably
|
||||
REM write it through stdout redirection. Keep the Novell baseline file
|
||||
REM filled with the observed console text, so our implementation can later
|
||||
REM be compared against its redirected SLIST /? output.
|
||||
ECHO Usage: SLIST [Server] [/Continue] > F:\SLSTCMP\OUT\D99_HELP.OUT
|
||||
|
||||
ECHO === SUMMARY === > F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO SLSTSTA SLIST baseline finished. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO Expected: >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO - D01 lists visible servers/services. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO - D02 finds or accepts MARS. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO - D03 is the negative test for missing NWBYGONE01. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO - D04/D05/D06 record /CONTINUE behavior. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO - D99 records usage syntax. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
ECHO Optional: SLSTZIP ausfuehren. >> F:\SLSTCMP\SUMMARY.TXT
|
||||
|
||||
ECHO SLSTSTA fertig.
|
||||
ECHO Ergebnisse liegen in F:\SLSTCMP
|
||||
ECHO Optional: SLSTZIP ausfuehren.
|
||||
25
test/slist/SLSTZIP.BAT
Normal file
25
test/slist/SLSTZIP.BAT
Normal file
@@ -0,0 +1,25 @@
|
||||
@ECHO OFF
|
||||
REM SLSTZIP.BAT
|
||||
REM Optional packer for SLSTSTA result files.
|
||||
REM Requires ZIP.EXE in PATH or current directory.
|
||||
|
||||
F:
|
||||
CD \SLSTCMP
|
||||
|
||||
IF EXIST SLSTSTA.ZIP DEL SLSTSTA.ZIP
|
||||
IF EXIST ZIP.LOG DEL ZIP.LOG
|
||||
|
||||
ECHO Creating SLSTSTA.ZIP > ZIP.LOG
|
||||
ZIP -r SLSTSTA.ZIP RUN.LOG SUMMARY.TXT OUT >> ZIP.LOG
|
||||
|
||||
|
||||
REM Cleanup generated test directories after ZIP.
|
||||
REM Keep the CMP/result directory because it contains the ZIP and ZIP.LOG.
|
||||
REM No separate TEST directory for this test; SLSTCMP is the result directory.
|
||||
CD \
|
||||
ECHO.
|
||||
ECHO ZIP step finished.
|
||||
ECHO Check:
|
||||
ECHO F:\SLSTCMP\SLSTSTA.ZIP
|
||||
ECHO F:\SLSTCMP\ZIP.LOG
|
||||
ECHO.
|
||||
Reference in New Issue
Block a user