initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
13
libs/wxWidgets-3.3.1/build/cmake/tests/CMakeLists.txt
Normal file
13
libs/wxWidgets-3.3.1/build/cmake/tests/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/tests/CMakeLists.txt
|
||||
# Purpose: Build test executables
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-09-24
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
add_subdirectory(base)
|
||||
add_subdirectory(drawing)
|
||||
add_subdirectory(gui)
|
||||
add_subdirectory(headers)
|
||||
131
libs/wxWidgets-3.3.1/build/cmake/tests/base/CMakeLists.txt
Normal file
131
libs/wxWidgets-3.3.1/build/cmake/tests/base/CMakeLists.txt
Normal file
@@ -0,0 +1,131 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/tests/base/CMakeLists.txt
|
||||
# Purpose: CMake file for base test
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-10-31
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
set(TEST_SRC
|
||||
test.cpp
|
||||
any/anytest.cpp
|
||||
archive/archivetest.cpp
|
||||
archive/ziptest.cpp
|
||||
archive/tartest.cpp
|
||||
arrays/arrays.cpp
|
||||
base64/base64.cpp
|
||||
cmdline/cmdlinetest.cpp
|
||||
config/fileconf.cpp
|
||||
config/regconf.cpp
|
||||
datetime/datetimetest.cpp
|
||||
events/evthandler.cpp
|
||||
events/evtlooptest.cpp
|
||||
events/evtsource.cpp
|
||||
events/stopwatch.cpp
|
||||
events/timertest.cpp
|
||||
exec/exec.cpp
|
||||
file/dir.cpp
|
||||
file/filefn.cpp
|
||||
file/filetest.cpp
|
||||
filekind/filekind.cpp
|
||||
filename/filenametest.cpp
|
||||
filesys/filesystest.cpp
|
||||
fontmap/fontmaptest.cpp
|
||||
formatconverter/formatconvertertest.cpp
|
||||
fswatcher/fswatchertest.cpp
|
||||
hashes/hashes.cpp
|
||||
interactive/output.cpp
|
||||
interactive/input.cpp
|
||||
intl/intltest.cpp
|
||||
lists/lists.cpp
|
||||
log/logtest.cpp
|
||||
longlong/longlongtest.cpp
|
||||
mbconv/convautotest.cpp
|
||||
mbconv/mbconvtest.cpp
|
||||
misc/dynamiclib.cpp
|
||||
misc/environ.cpp
|
||||
misc/metatest.cpp
|
||||
misc/misctests.cpp
|
||||
misc/module.cpp
|
||||
misc/pathlist.cpp
|
||||
misc/typeinfotest.cpp
|
||||
net/ipc.cpp
|
||||
net/socket.cpp
|
||||
net/webrequest.cpp
|
||||
regex/regextest.cpp
|
||||
regex/wxregextest.cpp
|
||||
scopeguard/scopeguardtest.cpp
|
||||
strings/iostream.cpp
|
||||
strings/numformatter.cpp
|
||||
strings/strings.cpp
|
||||
strings/stdstrings.cpp
|
||||
strings/tokenizer.cpp
|
||||
strings/unichar.cpp
|
||||
strings/unicode.cpp
|
||||
strings/vararg.cpp
|
||||
strings/crt.cpp
|
||||
strings/vsnprintf.cpp
|
||||
strings/hexconv.cpp
|
||||
streams/datastreamtest.cpp
|
||||
streams/ffilestream.cpp
|
||||
streams/fileback.cpp
|
||||
streams/filestream.cpp
|
||||
streams/iostreams.cpp
|
||||
streams/largefile.cpp
|
||||
streams/lzmastream.cpp
|
||||
streams/memstream.cpp
|
||||
streams/socketstream.cpp
|
||||
streams/sstream.cpp
|
||||
streams/stdstream.cpp
|
||||
streams/tempfile.cpp
|
||||
streams/textstreamtest.cpp
|
||||
streams/zlibstream.cpp
|
||||
textfile/textfiletest.cpp
|
||||
thread/atomic.cpp
|
||||
thread/misc.cpp
|
||||
thread/queue.cpp
|
||||
thread/tls.cpp
|
||||
uris/ftp.cpp
|
||||
uris/uris.cpp
|
||||
uris/url.cpp
|
||||
weakref/evtconnection.cpp
|
||||
weakref/weakref.cpp
|
||||
xlocale/xlocale.cpp
|
||||
|
||||
testprec.h
|
||||
testableframe.h
|
||||
testdate.h
|
||||
testfile.h
|
||||
archive/archivetest.h
|
||||
streams/bstream.h
|
||||
)
|
||||
|
||||
if(wxUSE_XML)
|
||||
list(APPEND TEST_SRC xml/xmltest.cpp)
|
||||
endif()
|
||||
|
||||
set(TEST_DATA
|
||||
intl/en_GB/internat.mo
|
||||
intl/en_GB/internat.po
|
||||
intl/fr/internat.mo
|
||||
intl/fr/internat.po
|
||||
intl/ja/internat.mo
|
||||
intl/ja/internat.po
|
||||
intl/xart-dothraki/internat.mo
|
||||
intl/xart-dothraki/internat.po
|
||||
horse.bmp
|
||||
horse.png
|
||||
horse.xpm
|
||||
testdata.conf
|
||||
)
|
||||
|
||||
wx_add_test(test_base CONSOLE ${TEST_SRC}
|
||||
DATA ${TEST_DATA}
|
||||
)
|
||||
if(wxUSE_SOCKETS)
|
||||
wx_exe_link_libraries(test_base wxnet)
|
||||
endif()
|
||||
if(wxUSE_XML)
|
||||
wx_exe_link_libraries(test_base wxxml)
|
||||
endif()
|
||||
@@ -0,0 +1,53 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/tests/drawing/CMakeLists.txt
|
||||
# Purpose: CMake file for drawing test
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-10-31
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
# This test program is targeted to "headless GUI" tests, tests which are
|
||||
# typically tied to the "core" component but that should run nicely in a
|
||||
# console only program. This program should be executable from a console
|
||||
# only Unix session (such as telnet or ssh) although it uses graphics
|
||||
# contexts, so if you modify this project, please check that it can still
|
||||
# be ran in such configuration and doesn't require an X server connection.
|
||||
set(TEST_DRAWING_SRC
|
||||
test.cpp
|
||||
testableframe.cpp
|
||||
drawing/drawing.cpp
|
||||
drawing/plugindriver.cpp
|
||||
drawing/basictest.cpp
|
||||
drawing/fonttest.cpp
|
||||
|
||||
testprec.h
|
||||
testableframe.h
|
||||
testimage.h
|
||||
drawing/drawing.h
|
||||
drawing/gcfactory.h
|
||||
drawing/plugin.h
|
||||
drawing/pluginsample.cpp
|
||||
drawing/testimagefile.h
|
||||
)
|
||||
|
||||
set(TEST_DRAWING_DATA
|
||||
drawing/references/image_test_image_cairo-1.8_2_ref.png
|
||||
drawing/references/image_test_image_cg-10.5_2_ref.png
|
||||
drawing/references/image_test_image_gdiplus-6.1_2_ref.png
|
||||
)
|
||||
|
||||
wx_add_test(test_drawing CONSOLE_GUI ${TEST_DRAWING_SRC}
|
||||
DATA ${TEST_DRAWING_DATA}
|
||||
)
|
||||
if(wxUSE_SOCKETS)
|
||||
wx_exe_link_libraries(test_drawing wxnet)
|
||||
endif()
|
||||
|
||||
# This is a sample plugin, it simply uses a wxImage based
|
||||
# wxGraphicsContext. It should render the same as the built-in test. Use
|
||||
# the WX_TEST_SUITE_GC_DRAWING_PLUGINS variable to specify the location of
|
||||
# the produced DLL/so to get it loaded and tested. To make your own plugin,
|
||||
# you can copy this sample and link toward your own implementation of
|
||||
# wxGraphicsContext interface, building the appropriate DrawingTestGCFactory
|
||||
# TODO: test_drawingplugin
|
||||
261
libs/wxWidgets-3.3.1/build/cmake/tests/gui/CMakeLists.txt
Normal file
261
libs/wxWidgets-3.3.1/build/cmake/tests/gui/CMakeLists.txt
Normal file
@@ -0,0 +1,261 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/tests/gui/CMakeLists.txt
|
||||
# Purpose: CMake file for gui test
|
||||
# Author: Tobias Taschner
|
||||
# Created: 2016-10-31
|
||||
# Copyright: (c) 2016 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
set(TEST_GUI_SRC
|
||||
asserthelper.cpp
|
||||
test.cpp
|
||||
testableframe.cpp
|
||||
geometry/rect.cpp
|
||||
geometry/size.cpp
|
||||
geometry/point.cpp
|
||||
geometry/region.cpp
|
||||
graphics/bitmap.cpp
|
||||
graphics/colour.cpp
|
||||
graphics/ellipsization.cpp
|
||||
graphics/measuring.cpp
|
||||
graphics/affinematrix.cpp
|
||||
graphics/boundingbox.cpp
|
||||
graphics/clipper.cpp
|
||||
graphics/clippingbox.cpp
|
||||
graphics/coords.cpp
|
||||
graphics/graphbitmap.cpp
|
||||
graphics/graphmatrix.cpp
|
||||
graphics/graphpath.cpp
|
||||
graphics/imagelist.cpp
|
||||
config/config.cpp
|
||||
controls/auitest.cpp
|
||||
controls/bitmapcomboboxtest.cpp
|
||||
controls/bitmaptogglebuttontest.cpp
|
||||
controls/bookctrlbasetest.cpp
|
||||
controls/buttontest.cpp
|
||||
controls/checkboxtest.cpp
|
||||
controls/checklistboxtest.cpp
|
||||
controls/choicebooktest.cpp
|
||||
controls/choicetest.cpp
|
||||
controls/comboboxtest.cpp
|
||||
controls/dataviewctrltest.cpp
|
||||
controls/datepickerctrltest.cpp
|
||||
controls/frametest.cpp
|
||||
controls/gaugetest.cpp
|
||||
controls/gridtest.cpp
|
||||
controls/headerctrltest.cpp
|
||||
controls/htmllboxtest.cpp
|
||||
controls/hyperlinkctrltest.cpp
|
||||
controls/itemcontainertest.cpp
|
||||
controls/infobar.cpp
|
||||
controls/label.cpp
|
||||
controls/listbasetest.cpp
|
||||
controls/listbooktest.cpp
|
||||
controls/listboxtest.cpp
|
||||
controls/listctrltest.cpp
|
||||
controls/listviewtest.cpp
|
||||
controls/markuptest.cpp
|
||||
controls/notebooktest.cpp
|
||||
controls/ownerdrawncomboboxtest.cpp
|
||||
controls/pickerbasetest.cpp
|
||||
controls/pickertest.cpp
|
||||
controls/propgridtest.cpp
|
||||
controls/radioboxtest.cpp
|
||||
controls/radiobuttontest.cpp
|
||||
controls/rearrangelisttest.cpp
|
||||
controls/richtextctrltest.cpp
|
||||
controls/searchctrltest.cpp
|
||||
controls/simplebooktest.cpp
|
||||
controls/slidertest.cpp
|
||||
controls/spinctrldbltest.cpp
|
||||
controls/spinctrltest.cpp
|
||||
controls/styledtextctrltest.cpp
|
||||
controls/textctrltest.cpp
|
||||
controls/textentrytest.cpp
|
||||
controls/togglebuttontest.cpp
|
||||
controls/toolbooktest.cpp
|
||||
controls/treebooktest.cpp
|
||||
controls/treectrltest.cpp
|
||||
controls/treelistctrltest.cpp
|
||||
controls/virtlistctrltest.cpp
|
||||
controls/webtest.cpp
|
||||
controls/windowtest.cpp
|
||||
controls/dialogtest.cpp
|
||||
events/clone.cpp
|
||||
# Duplicate this file here to test GUI event loops too.
|
||||
events/evtlooptest.cpp
|
||||
events/propagation.cpp
|
||||
events/keyboard.cpp
|
||||
# And duplicate this one too as wxExecute behaves differently in
|
||||
# console and GUI applications.
|
||||
exec/exec.cpp
|
||||
font/fonttest.cpp
|
||||
image/image.cpp
|
||||
image/imagwebp.cpp
|
||||
image/rawbmp.cpp
|
||||
html/htmlparser.cpp
|
||||
html/htmlwindow.cpp
|
||||
html/htmprint.cpp
|
||||
menu/accelentry.cpp
|
||||
menu/menu.cpp
|
||||
misc/guifuncs.cpp
|
||||
misc/selstoretest.cpp
|
||||
misc/garbage.cpp
|
||||
misc/safearrayconverttest.cpp
|
||||
misc/settings.cpp
|
||||
# This one is intentionally duplicated here (it is also part of
|
||||
# non-GUI test) as sockets behave differently in console and GUI
|
||||
# applications.
|
||||
net/socket.cpp
|
||||
persistence/tlw.cpp
|
||||
persistence/dataview.cpp
|
||||
rowheightcache/rowheightcachetest.cpp
|
||||
sizers/boxsizer.cpp
|
||||
sizers/gridsizer.cpp
|
||||
sizers/wrapsizer.cpp
|
||||
toplevel/toplevel.cpp
|
||||
validators/valnum.cpp
|
||||
validators/valtext.cpp
|
||||
window/clientsize.cpp
|
||||
window/setsize.cpp
|
||||
xml/xrctest.cpp
|
||||
|
||||
testprec.h
|
||||
testableframe.h
|
||||
asserthelper.h
|
||||
testdate.h
|
||||
testfile.h
|
||||
testimage.h
|
||||
controls/bookctrlbasetest.h
|
||||
controls/itemcontainertest.h
|
||||
controls/listbasetest.h
|
||||
controls/pickerbasetest.h
|
||||
controls/textentrytest.h
|
||||
persistence/testpersistence.h
|
||||
)
|
||||
|
||||
set(TEST_GUI_DATA
|
||||
horse.ani
|
||||
horse.bmp
|
||||
horse.cur
|
||||
horse.gif
|
||||
horse.ico
|
||||
horse.jpg
|
||||
horse.pcx
|
||||
horse.png
|
||||
horse.pnm
|
||||
horse.svg
|
||||
horse.tga
|
||||
horse.tif
|
||||
horse.xpm
|
||||
horse.webp
|
||||
image/bitfields.bmp
|
||||
image/bitfields-alpha.bmp
|
||||
image/8bpp-colorsused-large.bmp
|
||||
image/8bpp-colorsused-negative.bmp
|
||||
image/32bpp_rgb.bmp
|
||||
image/32bpp_rgb.ico
|
||||
image/32bpp_rgb_a0.ico
|
||||
image/badrle4.bmp
|
||||
image/rgb16-3103.bmp
|
||||
image/rgb32-7187.bmp
|
||||
image/rgb32bf.bmp
|
||||
image/rgba32.bmp
|
||||
image/rle4-delta-320x240.bmp
|
||||
image/rle8-delta-320x240-expected.bmp
|
||||
image/rle8-delta-320x240.bmp
|
||||
image/horse_grey.bmp
|
||||
image/horse_grey_flipped.bmp
|
||||
image/horse_rle4.bmp
|
||||
image/horse_rle4_flipped.bmp
|
||||
image/horse_rle8.bmp
|
||||
image/horse_rle8_flipped.bmp
|
||||
image/cross_bicubic_256x256.png
|
||||
image/cross_bilinear_256x256.png
|
||||
image/cross_box_average_256x256.png
|
||||
image/cross_nearest_neighb_256x256.png
|
||||
image/horse_bicubic_50x50.png
|
||||
image/horse_bicubic_100x100.png
|
||||
image/horse_bicubic_150x150.png
|
||||
image/horse_bicubic_300x300.png
|
||||
image/horse_bilinear_50x50.png
|
||||
image/horse_bilinear_100x100.png
|
||||
image/horse_bilinear_150x150.png
|
||||
image/horse_bilinear_300x300.png
|
||||
image/horse_box_average_50x50.png
|
||||
image/horse_box_average_100x100.png
|
||||
image/horse_box_average_150x150.png
|
||||
image/horse_box_average_300x300.png
|
||||
image/paste_input_background.png
|
||||
image/paste_input_black.png
|
||||
image/paste_input_overlay_transparent_border_opaque_square.png
|
||||
image/paste_input_overlay_transparent_border_semitransparent_circle.png
|
||||
image/paste_input_overlay_transparent_border_semitransparent_square.png
|
||||
image/paste_result_background_plus_circle_plus_square.png
|
||||
image/paste_result_background_plus_overlay_transparent_border_opaque_square.png
|
||||
image/paste_result_background_plus_overlay_transparent_border_semitransparent_square.png
|
||||
image/paste_result_no_background_square_over_circle.png
|
||||
image/wx.png
|
||||
image/toucan.png
|
||||
image/toucan_hue_0.538.png
|
||||
image/toucan_sat_-0.41.png
|
||||
image/toucan_bright_-0.259.png
|
||||
image/toucan_hsv_0.538_-0.41_-0.259.png
|
||||
image/toucan_light_46.png
|
||||
image/toucan_dis_240.png
|
||||
image/toucan_grey.png
|
||||
image/toucan_mono_255_255_255.png
|
||||
image/width-times-height-overflow.bmp
|
||||
image/width_height_32_bit_overflow.pgm
|
||||
image/bad_truncated.gif
|
||||
intl/ja/internat.mo
|
||||
intl/ja/internat.po
|
||||
)
|
||||
|
||||
set(TEST_GUI_RES_BUNDLE
|
||||
horse.png
|
||||
../include/wx/msw/bullseye.cur
|
||||
)
|
||||
|
||||
# On macOS create an .app bundle so the resources can be added.
|
||||
# On other platforms, just use a console app with gui libraries.
|
||||
set(APP_TYPE)
|
||||
if(NOT APPLE)
|
||||
set(APP_TYPE CONSOLE_GUI)
|
||||
endif()
|
||||
|
||||
wx_add_test(test_gui ${APP_TYPE} ${TEST_GUI_SRC}
|
||||
DATA ${TEST_GUI_DATA}
|
||||
RES_BUNDLE ${TEST_GUI_RES_BUNDLE}
|
||||
)
|
||||
if(wxUSE_AUI)
|
||||
wx_exe_link_libraries(test_gui wxaui)
|
||||
endif()
|
||||
if(wxUSE_RICHTEXT)
|
||||
wx_exe_link_libraries(test_gui wxrichtext)
|
||||
endif()
|
||||
if(wxUSE_STC)
|
||||
wx_exe_link_libraries(test_gui wxstc)
|
||||
endif()
|
||||
if(wxUSE_MEDIACTRL)
|
||||
wx_exe_link_libraries(test_gui wxmedia)
|
||||
endif()
|
||||
if(wxUSE_XRC)
|
||||
wx_exe_link_libraries(test_gui wxxrc)
|
||||
endif()
|
||||
if(wxUSE_XML)
|
||||
wx_exe_link_libraries(test_gui wxxml)
|
||||
endif()
|
||||
if(wxUSE_HTML)
|
||||
wx_exe_link_libraries(test_gui wxhtml)
|
||||
endif()
|
||||
if(wxUSE_SOCKETS)
|
||||
wx_exe_link_libraries(test_gui wxnet)
|
||||
endif()
|
||||
if(wxUSE_WEBVIEW)
|
||||
wx_exe_link_libraries(test_gui wxwebview)
|
||||
endif()
|
||||
if(wxUSE_PROPGRID)
|
||||
wx_exe_link_libraries(test_gui wxpropgrid)
|
||||
endif()
|
||||
@@ -0,0 +1,23 @@
|
||||
#############################################################################
|
||||
# Name: build/cmake/tests/headers/CMakeLists.txt
|
||||
# Purpose: CMake file for headers test
|
||||
# Author: Maarten Bent
|
||||
# Created: 2020-07-23
|
||||
# Copyright: (c) 2020 wxWidgets development team
|
||||
# Licence: wxWindows licence
|
||||
#############################################################################
|
||||
|
||||
set(TEST_SRC
|
||||
test.cpp
|
||||
testableframe.cpp
|
||||
allheaders.cpp
|
||||
|
||||
testprec.h
|
||||
testableframe.h
|
||||
allheaders.h
|
||||
)
|
||||
|
||||
wx_add_test(test_headers CONSOLE_GUI ${TEST_SRC})
|
||||
if(wxUSE_SOCKETS)
|
||||
wx_exe_link_libraries(test_headers wxnet)
|
||||
endif()
|
||||
Reference in New Issue
Block a user