Cross compiled executable not supported
See original GitHub issueChecklist
Describe the bug
I have installed a cross compiler for Raspberry Pi (ARM). I am able to compile an executable including Catch2 support.
Testmate won’t discover tests. There is an error message “Error: Not a supported test executable”
- I can execute the program using qemu-arm-static <executable> and see the Catch2 test report
- If I change the compiler to a standard x86 gcc, the tests are discovered.
Desktop
Extension Version: 3.2.12 VS Code Version: 1.47.1 Catch2 / Google Test / DOCTest Version: Catch2 v2.13.0-1-g229cc482 OS Type and Version: Windows 10 Using remote-ssh/docker/wsl?: docker on wsl2
Log
See below:
`
[2020-07-27 10:37:22.618] [INFO] load called [2020-07-27 10:37:22.618] [DEBUG] canceled [2020-07-27 10:37:22.618] [INFO] load started [2020-07-27 10:37:22.618] [INFO] context:executables [ { name: ‘blaat’, pattern: ‘build/imaxi2_test’ } ] [2020-07-27 10:37:22.618] [INFO] pattern build/imaxi2_test /home/dinne/isenseit/firmwares/raspberry/raspberry-firmware { isAbsolute: false, absPattern: ‘/home/dinne/isenseit/firmwares/raspberry/raspberry-firmware/build/imaxi2_test’, isPartOfWs: true, relativeToWsPosix: ‘build/imaxi2_test’ } [2020-07-27 10:37:22.707] [DEBUG] Checking file for tests: /home/dinne/isenseit/firmwares/raspberry/raspberry firmware/build/imaxi2_test [2020-07-27 10:37:22.715] [DEBUG] Not a test executable: /home/dinne/isenseit/firmwares/raspberry/raspberry firmware/build/imaxi2_test reason: [Error: Not a supported test executable: /home/dinne/isenseit/firmwares/raspberry/raspberry-firmware/build/imaxi2_test
output: at /home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:65:31530 at async e.ExecutableConfig.load (/home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:65:23639) at async Promise.all (index 0) at async s.load (/home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:64:33463) at async e.SharedVariables._shared.u.SharedVariables.e [as loadWithTask] (/home/_vscode/.vscode-server-insiders/extensions/matepek.vscode-catch2-test-adapter-3.2.12/out/dist/main.js:64:10172)] [2020-07-27 10:37:22.715] [INFO] load finished 0
`
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Not yet, but I will implement it. It seems a good feature.
Check
testMate.advancedExecutables.executionWrapper
. It is intended to solve your issue