KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_jobs_runner.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <wx/process.h>
#include <wx/txtstrm.h>
#include <wx/filename.h>
#include <wx/dir.h>
#include <wx/file.h>

Go to the source code of this file.

Functions

static int executeViaShell (const wxString &aCmd, wxString &aOutput)
 Helper that mirrors the shell-wrapping execution pattern used in JOBS_RUNNER::runSpecialExecute.
 
 BOOST_AUTO_TEST_CASE (SimpleCommand)
 
 BOOST_AUTO_TEST_CASE (GlobExpansion)
 
 BOOST_AUTO_TEST_CASE (PipeSupport)
 
 BOOST_AUTO_TEST_CASE (ExitCodePropagation)
 
 BOOST_AUTO_TEST_CASE (CommandWithSingleQuotes)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( CommandWithSingleQuotes )

Definition at line 172 of file test_jobs_runner.cpp.

References BOOST_CHECK_EQUAL(), executeViaShell(), and result.

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( ExitCodePropagation )

Definition at line 157 of file test_jobs_runner.cpp.

References BOOST_CHECK_EQUAL(), executeViaShell(), and result.

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( GlobExpansion )

Definition at line 99 of file test_jobs_runner.cpp.

References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), executeViaShell(), and result.

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( PipeSupport )

Definition at line 141 of file test_jobs_runner.cpp.

References BOOST_CHECK_EQUAL(), executeViaShell(), and result.

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( SimpleCommand )

Definition at line 86 of file test_jobs_runner.cpp.

References BOOST_CHECK_EQUAL(), executeViaShell(), and result.

◆ executeViaShell()

static int executeViaShell ( const wxString & aCmd,
wxString & aOutput )
static

Helper that mirrors the shell-wrapping execution pattern used in JOBS_RUNNER::runSpecialExecute.

Returns the exit code and captures stdout into aOutput.

Definition at line 44 of file test_jobs_runner.cpp.

References executeViaShell(), process, and result.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and executeViaShell().