Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 822357 | Differences between
and this patch

Collapse All | Expand All

(-)a/CMakeLists.txt (-152 lines)
Lines 1611-1765 add_subdirectory( Link Here
1611
  "${CMAKE_CURRENT_BINARY_DIR}/lib/googletest"
1611
  "${CMAKE_CURRENT_BINARY_DIR}/lib/googletest"
1612
)
1612
)
1613
1613
1614
add_executable(mixxx-test
1615
  src/test/analyserwaveformtest.cpp
1616
  src/test/analyzersilence_test.cpp
1617
  src/test/audiotaperpot_test.cpp
1618
  src/test/autodjprocessor_test.cpp
1619
  src/test/beatgridtest.cpp
1620
  src/test/beatmaptest.cpp
1621
  src/test/beatstest.cpp
1622
  src/test/beatstranslatetest.cpp
1623
  src/test/bpmtest.cpp
1624
  src/test/bpmcontrol_test.cpp
1625
  src/test/broadcastprofile_test.cpp
1626
  src/test/broadcastsettings_test.cpp
1627
  src/test/cache_test.cpp
1628
  src/test/channelhandle_test.cpp
1629
  src/test/colorconfig_test.cpp
1630
  src/test/colormapperjsproxy_test.cpp
1631
  src/test/colorpalette_test.cpp
1632
  src/test/configobject_test.cpp
1633
  src/test/controller_mapping_validation_test.cpp
1634
  src/test/controllerscriptenginelegacy_test.cpp
1635
  src/test/controlobjecttest.cpp
1636
  src/test/controlobjectscripttest.cpp
1637
  src/test/coreservicestest.cpp
1638
  src/test/coverartcache_test.cpp
1639
  src/test/coverartutils_test.cpp
1640
  src/test/cratestorage_test.cpp
1641
  src/test/cue_test.cpp
1642
  src/test/cuecontrol_test.cpp
1643
  src/test/dbconnectionpool_test.cpp
1644
  src/test/dbidtest.cpp
1645
  src/test/directorydaotest.cpp
1646
  src/test/duration_test.cpp
1647
  src/test/durationutiltest.cpp
1648
  #TODO: write useful tests for refactored effects system
1649
  #src/test/effectchainslottest.cpp
1650
  src/test/enginebufferscalelineartest.cpp
1651
  src/test/enginebuffertest.cpp
1652
  src/test/enginefilterbiquadtest.cpp
1653
  src/test/enginemastertest.cpp
1654
  src/test/enginemicrophonetest.cpp
1655
  src/test/enginesynctest.cpp
1656
  src/test/fileinfo_test.cpp
1657
  src/test/frametest.cpp
1658
  src/test/globaltrackcache_test.cpp
1659
  src/test/hotcuecontrol_test.cpp
1660
  src/test/imageutils_test.cpp
1661
  src/test/indexrange_test.cpp
1662
  src/test/keyutilstest.cpp
1663
  src/test/lcstest.cpp
1664
  src/test/learningutilstest.cpp
1665
  src/test/libraryscannertest.cpp
1666
  src/test/librarytest.cpp
1667
  src/test/looping_control_test.cpp
1668
  src/test/main.cpp
1669
  src/test/mathutiltest.cpp
1670
  src/test/metadatatest.cpp
1671
  #TODO: make this build again
1672
  #src/test/metaknob_link_test.cpp
1673
  src/test/midicontrollertest.cpp
1674
  src/test/mixxxtest.cpp
1675
  src/test/movinginterquartilemean_test.cpp
1676
  src/test/nativeeffects_test.cpp
1677
  src/test/performancetimer_test.cpp
1678
  src/test/playcountertest.cpp
1679
  src/test/playermanagertest.cpp
1680
  src/test/playlisttest.cpp
1681
  src/test/portmidicontroller_test.cpp
1682
  src/test/portmidienumeratortest.cpp
1683
  src/test/queryutiltest.cpp
1684
  src/test/rangelist_test.cpp
1685
  src/test/readaheadmanager_test.cpp
1686
  src/test/replaygaintest.cpp
1687
  src/test/rescalertest.cpp
1688
  src/test/rgbcolor_test.cpp
1689
  src/test/samplebuffertest.cpp
1690
  src/test/sampleutiltest.cpp
1691
  src/test/schemamanager_test.cpp
1692
  src/test/searchqueryparsertest.cpp
1693
  src/test/seratobeatgridtest.cpp
1694
  src/test/seratomarkerstest.cpp
1695
  src/test/seratomarkers2test.cpp
1696
  src/test/seratotagstest.cpp
1697
  src/test/signalpathtest.cpp
1698
  src/test/skincontext_test.cpp
1699
  src/test/softtakeover_test.cpp
1700
  src/test/soundproxy_test.cpp
1701
  src/test/soundsourceproviderregistrytest.cpp
1702
  src/test/sqliteliketest.cpp
1703
  src/test/synccontroltest.cpp
1704
  src/test/synctrackmetadatatest.cpp
1705
  src/test/tableview_test.cpp
1706
  src/test/taglibtest.cpp
1707
  src/test/trackdao_test.cpp
1708
  src/test/trackexport_test.cpp
1709
  src/test/trackmetadata_test.cpp
1710
  src/test/tracknumberstest.cpp
1711
  src/test/trackreftest.cpp
1712
  src/test/trackupdate_test.cpp
1713
  src/test/uuid_test.cpp
1714
  src/test/wbatterytest.cpp
1715
  src/test/wpushbutton_test.cpp
1716
  src/test/wwidgetstack_test.cpp
1717
)
1718
set_target_properties(mixxx-test PROPERTIES AUTOMOC ON)
1719
target_link_libraries(mixxx-test PRIVATE mixxx-lib mixxx-gitinfostore gtest gmock)
1720
1721
#
1722
# Benchmark tests
1723
#
1724
1725
# Disable testing of google/benchmark
1726
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
1727
1728
# Prevent installation of google/benchmark artifacts
1729
set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "Disable installation of google/benchmark" FORCE)
1730
1731
add_subdirectory(
1732
  "${CMAKE_CURRENT_SOURCE_DIR}/lib/benchmark"
1733
  "${CMAKE_CURRENT_BINARY_DIR}/lib/benchmark"
1734
)
1735
target_link_libraries(mixxx-test PRIVATE benchmark)
1736
1737
# Test Suite
1738
include(CTest)
1739
include(GoogleTest)
1740
enable_testing()
1741
gtest_add_tests(
1742
  TARGET mixxx-test
1743
  EXTRA_ARGS --logLevel info
1744
  WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
1745
  TEST_LIST testsuite
1746
)
1747
if (NOT WIN32)
1748
  # Default to offscreen rendering during tests.
1749
  # This is required if the build system like Fedora koji/mock does not
1750
  # allow to pass environment variables into the ctest macro expansion.
1751
  set_tests_properties(${testsuite} PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
1752
endif()
1753
1754
# Benchmarking
1755
add_custom_target(mixxx-benchmark
1756
  COMMAND $<TARGET_FILE:mixxx-test> --benchmark
1757
  WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
1758
  COMMENT "Mixxx Benchmarks"
1759
  VERBATIM
1760
)
1761
add_dependencies(mixxx-benchmark mixxx-test)
1762
1763
#
1614
#
1764
# Resources
1615
# Resources
1765
#
1616
#
Lines 1789-1796 endif() Link Here
1789
1640
1790
target_sources(mixxx PRIVATE res/mixxx.qrc)
1641
target_sources(mixxx PRIVATE res/mixxx.qrc)
1791
set_target_properties(mixxx PROPERTIES AUTORCC ON)
1642
set_target_properties(mixxx PROPERTIES AUTORCC ON)
1792
target_sources(mixxx-test PRIVATE res/mixxx.qrc)
1793
set_target_properties(mixxx-test PROPERTIES AUTORCC ON)
1794
1643
1795
if (MIXXX_VERSION_PRERELEASE STREQUAL "")
1644
if (MIXXX_VERSION_PRERELEASE STREQUAL "")
1796
   set(MIXXX_VERSION "${CMAKE_PROJECT_VERSION}")
1645
   set(MIXXX_VERSION "${CMAKE_PROJECT_VERSION}")
Lines 2690-2696 if(LILV) Link Here
2690
  )
2539
  )
2691
  target_compile_definitions(mixxx-lib PUBLIC __LILV__)
2540
  target_compile_definitions(mixxx-lib PUBLIC __LILV__)
2692
  target_link_libraries(mixxx-lib PRIVATE lilv::lilv)
2541
  target_link_libraries(mixxx-lib PRIVATE lilv::lilv)
2693
  target_link_libraries(mixxx-test PRIVATE lilv::lilv)
2694
endif()
2542
endif()
2695
2543
2696
# Live Broadcasting (Shoutcast)
2544
# Live Broadcasting (Shoutcast)

Return to bug 822357