premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.22k stars 620 forks source link

xcode tests failed on FreeBSD #1968

Closed Martinfx closed 2 years ago

Martinfx commented 2 years ago

What seems to be the problem? FreeBSD 13.1-RELEASE-p1 FreeBSD 13.1-RELEASE-p1 GENERIC amd64 xcode tests failed

What did you expect to happen? All test OK without fail

What have you tried so far? cd /usr/ports/devel/premake5/work/premake-5.0.0-beta2-src/tests && ./test

How can we reproduce this? cd /usr/ports/devel/premake5/work/premake-5.0.0-beta2-src/tests && ./test

What version of Premake are you using? ./premake5 --version premake5 (Premake Build Script Generator) 5.0.0-beta2

Anything else we should know? Add any other context about the problem here. test.txt


===>  Testing for premake5-5.0.0.b2
cd /usr/ports/devel/premake5/work/premake-5.0.0-beta2-src/tests && ./test
Running action 'test'...
snap...

[==========] 1916 tests from 188 test suites ran. (1727 ms total)
[  PASSED  ] 1913 tests.
[  FAILED  ] 3 tests, listed below:
[  FAILED  ] xcode_project.PBXBuildFile_ListsDylibs
...0.0-beta2-src/modules/xcode/tests/test_xcode_project.lua:113: (3) expected:
        91686CDFDECB631154EA631F /* libA.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F9AE5C74A870BB9926CD407 /* libA.dylib */; };
...but was:
        7B82CAE0EFDD0FD26DC09920 /* libC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B738886AE1153A9ED1FEC8 /* libC.dylib */; };
fulltext:
/* Begin PBXBuildFile section */
        3C98627697D9B5E86B3400B6 /* libB.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D413533EEB25EE70DB41E97E /* libB.dylib */; };
        7B82CAE0EFDD0FD26DC09920 /* libC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B738886AE1153A9ED1FEC8 /* libC.dylib */; };
        91686CDFDECB631154EA631F /* libA.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F9AE5C74A870BB9926CD407 /* libA.dylib */; };
/* End PBXBuildFile section */

stack traceback:
    ...0.0-beta2-src/modules/xcode/tests/test_xcode_project.lua:113: in function 'testFunction'
[  FAILED  ] xcode_project.PBXBuildFile_ListsFrameworksAndDylibsForSigning
...0.0-beta2-src/modules/xcode/tests/test_xcode_project.lua:143: (6) expected:
        91686CDFDECB631154EA631F /* libA.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F9AE5C74A870BB9926CD407 /* libA.dylib */; };
...but was:
        7B82CAE0EFDD0FD26DC09920 /* libC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B738886AE1153A9ED1FEC8 /* libC.dylib */; };
fulltext:
/* Begin PBXBuildFile section */
        12F1B82D44EB02DFBECA3E6D /* E.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A817AE35FEA518A7D71E2C75 /* E.framework */; };
        6557012668C7D358EA347766 /* E.framework in Embed Libraries */ = {isa = PBXBuildFile; fileRef = A817AE35FEA518A7D71E2C75 /* E.framework */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
        3C98627697D9B5E86B3400B6 /* libB.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D413533EEB25EE70DB41E97E /* libB.dylib */; };
        AC7C2020DB2274123463CE60 /* libB.dylib in Embed Libraries */ = {isa = PBXBuildFile; fileRef = D413533EEB25EE70DB41E97E /* libB.dylib */; };
        7B82CAE0EFDD0FD26DC09920 /* libC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B738886AE1153A9ED1FEC8 /* libC.dylib */; };
        91686CDFDECB631154EA631F /* libA.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F9AE5C74A870BB9926CD407 /* libA.dylib */; };
        E054F1BF0EFB45B1683C9FFF /* libA.dylib in Embed Libraries */ = {isa = PBXBuildFile; fileRef = 5F9AE5C74A870BB9926CD407 /* libA.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
        F56B754B2764BFFDA143FB8B /* D.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3987C734A25E6E5229EFAB3 /* D.framework */; };
        966D8A4599DE5C771B4B0085 /* D.framework in Embed Libraries */ = {isa = PBXBuildFile; fileRef = F3987C734A25E6E5229EFAB3 /* D.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

stack traceback:
    ...0.0-beta2-src/modules/xcode/tests/test_xcode_project.lua:143: in function 'testFunction'
[  FAILED  ] xcode_project.PBXFileReference_ListDylibsCorrectly
...0.0-beta2-src/modules/xcode/tests/test_xcode_project.lua:434: (3) expected:
        5F9AE5C74A870BB9926CD407 /* libA.dylib */ = {isa = PBXFileReference; lastKnownFileType = compiled.mach-o.dylib; name = libA.dylib; path = ../libA.dylib; sourceTree = SOURCE_ROOT; };
...but was:
        58B738886AE1153A9ED1FEC8 /* libC.dylib */ = {isa = PBXFileReference; lastKnownFileType = compiled.mach-o.dylib; name = libC.dylib; path = ../../../../../../lib/libC.dylib; sourceTree = SOURCE_ROOT; };
fulltext:
/* Begin PBXFileReference section */
        19A5C4E61D1697189E833B26 /* MyProject */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = MyProject; path = MyProject; sourceTree = BUILT_PRODUCTS_DIR; };
        58B738886AE1153A9ED1FEC8 /* libC.dylib */ = {isa = PBXFileReference; lastKnownFileType = compiled.mach-o.dylib; name = libC.dylib; path = ../../../../../../lib/libC.dylib; sourceTree = SOURCE_ROOT; };
        5F9AE5C74A870BB9926CD407 /* libA.dylib */ = {isa = PBXFileReference; lastKnownFileType = compiled.mach-o.dylib; name = libA.dylib; path = ../libA.dylib; sourceTree = SOURCE_ROOT; };
        D413533EEB25EE70DB41E97E /* libB.dylib */ = {isa = PBXFileReference; lastKnownFileType = compiled.mach-o.dylib; name = libB.dylib; path = libB.dylib; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

stack traceback:
    ...0.0-beta2-src/modules/xcode/tests/test_xcode_project.lua:434: in function 'testFunction'

 3 FAILED TESTS
*** Error code 5

Stop.
`
samsinsane commented 2 years ago

The unit tests seem to run fine for me on FreeBSD 11 and 13, I've tested both beta2 and latest, both appear to work fine. Unfortunately, your steps to repro are missing several steps such as building Premake, so I wasn't able to replicate your situation exactly. Additionally, I have 2,137 tests from 191 test suites, while you seem to have 1,916 from 188 - are you sure everything you're using is from the beta2 source?

Martinfx commented 2 years ago

I tried tests today and all tests passed. I don't use test for GCC, msc and dotnet.