premake / premake-core

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

Tests are broken #65

Closed akaStiX closed 9 years ago

akaStiX commented 9 years ago

Tried to run tests, this is the output from the latest premake version:

Running action 'test'...
xcode_project.XCBuildConfigurationTarget_OnInfoPlist: ...emakeFork/modules/xcode/tests/test_xcode_project.lua:1010: (8) expected:
                INFOPLIST_FILE = "../../MyProject-Info.plist";
...but was:
                INFOPLIST_FILE = "D:/MyProject-Info.plist";
stack traceback:
    ...emakeFork/modules/xcode/tests/test_xcode_project.lua:1010: in function <...emakeFork/modules/xcode/tests/test_xcode_project.lua:992>
vstudio_vs2010_rule_vars.onPathVar: ...Fork/tests/actions/vstudio/vc2010/test_rule_vars.lua:108: (2) expected:
    <MyVar>..\..\path\to\file</MyVar>
...but was:
    <MyVar>D:\path\to\file</MyVar>
stack traceback:
    ...Fork/tests/actions/vstudio/vc2010/test_rule_vars.lua:108: in function <...Fork/tests/actions/vstudio/vc2010/test_rule_vars.lua:100>
running time : 2.562
1149 tests passed, 2 failed

Do you run them on Travis-CI?

moomalade commented 9 years ago

I can't repro this from master 7965886fb06324435be08b2fdf8e7ee5f61c7187 on either Windows or OSX.

starkos commented 9 years ago

I'm unable to reproduce this either. Are you still having issues with this?

samsinsane commented 9 years ago

Closing this as there hasn't been a response in almost four months. If you're still experiencing problems, please feel free to reopen the issue.

akaStiX commented 9 years ago

It's totally weird, but I still can reproduce it on a https://github.com/premake/premake-core/commit/32151316a8b0216618e81f08d2698d76566fba4c

samsinsane commented 8 years ago

Looking at the test, a relative path is provided and then expected but it's translating to an absolute path, this implies to me that you've got changes in your xcode submodule, or it's outdated.