diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-31 02:58:34 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-31 02:58:34 (GMT) |
commit | 997a0afac3f9b3a7aa2c4a8d351c3697bc91f7aa (patch) | |
tree | 3b3816d1557746f5f2e3e86a9239821472012024 /tests/virtualfb.sh | |
parent | d0de384a7e1642d09726579fdd75f1588cfaada7 (diff) | |
parent | af0658a8fe441ebb0eb3d238e7055fd592343605 (diff) |
Merge branch 'master' and fix bugs
Conflicts:
src/openscad.cc
tests/CMakeLists.txt
Diffstat (limited to 'tests/virtualfb.sh')
-rwxr-xr-x | tests/virtualfb.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/virtualfb.sh b/tests/virtualfb.sh new file mode 100755 index 0000000..3c0cf0e --- /dev/null +++ b/tests/virtualfb.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ "`command -v Xvfb`" ]; then + VFB_BINARY=Xvfb +fi + +if [ "`command -v Xvnc`" ]; then + VFB_BINARY=Xvnc +fi + +if [ ! $VFB_BINARY ]; then + echo "$0 Failed, cannot find Xvfb or Xvnc" + exit 1 +fi + +DISPLAY=:98 +$VFB_BINARY $DISPLAY -screen 0 800x600x24 &> virtualfblog & +echo PID=$! " " +echo DISPLAY=$DISPLAY +# trap "kill -KILL $xpid ||:" EXIT +export DISPLAY +sleep 3 |