|
KiCad PCB EDA Suite
|
#include <fstream>#include <sstream>#include <boost/test/unit_test.hpp>#include <wx/dir.h>#include <wx/filename.h>#include "api_e2e_utils.h"#include <api/board/board_jobs.pb.h>#include <api/board/board_types.pb.h>#include <api/schematic/schematic_jobs.pb.h>Go to the source code of this file.
Functions | |
| bool | textFilesMatch (const wxString &aGoldenPath, const wxString &aGeneratedPath, int aSkipLines) |
| Compare two text files line-by-line, optionally skipping the first aSkipLines lines of each file (to ignore timestamps / version headers). | |
| BOOST_FIXTURE_TEST_CASE (ExportBoardSvg, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ExportBoardDrill, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ExportSchematicNetlist, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ExportSchematicBom, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE | ( | ExportBoardDrill | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 150 of file test_api_jobs.cpp.
References BOOST_CHECK_MESSAGE(), KI_TEST::GetTestDataRootDir(), and textFilesMatch().
| BOOST_FIXTURE_TEST_CASE | ( | ExportBoardSvg | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 99 of file test_api_jobs.cpp.
References std::abs(), BOOST_FIXTURE_TEST_CASE(), and KI_TEST::GetTestDataRootDir().
| BOOST_FIXTURE_TEST_CASE | ( | ExportSchematicBom | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 256 of file test_api_jobs.cpp.
References BOOST_CHECK_MESSAGE(), KI_TEST::GetTestDataRootDir(), and textFilesMatch().
| BOOST_FIXTURE_TEST_CASE | ( | ExportSchematicNetlist | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 209 of file test_api_jobs.cpp.
References BOOST_CHECK_MESSAGE(), KI_TEST::GetTestDataRootDir(), and textFilesMatch().
| bool textFilesMatch | ( | const wxString & | aGoldenPath, |
| const wxString & | aGeneratedPath, | ||
| int | aSkipLines ) |
Compare two text files line-by-line, optionally skipping the first aSkipLines lines of each file (to ignore timestamps / version headers).
Returns true if files are identical after the skipped prefix, false otherwise. On mismatch the first differing line pair is logged via BOOST_TEST_MESSAGE.
Definition at line 40 of file test_api_jobs.cpp.
References BOOST_TEST_MESSAGE().
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().