41 const std::filesystem::path boardPath =
46 const std::filesystem::path outputRoot =
47 std::filesystem::temp_directory_path() /
"kicad_gencad_export_test";
48 const std::filesystem::path outputPath = outputRoot /
"test_output.cad";
50 if( std::filesystem::exists( outputRoot ) )
51 std::filesystem::remove_all( outputRoot );
53 auto gencadJob = std::make_unique<JOB_EXPORT_PCB_GENCAD>();
54 gencadJob->m_filename = wxString::FromUTF8( boardPath.string().c_str() );
55 gencadJob->SetConfiguredOutputPath( wxString::FromUTF8( outputPath.string().c_str() ) );
60 BOOST_CHECK( std::filesystem::exists( outputPath ) );
61 BOOST_CHECK( std::filesystem::is_regular_file( outputPath ) );
63 std::filesystem::remove_all( outputRoot );
wxString result
Test unit parsing edge cases and error handling.
BOOST_CHECK_EQUAL(result, "25.4")