VirtualBox

Changeset 21207 in vbox for trunk/src


Ignore:
Timestamp:
Jul 3, 2009 2:22:16 PM (16 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: add a unit test for seamless. Failing tests are disabled

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r20552 r21207  
    7878             || $(CP_EXT) -f  `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
    7979
     80ifdef VBOX_X11_SEAMLESS_GUEST
     81 if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
     82  if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
    8083
    81 ifdef VBOX_X11_SEAMLESS_GUEST
    82  ifdef VBOX_WITH_TESTCASES
    83   ifndef VBOX_ONLY_ADDITIONS
     84# Set this in LocalConfig.kmk if you are working on the X11 clipboard service
     85# to automatically run the unit test at build time.
     86#       OTHERS += $(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto.run
     87
     88   PROGRAMS += tstSeamlessX11-auto
     89   tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
     90   tstSeamlessX11-auto_SOURCES = \
     91           testcase/tstSeamlessX11-auto.cpp \
     92           seamless-x11.cpp
     93   tstSeamlessX11-auto_DEFS = TESTCASE
     94   tstSeamlessX11-auto_LIBS = \
     95           $(LIB_RUNTIME)
     96
     97   TESTING  += $(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto
     98$$(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto.run: \
     99        $$(INSTARGET_tstSeamlessX11-auto)
     100        export VBOX_LOG_DEST=nofile; $(INSTARGET_tstSeamlessX11-auto) quiet
     101        $(QUIET)$(APPEND) -t "$@" "done"
     102
    84103   #
    85104   # Additional testcase designed to be run manually, which initiates and starts the Linux
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp

    r8155 r21207  
    3737#include <limits.h>
    3838
    39 /* This is defined wrong in my X11 header files! */
    40 #define VBoxShapeNotify 64
     39#ifdef TESTCASE
     40#undef DefaultRootWindow
     41#define DefaultRootWindow XDefaultRootWindow
     42#endif
    4143
    4244/*****************************************************************************
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.h

    r12916 r21207  
    3737#define WM_TYPE_PROP "_NET_WM_WINDOW_TYPE"
    3838#define WM_TYPE_DESKTOP_PROP "_NET_WM_WINDOW_TYPE_DESKTOP"
     39
     40/* This is defined wrong in my X11 header files! */
     41#define VBoxShapeNotify 64
    3942
    4043/**
     
    288291
    289292    // Private methods
    290 
    291     // Methods to handle X11 events
    292     void doConfigureEvent(const XConfigureEvent *event);
    293     void doMapEvent(const XMapEvent *event);
    294     void doUnmapEvent(const XUnmapEvent *event);
    295     void doShapeEvent(const XShapeEvent *event);
    296293
    297294    // Methods to manage guest window information
     
    350347    bool interruptEvent(void);
    351348
     349    /* Methods to handle X11 events.  These are public so that the unit test
     350     * can call them. */
     351    void doConfigureEvent(const XConfigureEvent *event);
     352    void doMapEvent(const XMapEvent *event);
     353    void doUnmapEvent(const XUnmapEvent *event);
     354    void doShapeEvent(const XShapeEvent *event);
     355
    352356    VBoxGuestSeamlessX11(void)
    353357    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette