/usr/share/xdiagnose/workloads/repro.sh is in xdiagnose 3.6.3build2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/bin/bash
INFO=$(wmctrl -d)
WORKAREA_WIDTH=$(echo "${INFO}"| awk '{sub(/x[0-9]+/, "", $9); print $9}')
WORKAREA_HEIGHT=$(echo "${INFO}"| awk '{sub(/[0-9]+x/, "", $9); print $9}')
FULLSCREEN=${WORKAREA_WIDTH}x${WORKAREA_HEIGHT}
XVT=$(sudo fgconsole)
chws() {
wmctrl -o $(($WORKAREA_WIDTH * $1)),0
}
#for x in `seq 1 3`; do
# echo "System will suspend now. Please wake it up again."
# sudo pm-suspend
# sleep 5
#done
chws 0
for x in `seq 1 10`; do
gnome-terminal &
done
sleep 5
chws 1
glxgears -geometry $FULLSCREEN >/dev/null &
glxgears >/dev/null &
sleep 5
chws 2
gnome-terminal --geometry=$FULLSCREEN &
sleep 5
chws 3
totem $(perl -e 'print "/usr/share/example-content/Ubuntu_Free_Culture_Showcase/SpiritOfUbuntu.ogv " x 30;') &
sleep 5
while true; do
chws 4
chws 0
done
|