Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test do not pass at build on debian11 #36

Open
kif opened this issue Sep 1, 2022 · 3 comments
Open

test do not pass at build on debian11 #36

kif opened this issue Sep 1, 2022 · 3 comments

Comments

@kif
Copy link

kif commented Sep 1, 2022

$ make test
Running tests...
Test project /home/jerome/workspace/cnxvalidate/build
    Start 1: nxvtest
1/1 Test #1: nxvtest ..........................***Failed    0.22 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.22 sec

The following tests FAILED:
	  1 - nxvtest (Failed)
Errors while running CTest
make: *** [Makefile:149 : test] Erreur 8
@RonHildebrandt
Copy link

RonHildebrandt commented Jul 30, 2024

I got the same problem using "Ubuntu 22.04.4 LTS (Jammy Jellyfish)".

Running tests...
Test project /home/ron/FAIRmat/WorkshopNeXusValid02/nxvalidate/cnxvalidate/build
    Start 1: nxvtest
1/1 Test #1: nxvtest ..........................***Failed    0.17 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.17 sec

The following tests FAILED:
	  1 - nxvtest (Failed)
Errors while running CTest

The LatestTest.log file shows:

----------------------------------------------------------
1/1 Testing: nxvtest
1/1 Test: nxvtest
Command: "/home/ron/FAIRmat/WorkshopNeXusValid02/nxvalidate/cnxvalidate/build/test/nxvtest"
Directory: /home/ron/FAIRmat/WorkshopNeXusValid02/nxvalidate/cnxvalidate/build/test
"nxvtest" start time: Jul 30 09:27 CEST
Output:
----------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxvtest is a Catch v1.2.1 host application.
Run with -? for options

-------------------------------------------------------------------------------
Scenario: Fail to validate NXsubentry with missing definition
     Given: An initialized validation context
      When: Validating subNOdef.h5
      Then: Path /entry/sub1 should report error failed to find application
            definition
-------------------------------------------------------------------------------
/home/ron/FAIRmat/WorkshopNeXusValid02/nxvalidate/cnxvalidate/test/testbasics.cpp:257
...............................................................................

/home/ron/FAIRmat/WorkshopNeXusValid02/nxvalidate/cnxvalidate/test/testbasics.cpp:267: FAILED:
  REQUIRE( findMessage(testResult,"/entry/sub1","error", "no application definition") )
with expansion:
  false

===============================================================================
test cases:  55 |  54 passed | 1 failed
assertions: 254 | 253 passed | 1 failed

<end of output>
Test time =   0.17 sec
----------------------------------------------------------
Test Failed.
"nxvtest" end time: Jul 30 09:27 CEST
"nxvtest" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Jul 30 09:27 CEST

@RonHildebrandt
Copy link

So, I got some help of an experienced colleque, which as well knows C/C++:
"make test" still fails. The error message still was present as we changed the file, which it is checking in the source code (subNOdef.h5) after new building of with "make".
BUT
I still could use the "nxvalidate -l appdefdir datafile" command to succesfully. The datafile was created by the FAIRmat project as well as our own extensions of the NeXus definitions.

This tool was very helpful, as it showed some lower level problems we have with our generated files.

@tacaswell
Copy link
Contributor

Also seeing this:

Start testing: Sep 27 17:08 CEST
----------------------------------------------------------
1/1 Testing: nxvtest
1/1 Test: nxvtest
Command: "/home/tcaswell/source/bnl/nexusformat/cnxvalidate/build/test/nxvtest"
Directory: /home/tcaswell/source/bnl/nexusformat/cnxvalidate/build/test
"nxvtest" start time: Sep 27 17:08 CEST
Output:
----------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nxvtest is a Catch v1.2.1 host application.
Run with -? for options

-------------------------------------------------------------------------------
Scenario: Fail to validate NXsubentry with missing definition
     Given: An initialized validation context
      When: Validating subNOdef.h5
      Then: Path /entry/sub1 should report error failed to find application
            definition
-------------------------------------------------------------------------------
/home/tcaswell/source/bnl/nexusformat/cnxvalidate/test/testbasics.cpp:257
...............................................................................

/home/tcaswell/source/bnl/nexusformat/cnxvalidate/test/testbasics.cpp:267: FAILED:
  REQUIRE( findMessage(testResult,"/entry/sub1","error", "no application definition") )
with expansion:
  false

===============================================================================
test cases:  55 |  54 passed | 1 failed
assertions: 254 | 253 passed | 1 failed

<end of output>
Test time =   0.23 sec
----------------------------------------------------------
Test Failed.
"nxvtest" end time: Sep 27 17:08 CEST
"nxvtest" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Sep 27 17:08 CEST

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants