diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b85661c..cb45afd5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,6 +87,7 @@ jobs: call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-cpp mkdir -p build cd build + ls "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.29.30133\include" cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DXEUS_BUILD_TESTS=ON -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%" - name: cmake configure diff --git a/test/test_xcpp_kernel.py b/test/test_xcpp_kernel.py index f6c470a9..7cc8ad6e 100644 --- a/test/test_xcpp_kernel.py +++ b/test/test_xcpp_kernel.py @@ -127,11 +127,32 @@ class XCppTests(jupyter_kernel_test.KernelTests): } #include "xcpp/xdisplay.hpp" im::image marie("../notebooks/images/marie.png"); - xcpp::display(marie);""", + xcpp::display(marie); + """, 'mime': 'image/png' } ] +if platform.system() == 'Windows': + class XCppTests(jupyter_kernel_test.KernelTests): + + kernel_name = 'xcpp20' + + # language_info.name in a kernel_info_reply should match this + language_name = 'C++' + + code_err=""" + #include + std::cerr << "oops" << std::endl; + """ + + def test_xcpp_err(self): + self.flush_channels() + reply, output_msgs = self.execute_helper(code=self.code_err) + print(output_msgs) + self.assertEqual(output_msgs[0]['msg_type'], 'stream') + self.assertEqual(output_msgs[0]['content']['name'], 'stderr') + self.assertEqual(output_msgs[0]['content']['text'], 'oops\n') class XCppTests2(jupyter_kernel_test.KernelTests): @@ -145,4 +166,4 @@ class XCppTests2(jupyter_kernel_test.KernelTests): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()