File indexing completed on 2024-04-21 14:47:25

0001 /*
0002     KStars UI tests for meridian flip
0003 
0004     SPDX-FileCopyrightText: 2020 Wolfgang Reissenberger <sterne-jaeger@openfuture.de>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 #include "config-kstars.h"
0012 #include "test_ekos_meridianflip_base.h"
0013 
0014 #if defined(HAVE_INDI)
0015 
0016 
0017 class TestEkosMeridianFlip : public TestEkosMeridianFlipBase
0018 {
0019         Q_OBJECT
0020 
0021     public:
0022         explicit TestEkosMeridianFlip(QObject *parent = nullptr);
0023         explicit TestEkosMeridianFlip(QString guider, QObject *parent = nullptr);
0024 
0025     private slots:
0026         /** @brief Test a meridian flip without running capture sequence. */
0027         void testSimpleMF();
0028 
0029         /** @brief Test data for @see testSimpleMF() */
0030         void testSimpleMF_data();
0031 
0032         /** @brief Test the delay of a meridian flip without running a capture sequence */
0033         void testSimpleMFDelay();
0034 
0035         /** @brief Test data for @see testSimpleMFDelay() */
0036         void testSimpleMFDelay_data();
0037 
0038         /**
0039          * @brief Test a meridian flip with guiding running
0040          */
0041         void testGuidingMF();
0042 
0043         /** @brief Test data for @see testGuidingMF() */
0044         void testGuidingMF_data();
0045 
0046         /** @brief Test a meridian flip during a simple capture sequence */
0047         void testCaptureMF();
0048 
0049         /** @brief Test data for @see testCaptureMF() */
0050         void testCaptureMF_data();
0051 
0052         /** @brief Test a meridian flip during a simple capture sequence, where the capture is aborted during the waiting state */
0053         void testCaptureMFAbortWaiting();
0054 
0055         /** @brief Test data for @see testCaptureMFAbortWaiting() */
0056         void testCaptureMFAbortWaiting_data();
0057 
0058         /** @brief Test a meridian flip during a simple capture sequence, where the capture is aborted during the flip */
0059         void testCaptureMFAbortFlipping();
0060 
0061         /** @brief Test data for @see testCaptureMFAbortWaiting() */
0062         void testCaptureMFAbortFlipping_data();
0063 
0064         /** @brief Test a meridian flip during a simple capture sequence with guiding on */
0065         void testCaptureGuidingMF();
0066 
0067         /** @brief Test data for @see testCaptureMF() */
0068         void testCaptureGuidingMF_data();
0069 
0070         /** @brief Test a meridian flip during a simple capture sequence with alignment executed before */
0071         void testCaptureAlignMF();
0072 
0073         /** @brief Test data for @see testCaptureMF() */
0074         void testCaptureAlignMF_data();
0075 
0076         /** @brief Test a meridian flip during a simple capture sequence with guiding and alignment */
0077         void testCaptureAlignGuidingMF();
0078 
0079         /** @brief Test data for @see testCaptureMF() */
0080         void testCaptureAlignGuidingMF_data();
0081 
0082         /** @brief Test a meridian flip with the selection of re-focusing after the flip */
0083         void testRefocusAfterMF();
0084 
0085         /** @brief Test data for @see testRefocusAfterMF() */
0086         void testRefocusAfterMF_data();
0087 
0088 };
0089 
0090 #endif // HAVE_INDI
0091