diff --git a/test_suite/unit_tests/Airports/CMakeLists.txt b/test_suite/unit_tests/Airports/CMakeLists.txt
index bd55a8216..b191396a5 100644
--- a/test_suite/unit_tests/Airports/CMakeLists.txt
+++ b/test_suite/unit_tests/Airports/CMakeLists.txt
@@ -2,12 +2,14 @@
set(TESTSUITE_SOURCES
${TESTSUITE_SOURCES}
${CMAKE_CURRENT_SOURCE_DIR}/TestSuite.cxx
+ ${CMAKE_CURRENT_SOURCE_DIR}/test_airport.cxx
${CMAKE_CURRENT_SOURCE_DIR}/test_runway.cxx
PARENT_SCOPE
)
set(TESTSUITE_HEADERS
${TESTSUITE_HEADERS}
- ${CMAKE_CURRENT_SOURCE_DIR}/test_runway.hxx
+ ${CMAKE_CURRENT_SOURCE_DIR}/test_airport.hxx
+ ${CMAKE_CURRENT_SOURCE_DIR}/test_runway.cxx
PARENT_SCOPE
)
diff --git a/test_suite/unit_tests/Airports/TestSuite.cxx b/test_suite/unit_tests/Airports/TestSuite.cxx
index 0c70af3db..9d49787c7 100644
--- a/test_suite/unit_tests/Airports/TestSuite.cxx
+++ b/test_suite/unit_tests/Airports/TestSuite.cxx
@@ -17,6 +17,8 @@
* along with this program. If not, see .
*/
+#include "test_airport.hxx"
#include "test_runway.hxx"
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AirportTests, "Unit tests");
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(RunwayTests, "Unit tests");
diff --git a/test_suite/unit_tests/Airports/test_airport.cxx b/test_suite/unit_tests/Airports/test_airport.cxx
new file mode 100644
index 000000000..111483a56
--- /dev/null
+++ b/test_suite/unit_tests/Airports/test_airport.cxx
@@ -0,0 +1,84 @@
+/*
+ * Copyright (C) 2021 Keith Paterson
+ *
+ * This file is part of the program FlightGear.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#include "config.h"
+
+#include "test_airport.hxx"
+
+#include
+#include
+#include
+#include
+
+#include "test_suite/FGTestApi/NavDataCache.hxx"
+#include "test_suite/FGTestApi/TestDataLogger.hxx"
+#include "test_suite/FGTestApi/testGlobals.hxx"
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include