The dev tree has mcde-desktop.sh; the .deb path (/usr/mdt, /etc/mdt) had
no test that logs in. This one starts dtlogin on :94 against the
installed package, logs in with pam_permit, and requires the front
panel's Applications menu in the window tree.
Three things it learned in the runs, each a real failure first:
- -ac on the Xvfb line: dtlogin starts the server as nobody and nothing
can look at it otherwise (xwininfo, xdotool, import all refused).
- Roll dtlogin.log before the run: a previous run's "Greeter started"
satisfied the wait loop and the test measured a display that never
came up.
- Kill the display's dtlogin and its Xvfb BEFORE restoring $HOME/.dt:
dtsession writes sessions/current and errorlog on its way out, and a
copy put back while it still ran was written over again.
Also: dtsession restores the last session, so without an empty $HOME/.dt
the screenshot showed the user's own Firefox and xterm, not the package
(a 682k-pixel white block). $HOME/.dt is backed up and restored, and
the session's copy is kept in build/dtlogin-check/home.dt.session.
Test: sh tools/dtlogin-check.sh -> rc=0, clients dtwm, dtlaunch,
dtterm, mcdesoundd; screenshot is the MCDE desktop (no Firefox);
diff of $HOME/.dt against the pre-run copy: IDENTISCH.