[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-devel
Subject: Re: [Flightgear-devel] Test Suite on Linux - Flightgear Tests won't build or run. Messages regarding
From: Patrick Callahan <pat.callahan1 () gmail ! com>
Date: 2023-11-10 15:41:27
Message-ID: CACt=GQr6GrfRoM+Vp2oem7m3VsbuzMwu=o=GDjphbbUmQsmiTw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I substituted ninja build everything seems to work now.
-Pat
"I seem to have produced yet another demonstration of the Cargo Cult
programming paradigm." - P Callahan
Now you can write code without thinking about it! Join us for our weekly
webinar!
On Wed, Nov 8, 2023 at 9:33 PM Scott Giese <scttgs0@gmail.com> wrote:
> -DBUILD_TESTING=ON is proper. Don't bother trying to compile the test
> suite separately. Just add the define (-D) to your normal flightgear build.
>
> You can execute the tests via:
> ninja test
>
> I see you have a build.ninja file, so I assume you are building with
> Ninja. If you are using make then use:
> make test
> On 11/8/23 11:56 AM, Patrick Callahan wrote:
>
> following
> https://wiki.flightgear.org/Software_testing#Building_the_test_suite
> I could not get the flightgear tests to run.
>
>
> #!/bin/bash
> # test_build
> cd build/flightgear
> cmake -LBUILD_TESTING=ON .
> export FG_ROOT=install/flightgear/fgdata]
> make test_suite
>
> On execution I get:
>
> ./test_build
> CMake Error: Unknown argument -LBUILD_TESTING=ON
> CMake Error: Run 'cmake --help' for all supported options.
> make: Nothing to be done for 'test_suite'.
>
> Changing -L to -D gets us a bit further, but then test_suite can't be
> found as a target.
>
>
> Then there is this:
>
>
> Did I miss something?
>
> There's also this regarding the use of "Dart"
>
> pac1@spinnaker:/work/suites/fg/tasks/next/build/flightgear$ ls
> + ls --color=auto
> 3rdparty FlightGear_en_US.qm install_manifest.txt
> build.ninja FlightGear_es.qm man
> CMakeCache.txt FlightGear_fr.qm package
> CMakeFiles FlightGear_it.qm positions.hxx
> cmake_install.cmake FlightGear_nl.qm scripts
> cmake_uninstall.cmake FlightGear_pl.qm src
> CPackConfig.cmake FlightGear_pt.qm Testing
> CPackSourceConfig.cmake FlightGear_ru.qm test_suite
> CTestTestfile.cmake FlightGear_sk.qm translations.qrc
> DartConfiguration.tcl FlightGear_tr.qm utils
> FlightGear_ca.qm FlightGear_zh_CN.qm
> FlightGear_de.qm icons
>
> pac1@spinnaker:/work/suites/fg/tasks/next/build/flightgear$ cmake .
>
> CMAKE Build type: RelWithDebInfo
> -- System is: Linux
> -- Linux distro is: Ubuntu
> -- Web browser launcher command is: xdg-open
> -- Using explicit data directory for base package:
> /work/suites/fg/tasks/next/install/flightgear/fgdata
> -- libudev stable: 1
> -- Found UDev: /usr/lib/x86_64-linux-gnu/libudev.so
> -- include: /usr/include
> -- event-based input enabled. Using /usr/lib/x86_64-linux-gnu/libudev.so
> -- Enabling HID-API input
> -- SWIFT support enabled
> -- VR support disabled, OpenXR not found
> -- Using explicitly defined translations from:
> /work/suites/fg/tasks/next/install/flightgear/fgdata/Translations
> -- Detected language files: ca;de;en_US;es;fr;it;nl;pl;pt;ru;sk;tr;zh_CN
> -- Wibble
> -- Qt GUI enabled, found Qt at: /usr/lib/x86_64-linux-gnu/qt5
> -- QtGui private headers not available.
> -- Min Simgear version is 2020.4.0
> -- Data Distribution Service support: DISBLED
> -- SSE/SSE2 support: ENABLED
> -- libudev stable: 1
> -- Found UDev: /usr/lib/x86_64-linux-gnu/libudev.so
> -- include: /usr/include
> -- Enabling legacy joystick code (from PLIB)
> -- CppUnit: Building the FlightGear supplied CppUnit library
> CMake Warning (dev) at test_suite/CMakeLists.txt:67 (include):
> Policy CMP0145 is not set: The Dart and FindDart modules are removed.
> Run
> "cmake --help-policy CMP0145" for policy details. Use the cmake_policy
> command to set the policy and suppress this warning.
>
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> CMake Warning (dev) at /usr/share/cmake-3.27/Modules/Dart.cmake:47
> (message):
> Policy CMP0145 is not set: The Dart and FindDart modules are removed.
> Run
> "cmake --help-policy CMP0145" for policy details. Use the cmake_policy
> command to set the policy and suppress this warning.
> Call Stack (most recent call first):
> test_suite/CMakeLists.txt:67 (include)
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Configuring done (0.6s)
> -- Generating done (0.1s)
> -- Build files have been written to:
> /work/suites/fg/tasks/next/build/flightgear
>
> pac1@spinnaker:/work/suites/fg/tasks/next/build/flightgear$ cmake
> --help-policy CMP0145
>
> CMP0145
> -------
>
> .. versionadded:: 3.27
>
> The ``Dart`` and ``FindDart`` modules are removed.
>
> These modules were added very early in CMake's development to support
> driving tests with a "DART" tool, but DART has not been distributed or
> maintained for many years. Projects would ``include(Dart)`` to use it,
> and the ``Dart`` module would run ``find_package(Dart)`` internally.
> Since ``ctest(1)`` was created, the ``Dart`` module has just been
> a compatibility shim that finds ``Dart`` to support some legacy
> functionality and then forwards to the ``CTest`` module.
>
> CMake 3.27 and above prefer to not provide the ``Dart`` or
> ``FindDart`` modules. This policy provides compatibility for
> projects that have not been ported away from them. Projects using the
> ``Dart`` module should be updated to use the ``CTest`` module directly.
>
> The ``OLD`` behavior of this policy is for ``include(Dart)`` and
> ``find_package(Dart)`` to load the deprecated modules. The ``NEW``
> behavior is for uses of the modules to fail as if they do not exist.
>
> This policy was introduced in CMake version 3.27. CMake version
> 3.27.4 warns when the policy is not set and uses ``OLD`` behavior.
> Use the ``cmake_policy()`` command to set it to ``OLD`` or ``NEW``
> explicitly.
>
> .. note::
> The ``OLD`` behavior of a policy is
> ``deprecated by definition``
> and may be removed in a future version of CMake.
>
>
> _______________________________________________
> Flightgear-devel mailing \
> listFlightgear-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
[Attachment #5 (text/html)]
<div dir="ltr">I substituted ninja build everything seems to work \
now.<div><br></div><div>-Pat</div><div><br></div><div>"I seem to have produced \
yet another demonstration of the Cargo Cult programming paradigm." - P \
Callahan<br><div>Now you can write code without thinking about it! Join us for our \
weekly webinar!</div><div><br></div></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Wed, Nov 8, 2023 at 9:33 PM Scott Giese <<a \
href="mailto:scttgs0@gmail.com" target="_blank">scttgs0@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="padding-bottom:1px">
<p>-DBUILD_TESTING=ON is proper. Don't bother trying to compile the
test suite separately. Just add the define (-D) to your normal
flightgear build.<br>
</p>
<p>You can execute the tests via:<br>
ninja test</p>
<p>I see you have a build.ninja file, so I assume you are building
with Ninja. If you are using make then use:<br>
make test<br>
</p>
<div>On 11/8/23 11:56 AM, Patrick Callahan
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">following <a \
href="https://wiki.flightgear.org/Software_testing#Building_the_test_suite" \
target="_blank">https://wiki.flightgear.org/Software_testing#Building_the_test_suite</a>
<div>I could not get the flightgear tests to run.</div>
<div><br>
</div>
<div><br>
</div>
<div>#!/bin/bash<br>
# test_build<br>
cd build/flightgear<br>
cmake -LBUILD_TESTING=ON .<br>
export FG_ROOT=install/flightgear/fgdata]<br>
make test_suite<br>
</div>
<div><br>
</div>
<div>On execution I get:</div>
<div><br>
</div>
<div>./test_build<br>
CMake Error: Unknown argument -LBUILD_TESTING=ON<br>
CMake Error: Run 'cmake --help' for all supported options.<br>
make: Nothing to be done for 'test_suite'.<br>
</div>
<div><br>
</div>
<div>Changing -L to -D gets us a bit further, but then
test_suite can't be found as a target.</div>
<div><br>
</div>
<div><br>
</div>
<div>Then there is this:</div>
<div><br>
</div>
<div><br>
</div>
<div>Did I miss something?</div>
<div><br>
</div>
<div>There's also this regarding the use of "Dart"</div>
<div><br>
</div>
<div>pac1@spinnaker:/work/suites/fg/tasks/next/build/flightgear$
ls<br>
+ ls --color=auto<br>
3rdparty FlightGear_en_US.qm
install_manifest.txt<br>
build.ninja FlightGear_es.qm man<br>
CMakeCache.txt FlightGear_fr.qm package<br>
CMakeFiles FlightGear_it.qm positions.hxx<br>
cmake_install.cmake FlightGear_nl.qm scripts<br>
cmake_uninstall.cmake FlightGear_pl.qm src<br>
CPackConfig.cmake FlightGear_pt.qm Testing<br>
CPackSourceConfig.cmake FlightGear_ru.qm test_suite<br>
CTestTestfile.cmake FlightGear_sk.qm translations.qrc<br>
DartConfiguration.tcl FlightGear_tr.qm utils<br>
FlightGear_ca.qm FlightGear_zh_CN.qm<br>
FlightGear_de.qm icons<br>
<br>
pac1@spinnaker:/work/suites/fg/tasks/next/build/flightgear$
cmake .<br>
<br>
CMAKE Build type: RelWithDebInfo<br>
-- System is: Linux<br>
-- Linux distro is: Ubuntu<br>
-- Web browser launcher command is: xdg-open<br>
-- Using explicit data directory for base package:
/work/suites/fg/tasks/next/install/flightgear/fgdata<br>
-- libudev stable: 1<br>
-- Found UDev: /usr/lib/x86_64-linux-gnu/libudev.so<br>
-- include: /usr/include<br>
-- event-based input enabled. Using
/usr/lib/x86_64-linux-gnu/libudev.so<br>
-- Enabling HID-API input<br>
-- SWIFT support enabled<br>
-- VR support disabled, OpenXR not found<br>
-- Using explicitly defined translations from:
/work/suites/fg/tasks/next/install/flightgear/fgdata/Translations<br>
-- Detected language files:
ca;de;en_US;es;fr;it;nl;pl;pt;ru;sk;tr;zh_CN<br>
-- Wibble<br>
-- Qt GUI enabled, found Qt at: /usr/lib/x86_64-linux-gnu/qt5<br>
-- QtGui private headers not available.<br>
-- Min Simgear version is 2020.4.0<br>
-- Data Distribution Service support: DISBLED<br>
-- SSE/SSE2 support: ENABLED<br>
-- libudev stable: 1<br>
-- Found UDev: /usr/lib/x86_64-linux-gnu/libudev.so<br>
-- include: /usr/include<br>
-- Enabling legacy joystick code (from PLIB)<br>
-- CppUnit: Building the FlightGear supplied CppUnit library<br>
CMake Warning (dev) at test_suite/CMakeLists.txt:67 (include):<br>
Policy CMP0145 is not set: The Dart and FindDart modules are
removed. Run<br>
"cmake --help-policy CMP0145" for policy details. Use the
cmake_policy<br>
command to set the policy and suppress this warning.<br>
<br>
This warning is for project developers. Use -Wno-dev to
suppress it.<br>
<br>
CMake Warning (dev) at
/usr/share/cmake-3.27/Modules/Dart.cmake:47 (message):<br>
Policy CMP0145 is not set: The Dart and FindDart modules are
removed. Run<br>
"cmake --help-policy CMP0145" for policy details. Use the
cmake_policy<br>
command to set the policy and suppress this warning.<br>
Call Stack (most recent call first):<br>
test_suite/CMakeLists.txt:67 (include)<br>
This warning is for project developers. Use -Wno-dev to
suppress it.<br>
<br>
-- Configuring done (0.6s)<br>
-- Generating done (0.1s)<br>
-- Build files have been written to:
/work/suites/fg/tasks/next/build/flightgear<br>
<br>
pac1@spinnaker:/work/suites/fg/tasks/next/build/flightgear$
cmake --help-policy CMP0145<br>
<br>
CMP0145<br>
-------<br>
<br>
.. versionadded:: 3.27<br>
<br>
The ``Dart`` and ``FindDart`` modules are removed.<br>
<br>
These modules were added very early in CMake's development to
support<br>
driving tests with a "DART" tool, but DART has not been
distributed or<br>
maintained for many years. Projects would ``include(Dart)``
to use it,<br>
and the ``Dart`` module would run ``find_package(Dart)``
internally.<br>
Since ``ctest(1)`` was created, the ``Dart`` module has just
been<br>
a compatibility shim that finds ``Dart`` to support some
legacy<br>
functionality and then forwards to the ``CTest`` module.<br>
<br>
CMake 3.27 and above prefer to not provide the ``Dart`` or<br>
``FindDart`` modules. This policy provides compatibility for<br>
projects that have not been ported away from them. Projects
using the<br>
``Dart`` module should be updated to use the ``CTest`` module
directly.<br>
<br>
The ``OLD`` behavior of this policy is for ``include(Dart)``
and<br>
``find_package(Dart)`` to load the deprecated modules. The
``NEW``<br>
behavior is for uses of the modules to fail as if they do not
exist.<br>
<br>
This policy was introduced in CMake version 3.27. CMake
version<br>
3.27.4 warns when the policy is not set and uses ``OLD``
behavior.<br>
Use the ``cmake_policy()`` command to set it to ``OLD`` or
``NEW``<br>
explicitly.<br>
<br>
.. note::<br>
The ``OLD`` behavior of a policy is<br>
``deprecated by definition``<br>
and may be removed in a future version of CMake.<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Flightgear-devel mailing list
<a href="mailto:Flightgear-devel@lists.sourceforge.net" \
target="_blank">Flightgear-devel@lists.sourceforge.net</a> <a \
href="https://lists.sourceforge.net/lists/listinfo/flightgear-devel" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/flightgear-devel</a> \
</pre> </blockquote>
</div>
<u></u><u></u>
_______________________________________________<br>
Flightgear-devel mailing list<br>
<a href="mailto:Flightgear-devel@lists.sourceforge.net" \
target="_blank">Flightgear-devel@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/flightgear-devel" rel="noreferrer" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/flightgear-devel</a><br> \
</blockquote></div>
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic