systemtests: make them usably with Windows binaries on Linux using Wine#1294
systemtests: make them usably with Windows binaries on Linux using Wine#1294joergsteffens wants to merge 34 commits intobareos:masterfrom
Conversation
fd6c0e7 to
40a55b8
Compare
c541a73 to
79fe7ae
Compare
c805141 to
08fa1f1
Compare
bb27525 to
70857ee
Compare
ebca217 to
26a8fe7
Compare
b4f4272 to
8f330f5
Compare
The string have slightly changed, because we now use full paths as Archive Devices.
6157f65 to
b4383b9
Compare
Add status message about variables PROJECT_SOURCE_DIR and CMAKE_MODULE_PATH.
b4383b9 to
1971e3f
Compare
pstorz
left a comment
There was a problem hiding this comment.
That this PR alters more thant 600 .in files just to add a prefix to an exisiting variable is not a good solution. Probably the variables need to be prefixed themselves by cmake instead.
Other than that please see review comments.
| get_target_property("binary_dir" "${binary_name}" BINARY_DIR) | ||
| # FIXME: is there a better way to get the resulting binary name/path? | ||
| if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||
| set("${binary_name_to_test_upcase}" "${binary_dir}/${binary_name}.exe") |
There was a problem hiding this comment.
Is this required? I would expect that the .exe can be left away and it still starts the executable.
| # Tested on Ubuntu 20.04 (wine-7.19), Fedora 35 (wine-6.18). | ||
| # While it seams to connect, no input prompt appears. | ||
| # Therefore we use the bconsole command (hopefully) installed on the system. | ||
| # However, there are reports it works with Fedora 36 (wine-7.18, wine-7.18-2.fc36.x86_64). |
There was a problem hiding this comment.
If it does work with Fedora 36 (which we have now), we could avoid all the extra tricks here?
The problem is, that we need this variable in 2 variants:
If using Instead of using
Still, the same amount if |
1 similar comment
The problem is, that we need this variable in 2 variants:
If using Instead of using
Still, the same amount if |
Co-authored-by: Philipp Storz <philipp.storz@bareos.com>
Co-authored-by: Philipp Storz <philipp.storz@bareos.com>
|
Closing, a try will be make to run test in native builds. |
Thank you for contributing to the Bareos Project!
Make the Windows binaries testable via systemtests on Linux using Wine.
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-mergedoes not report any problemsTests