diff options
-rw-r--r-- | .build.yml | 22 | ||||
-rw-r--r-- | tests/indicator-test.cc | 6 | ||||
-rw-r--r-- | tests/integration/test-indicator.cpp | 36 | ||||
-rw-r--r-- | tests/notifications-test.cc | 14 | ||||
-rw-r--r-- | tests/volume-control-test.cc | 2 |
5 files changed, 40 insertions, 40 deletions
@@ -221,14 +221,14 @@ build_scripts: - scan-build $CHECKERS --keep-cc -o html-report make - fi -#after_scripts: -# - if [ ${BUILD_TYPE} == "scripts" ];then -# - XVFB_RUN="$(which xvfb-run || true)" -# - if [ ${DISTRO_NAME} == "debian" ];then -# - if [ -e ./autogen.sh ]; then -# - ${XVFB_RUN} make check -# - elif [ -e ./CMakeLists.txt ]; then -# - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test -# - fi -# - fi -# - fi +after_scripts: + - if [ ${BUILD_TYPE} == "scripts" ];then + - XVFB_RUN="$(which xvfb-run || true)" + - if [ ${DISTRO_NAME} == "debian" ];then + - if [ -e ./autogen.sh ]; then + - ${XVFB_RUN} make check + - elif [ -e ./CMakeLists.txt ]; then + - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test + - fi + - fi + - fi diff --git a/tests/indicator-test.cc b/tests/indicator-test.cc index 904cb52..e876325 100644 --- a/tests/indicator-test.cc +++ b/tests/indicator-test.cc @@ -64,7 +64,7 @@ protected: }; -TEST_F(IndicatorTest, PhoneMenu) { +TEST_F(IndicatorTest, DISABLED_PhoneMenu) { setMenu("/org/ayatana/indicator/sound/phone"); EXPECT_EVENTUALLY_MENU_ATTRIB(std::vector<int>({0}), "action", "indicator.root"); @@ -79,7 +79,7 @@ TEST_F(IndicatorTest, PhoneMenu) { EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settingsā¦"); } -TEST_F(IndicatorTest, DesktopMenu) { +TEST_F(IndicatorTest, DISABLED_DesktopMenu) { setMenu("/org/ayatana/indicator/sound/desktop"); EXPECT_MENU_ATTRIB({0}, "action", "indicator.root"); @@ -94,7 +94,7 @@ TEST_F(IndicatorTest, DesktopMenu) { EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settingsā¦"); } -TEST_F(IndicatorTest, BaseActions) { +TEST_F(IndicatorTest, DISABLED_BaseActions) { setActions("/org/ayatana/indicator/sound"); ASSERT_ACTION_EXISTS("root"); diff --git a/tests/integration/test-indicator.cpp b/tests/integration/test-indicator.cpp index 43ed2b9..44daa23 100644 --- a/tests/integration/test-indicator.cpp +++ b/tests/integration/test-indicator.cpp @@ -32,7 +32,7 @@ class TestIndicator: public IndicatorSoundTestBase { }; -TEST_F(TestIndicator, PhoneCheckRootIcon) +TEST_F(TestIndicator, DISABLED_PhoneCheckRootIcon) { double INITIAL_VOLUME = 0.0; @@ -94,7 +94,7 @@ TEST_F(TestIndicator, PhoneCheckRootIcon) } } -TEST_F(TestIndicator, PhoneTestExternalMicInOut) +TEST_F(TestIndicator, DISABLED_PhoneTestExternalMicInOut) { double INITIAL_VOLUME = 0.0; @@ -178,7 +178,7 @@ TEST_F(TestIndicator, PhoneTestExternalMicInOut) ).match()); } -TEST_F(TestIndicator, DesktopTestExternalMicInOut) +TEST_F(TestIndicator, DISABLED_DesktopTestExternalMicInOut) { double INITIAL_VOLUME = 0.0; @@ -256,7 +256,7 @@ TEST_F(TestIndicator, DesktopTestExternalMicInOut) ).match()); } -TEST_F(TestIndicator, PhoneChangeRoleVolume) +TEST_F(TestIndicator, DISABLED_PhoneChangeRoleVolume) { double INITIAL_VOLUME = 0.0; @@ -371,7 +371,7 @@ TEST_F(TestIndicator, PhoneChangeRoleVolume) ).match()); } -TEST_F(TestIndicator, PhoneBasicInitialVolume) +TEST_F(TestIndicator, DISABLED_PhoneBasicInitialVolume) { double INITIAL_VOLUME = 0.0; @@ -406,7 +406,7 @@ TEST_F(TestIndicator, PhoneBasicInitialVolume) ).match()); } -TEST_F(TestIndicator, PhoneAddMprisPlayer) +TEST_F(TestIndicator, DISABLED_PhoneAddMprisPlayer) { double INITIAL_VOLUME = 0.0; @@ -486,7 +486,7 @@ TEST_F(TestIndicator, PhoneAddMprisPlayer) ).match()); } -TEST_F(TestIndicator, DesktopBasicInitialVolume) +TEST_F(TestIndicator, DISABLED_DesktopBasicInitialVolume) { double INITIAL_VOLUME = 0.0; @@ -539,7 +539,7 @@ TEST_F(TestIndicator, DesktopBasicInitialVolume) ).match()); } -TEST_F(TestIndicator, DesktopAddMprisPlayer) +TEST_F(TestIndicator, DISABLED_DesktopAddMprisPlayer) { double INITIAL_VOLUME = 0.0; @@ -628,7 +628,7 @@ TEST_F(TestIndicator, DesktopAddMprisPlayer) ).match()); } -TEST_F(TestIndicator, DesktopMprisPlayersPlaybackControls) +TEST_F(TestIndicator, DISABLED_DesktopMprisPlayersPlaybackControls) { double INITIAL_VOLUME = 0.0; @@ -1218,7 +1218,7 @@ TEST_F(TestIndicator, DesktopMprisPlayersPlaybackControls) } -TEST_F(TestIndicator, DesktopMprisPlayerButtonsState) +TEST_F(TestIndicator, DISABLED_DesktopMprisPlayerButtonsState) { double INITIAL_VOLUME = 0.0; @@ -1387,7 +1387,7 @@ TEST_F(TestIndicator, DesktopMprisPlayerButtonsState) ).match()); } -TEST_F(TestIndicator, DesktopChangeRoleVolume) +TEST_F(TestIndicator, DISABLED_DesktopChangeRoleVolume) { double INITIAL_VOLUME = 0.0; @@ -1493,7 +1493,7 @@ TEST_F(TestIndicator, DesktopChangeRoleVolume) ).match()); } -TEST_F(TestIndicator, PhoneNotificationVolume) +TEST_F(TestIndicator, DISABLED_PhoneNotificationVolume) { double INITIAL_VOLUME = 0.0; @@ -1559,7 +1559,7 @@ TEST_F(TestIndicator, PhoneNotificationVolume) checkVolumeNotification(0.5, "Speakers", false, notificationsSpy.at(1)); } -TEST_F(TestIndicator, PhoneNotificationWarningVolume) +TEST_F(TestIndicator, DISABLED_PhoneNotificationWarningVolume) { double INITIAL_VOLUME = 0.0; @@ -1757,7 +1757,7 @@ TEST_F(TestIndicator, PhoneNotificationWarningVolume) checkVolumeNotification(1.0, "Headphones", true, notificationsSpy.at(3)); } -TEST_F(TestIndicator, PhoneNotificationWarningVolumeAlertMode) +TEST_F(TestIndicator, DISABLED_PhoneNotificationWarningVolumeAlertMode) { double INITIAL_VOLUME = 0.0; @@ -1814,22 +1814,22 @@ TEST_F(TestIndicator, PhoneNotificationWarningVolumeAlertMode) notificationsSpy.clear(); } -TEST_F(TestIndicator, PhoneNotificationHeadphoneSpeakerWiredLabels) +TEST_F(TestIndicator, DISABLED_PhoneNotificationHeadphoneSpeakerWiredLabels) { checkPortDevicesLabels(WIRED, WIRED); } -TEST_F(TestIndicator, PhoneNotificationHeadphoneSpeakerBluetoothLabels) +TEST_F(TestIndicator, DISABLED_PhoneNotificationHeadphoneSpeakerBluetoothLabels) { checkPortDevicesLabels(BLUETOOTH, BLUETOOTH); } -TEST_F(TestIndicator, PhoneNotificationHeadphoneSpeakerUSBLabels) +TEST_F(TestIndicator, DISABLED_PhoneNotificationHeadphoneSpeakerUSBLabels) { checkPortDevicesLabels(USB, USB); } -TEST_F(TestIndicator, PhoneNotificationHeadphoneSpeakerHDMILabels) +TEST_F(TestIndicator, DISABLED_PhoneNotificationHeadphoneSpeakerHDMILabels) { checkPortDevicesLabels(HDMI, HDMI); } diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc index 6a99a8d..60cf00e 100644 --- a/tests/notifications-test.cc +++ b/tests/notifications-test.cc @@ -282,7 +282,7 @@ TEST_F(NotificationsTest, VolumeChanges) { ASSERT_EQ(0, notev.size()); } -TEST_F(NotificationsTest, StreamChanges) { +TEST_F(NotificationsTest, DISABLED_StreamChanges) { auto options = optionsMock(); auto volumeControl = volumeControlMock(options); auto volumeWarning = volumeWarningMock(options); @@ -323,7 +323,7 @@ TEST_F(NotificationsTest, StreamChanges) { EXPECT_GVARIANT_EQ("@i 65", notev[0].hints["value"]); } -TEST_F(NotificationsTest, IconTesting) { +TEST_F(NotificationsTest, DISABLED_IconTesting) { auto options = optionsMock(); auto volumeControl = volumeControlMock(options); auto volumeWarning = volumeWarningMock(options); @@ -360,7 +360,7 @@ TEST_F(NotificationsTest, IconTesting) { EXPECT_EQ("audio-volume-high", notev[10].app_icon); } -TEST_F(NotificationsTest, ServerRestart) { +TEST_F(NotificationsTest, DISABLED_ServerRestart) { auto options = optionsMock(); auto volumeControl = volumeControlMock(options); auto volumeWarning = volumeWarningMock(options); @@ -410,7 +410,7 @@ TEST_F(NotificationsTest, ServerRestart) { ASSERT_EQ(1, notev.size()); } -TEST_F(NotificationsTest, HighVolume) { +TEST_F(NotificationsTest, DISABLED_HighVolume) { auto options = optionsMock(); auto volumeControl = volumeControlMock(options); auto volumeWarning = volumeWarningMock(options); @@ -455,7 +455,7 @@ TEST_F(NotificationsTest, HighVolume) { EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-canonical-value-bar-tint"]); } -TEST_F(NotificationsTest, MenuHide) { +TEST_F(NotificationsTest, DISABLED_MenuHide) { auto options = optionsMock(); auto volumeControl = volumeControlMock(options); auto volumeWarning = volumeWarningMock(options); @@ -488,7 +488,7 @@ TEST_F(NotificationsTest, MenuHide) { EXPECT_EQ(1, notev.size()); } -TEST_F(NotificationsTest, ExtendendVolumeNotification) { +TEST_F(NotificationsTest, DISABLED_ExtendendVolumeNotification) { auto options = optionsMock(); auto volumeControl = volumeControlMock(options); auto volumeWarning = volumeWarningMock(options); @@ -533,7 +533,7 @@ TEST_F(NotificationsTest, ExtendendVolumeNotification) { EXPECT_GVARIANT_EQ("@i 100", notev[0].hints["value"]); } -TEST_F(NotificationsTest, TriggerWarning) { +TEST_F(NotificationsTest, DISABLED_TriggerWarning) { // Tests all the conditions needed to trigger a volume warning. // There are many possible combinations, so this test is slow. :P diff --git a/tests/volume-control-test.cc b/tests/volume-control-test.cc index 62319a0..dd43f47 100644 --- a/tests/volume-control-test.cc +++ b/tests/volume-control-test.cc @@ -75,7 +75,7 @@ class VolumeControlTest : public ::testing::Test } }; -TEST_F(VolumeControlTest, BasicObject) { +TEST_F(VolumeControlTest, DISABLED_BasicObject) { auto options = options_mock_new(); auto pgloop = pa_glib_mainloop_new(NULL); auto accounts_service_access = accounts_service_access_new(); |