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
67 lines
2.5 KiB
Batchfile
67 lines
2.5 KiB
Batchfile
@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.
|