@ECHO OFF
REM RUTPOST.BAT
REM Rights User Test POST.
REM
REM Run as SUPERVISOR after RUTMARIO.BAT.

F:
CD \

ECHO === RUTPOST supervisor readback === >> F:\RUCMP\RUN.LOG

NPUBLIC\NDIR F:\RUTEST > F:\RUCMP\POST\ROOT.OUT
NPUBLIC\NDIR F:\RUTEST /RIGHTS > F:\RUCMP\POST\ROOTRGHT.OUT
NPUBLIC\NDIR F:\RUTEST\RONLY > F:\RUCMP\POST\RONLY.OUT
NPUBLIC\NDIR F:\RUTEST\CREATE > F:\RUCMP\POST\CREATE.OUT
NPUBLIC\NDIR F:\RUTEST\WRITE > F:\RUCMP\POST\WRITE.OUT
NPUBLIC\NDIR F:\RUTEST\ERASE > F:\RUCMP\POST\ERASE.OUT
NPUBLIC\NDIR F:\RUTEST\SCAN > F:\RUCMP\POST\SCAN.OUT
NPUBLIC\NDIR F:\RUTEST\ACCESS > F:\RUCMP\POST\ACCESS.OUT
NPUBLIC\NDIR F:\RUTEST\ALL > F:\RUCMP\POST\ALL.OUT
NPUBLIC\NDIR F:\RUTEST\MOD1 > F:\RUCMP\POST\MOD1.OUT
NPUBLIC\NDIR F:\RUTEST\MOD2 > F:\RUCMP\POST\MOD2.OUT
NPUBLIC\NDIR F:\RUTEST\MOD3 > F:\RUCMP\POST\MOD3.OUT
NPUBLIC\NDIR F:\RUTEST\MOD4 > F:\RUCMP\POST\MOD4.OUT

NPUBLIC\RIGHTS F:\RUTEST\MOD1 > F:\RUCMP\POST\RMOD1.OUT
NPUBLIC\RIGHTS F:\RUTEST\MOD2 > F:\RUCMP\POST\RMOD2.OUT
NPUBLIC\RIGHTS F:\RUTEST\MOD3 > F:\RUCMP\POST\RMOD3.OUT
NPUBLIC\RIGHTS F:\RUTEST\MOD4 > F:\RUCMP\POST\RMOD4.OUT

FC F:\RUCMP\PRE\ROOT.OUT F:\RUCMP\POST\ROOT.OUT > F:\RUCMP\CMP\ROOT.OUT
FC F:\RUCMP\PRE\ROOTRGHT.OUT F:\RUCMP\POST\ROOTRGHT.OUT > F:\RUCMP\CMP\ROOTRGHT.OUT

ECHO === SUMMARY === > F:\RUCMP\SUMMARY.TXT
ECHO RUTSTA rights-user matrix test finished. >> F:\RUCMP\SUMMARY.TXT
ECHO. >> F:\RUCMP\SUMMARY.TXT
ECHO Expected high-level results: >> F:\RUCMP\SUMMARY.TXT
ECHO - RONLY: read/list OK, create should fail. >> F:\RUCMP\SUMMARY.TXT
ECHO - CREATE: create NEW.TXT should work. >> F:\RUCMP\SUMMARY.TXT
ECHO - WRITE: append to W.TXT should work. >> F:\RUCMP\SUMMARY.TXT
ECHO - ERASE: E.TXT should be deleted. >> F:\RUCMP\SUMMARY.TXT
ECHO - MOD1 R W M F: previous baseline, likely rename fail. >> F:\RUCMP\SUMMARY.TXT
ECHO - MOD2 R W C M F: tests whether C is needed for rename. >> F:\RUCMP\SUMMARY.TXT
ECHO - MOD3 R W E M F: tests whether E is needed for rename. >> F:\RUCMP\SUMMARY.TXT
ECHO - MOD4 R W C E M F: tests C+E with M. >> F:\RUCMP\SUMMARY.TXT
ECHO - SCAN: NDIR should show file; TYPE may fail because R was not granted. >> F:\RUCMP\SUMMARY.TXT
ECHO - ACCESS: RIGHTS/GRANT behavior recorded in MARIO\U08.OUT. >> F:\RUCMP\SUMMARY.TXT
ECHO - ALL: read/create/rename/delete should work. >> F:\RUCMP\SUMMARY.TXT
ECHO. >> F:\RUCMP\SUMMARY.TXT
ECHO Review F:\RUCMP\MARIO\U06.OUT for rename matrix. >> F:\RUCMP\SUMMARY.TXT
ECHO Optional pack results with RUTZIP.BAT. >> F:\RUCMP\SUMMARY.TXT

ECHO === RUTPOST fertig ===
ECHO Ergebnisse liegen in F:\RUCMP
ECHO Optional: RUTZIP ausfuehren.
