51 wxFileName settings( wxFileName::CreateTempFileName(
"kicad_qa_issue24297_" ) );
52 wxRemoveFile( settings.GetFullPath() );
53 settings.SetExt(
"kicad_httplib" );
56 wxFFileOutputStream out( settings.GetFullPath() );
60 " \"meta\": { \"version\": 1.0 },\n"
61 " \"name\": \"Test HTTP Library\",\n"
63 " \"type\": \"REST_API\",\n"
64 " \"api_version\": \"v1\",\n"
65 " \"root_url\": \"http://localhost:1/\",\n"
69 out.WriteAll(
json, std::strlen(
json ) );
73 SCH_IO_MGR::SCH_HTTP );
75 wxFileName outLib( settings );
76 outLib.SetExt(
"kicad_sym" );
77 wxRemoveFile( outLib.GetFullPath() );
81 outLib.GetFullPath() ) );
84 BOOST_CHECK( !outLib.Exists() );
86 wxRemoveFile( settings.GetFullPath() );
87 wxRemoveFile( outLib.GetFullPath() );
94 wxFileName settings( wxFileName::CreateTempFileName(
"kicad_qa_issue24297_db_" ) );
95 wxRemoveFile( settings.GetFullPath() );
96 settings.SetExt(
"kicad_dbl" );
99 wxFFileOutputStream out( settings.GetFullPath() );
103 " \"meta\": { \"version\": 0 },\n"
104 " \"name\": \"Test DB\",\n"
105 " \"source\": { \"type\": \"odbc\", \"dsn\": \"\", \"username\": \"\","
106 " \"password\": \"\", \"connection_string\": \"\" },\n"
107 " \"libraries\": []\n"
109 out.WriteAll(
json, std::strlen(
json ) );
113 SCH_IO_MGR::SCH_DATABASE );
115 wxFileName outLib( settings );
116 outLib.SetExt(
"kicad_sym" );
117 wxRemoveFile( outLib.GetFullPath() );
120 outLib.GetFullPath() ) );
121 BOOST_CHECK( !outLib.Exists() );
123 wxRemoveFile( settings.GetFullPath() );
124 wxRemoveFile( outLib.GetFullPath() );
static bool ConvertLibrary(std::map< std::string, UTF8 > *aOldFileProps, const wxString &aOldFilePath, const wxString &aNewFilepath)
Convert a schematic symbol library to the latest KiCad format.