File indexing completed on 2024-12-01 06:38:53

0001 /*
0002     File                 : DependenciesTest.h
0003     Project              : LabPlot
0004     Description          : Tests for dependencies
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2023 Stefan Gerlach <stefan.gerlach@uni.kn>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef DEPENDENCIESTEST_H
0012 #define DEPENDENCIESTEST_H
0013 
0014 #include <QtTest>
0015 
0016 class DependenciesTest : public QObject {
0017     Q_OBJECT
0018 
0019 private Q_SLOTS:
0020 #ifdef MATIO_DISABLED
0021     void checkMatio() {
0022         QSKIP("Skipping Matio Tests, because it was disabled!");
0023     }
0024 #elif !defined(HAVE_MATIO)
0025     void checkMatio() {
0026         QSKIP("Skipping Matio Tests, because it was not found!");
0027     }
0028 #endif
0029 #ifdef HDF5_DISABLED
0030     void checkHDF5() {
0031         QSKIP("Skipping HDF5 Tests, because it was disabled!");
0032     }
0033 #elif !defined(HAVE_HDF5)
0034     void checkHDF5() {
0035         QSKIP("Skipping HDF5 Tests, because it was not found!");
0036     }
0037 #endif
0038 #ifdef NETCDF_DISABLED
0039     void checkNetCDF() {
0040         QSKIP("Skipping NetCDF Tests, because it was disabled!");
0041     }
0042 #elif !defined(HAVE_NETCDF)
0043     void checkNetCDF() {
0044         QSKIP("Skipping NetCDF Tests, because it was not found!");
0045     }
0046 #endif
0047 #ifdef FITS_DISABLED
0048     void checkFITS() {
0049         QSKIP("Skipping FITS Tests, because it was disabled!");
0050     }
0051 #elif !defined(HAVE_FITS)
0052     void checkFITS() {
0053         QSKIP("Skipping FITS Tests, because it was not found!");
0054     }
0055 #endif
0056 #ifdef READSTAT_DISABLED
0057     void checkReadStat() {
0058         QSKIP("Skipping ReadStat Tests, because it was disabled!");
0059     }
0060 #elif !defined(HAVE_READSTAT)
0061     void checkReadStat() {
0062         QSKIP("Skipping ReadStat Tests, because it was not found or could not be build!");
0063     }
0064 #endif
0065 #ifdef EXCEL_DISABLED
0066     void checkXLSX() {
0067         QSKIP("Skipping XLSX Tests, because it was disabled!");
0068     }
0069 #elif !defined(HAVE_EXCEL)
0070     void checkXLSX() {
0071         QSKIP("Skipping XLSX Tests, because it was not found or could not be build!");
0072     }
0073 #endif
0074 #ifdef ROOT_DISABLED
0075     void checkROOT() {
0076         QSKIP("Skipping ROOT Tests, because it was disabled!");
0077     }
0078 #elif !defined(HAVE_ZIP)
0079     void checkROOT() {
0080         QSKIP("Skipping ROOT Tests, because ZLIB or LZ4 was not found!");
0081     }
0082 #endif
0083 #ifdef CANTOR_DISABLED
0084     void checkCantor() {
0085         QSKIP("Skipping Cantor Tests, because it was disabled!");
0086     }
0087 #elif !defined(HAVE_CANTOR_LIBS) && !defined(HAVE_NEW_CANTOR_LIBS)
0088     void checkCantor() {
0089         QSKIP("Skipping Cantor Tests, because it was not found!");
0090     }
0091 #endif
0092 #ifdef VECTOR_BLF_DISABLED
0093     void checkVectorBLF() {
0094         QSKIP("Skipping Vector BLF Tests, because it was disabled!");
0095     }
0096 #elif !defined(HAVE_VECTOR_BLF)
0097     void checkVectorBLF() {
0098         QSKIP("Skipping Vector Tests, because it was not found!");
0099     }
0100 #endif
0101 };
0102 
0103 #endif