KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_api_jobs.cpp File Reference
#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)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( ExportBoardDrill ,
API_SERVER_E2E_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( ExportBoardSvg ,
API_SERVER_E2E_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( ExportSchematicBom ,
API_SERVER_E2E_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( ExportSchematicNetlist ,
API_SERVER_E2E_FIXTURE  )

◆ 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().