Add a commandline option to run Mochitest in a separate X server on Linux
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
People
(Reporter: Waldo, Unassigned)
References
()
Details
Attachments
(2 files, 1 obsolete file)
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
Comment 3•17 years ago
|
||
Comment 4•17 years ago
|
||
Comment 5•17 years ago
|
||
Comment 6•17 years ago
|
||
Comment 7•17 years ago
|
||
Comment 8•17 years ago
|
||
Comment 9•17 years ago
|
||
Comment 10•17 years ago
|
||
Comment 11•17 years ago
|
||
Reporter | ||
Comment 12•17 years ago
|
||
Comment 13•17 years ago
|
||
Reporter | ||
Comment 14•17 years ago
|
||
Comment 15•17 years ago
|
||
Comment 16•17 years ago
|
||
Comment 17•17 years ago
|
||
Comment 18•17 years ago
|
||
Comment 19•16 years ago
|
||
Comment 20•16 years ago
|
||
Comment 21•16 years ago
|
||
Comment 22•16 years ago
|
||
Comment 23•16 years ago
|
||
Comment 24•16 years ago
|
||
Comment 25•16 years ago
|
||
Comment 26•16 years ago
|
||
Comment 27•16 years ago
|
||
Updated•16 years ago
|
Comment 28•16 years ago
|
||
Updated•16 years ago
|
Comment 29•16 years ago
|
||
Comment 30•16 years ago
|
||
Comment 31•16 years ago
|
||
Comment 32•16 years ago
|
||
Updated•16 years ago
|
Comment 33•16 years ago
|
||
Comment 34•16 years ago
|
||
Comment 35•16 years ago
|
||
Updated•16 years ago
|
Comment 36•11 years ago
|
||
Comment 37•8 years ago
|
||
Comment 38•4 years ago
•
|
||
Just my two cents worth.
I am testing TB under linux for like 10 years.
I have used the following setup to run tests in separate window manager inside Xephyr so that I can monitor the progress of local test while I do other things on the desktop. And actually my linux runs inside VirtualBox (previously inside VMPlayer) under Windows.
The whole setup works just fine. (you DO need memory to run this combination).
This is from within a bash script.
# July 12, 2019. tryserver uses the following size 1600x1200.
SIZE=1600x1200
# -br sets the default root window to solid black instead of the standard root weave pattern.
# This is the default unless -retro or -wr is specified.
# -ac disables host-based access control mechanisms. Enables access by any host, and permits
# any host to modify the access control list. Use with extreme caution. This option
# exists primarily for running test suites remotely.
# -noreset
# prevents a server reset when the last client connection is closed. This overrides a
# previous -terminate command line option.
Xephyr -ac -br -noreset -screen $SIZE :2 &
# was DISPLAY=localhost:2.0 before Oct 27, 2016
DISPLAY=:2.0
waitfor 5
# oclock &
xfwm4 &
Then I ran the script to invoke mochitest (prevously |make mozmill| test for TB) within the same script. You may need to export DISPLAY variable depending on how your script is written.
I forgot to mention waitfor is a function in the script to wait for given seconds.
function waitfor
{
i=$1
# echo "i is $i"
# should check for numeric, but the only caller is in this file.
echo "Sleeping for $i seconds."
while [ $i -gt 0 ]
do
echo -n "$i "
sleep 1
i=$(( i - 1 ))
done
}
The verbose wait is to let developer know the sleep is caused by EXPLICT wait by the script, not the
strange sleep caused by the flaky test framework, etc.
xfmw4 is the lightweight window manager that I use. This works fine. (I use it for my desktop, too.). YMMV.
All runs well so far as far as I can tell.
Updated•2 years ago
|
Description
•