FlightGear next
NasalUnitTesting.cxx File Reference
#include "config.h"
#include <Scripting/NasalUnitTesting.hxx>
#include <Main/globals.hxx>
#include <Main/util.hxx>
#include <Scripting/NasalSys.hxx>
#include <Scripting/NasalSys_private.hxx>
#include <Main/fg_commands.hxx>
#include <simgear/nasal/cppbind/from_nasal.hxx>
#include <simgear/nasal/cppbind/to_nasal.hxx>
#include <simgear/nasal/cppbind/NasalHash.hxx>
#include <simgear/nasal/cppbind/Ghost.hxx>
#include <simgear/structure/commands.hxx>
#include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/misc/sg_dir.hxx>

Go to the source code of this file.

Classes

struct  ActiveTest
 

Functions

static naRef f_assert (const nasal::CallContext &ctx)
 
static naRef f_fail (const nasal::CallContext &ctx)
 
static naRef f_assert_equal (const nasal::CallContext &ctx)
 
static naRef f_assert_doubles_equal (const nasal::CallContext &ctx)
 
static naRef f_equal (const nasal::CallContext &ctx)
 
bool command_executeNasalTest (const SGPropertyNode *arg, SGPropertyNode *root)
 
bool command_executeNasalTestDir (const SGPropertyNode *arg, SGPropertyNode *root)
 
naRef initNasalUnitTestInSim (naRef nasalGlobals, naContext c)
 
void executeNasalTestsInDir (const SGPath &path)
 
static naRef parseTestFile (naContext ctx, const char *filename, const char *buf, int len, std::string &errors)
 
bool executeNasalTest (const SGPath &path)
 
void shutdownNasalUnitTestInSim ()
 

Variables

static std::unique_ptr< ActiveTeststatic_activeTest
 

Function Documentation

◆ command_executeNasalTest()

bool command_executeNasalTest ( const SGPropertyNode * arg,
SGPropertyNode * root )

Definition at line 148 of file NasalUnitTesting.cxx.

◆ command_executeNasalTestDir()

bool command_executeNasalTestDir ( const SGPropertyNode * arg,
SGPropertyNode * root )

Definition at line 168 of file NasalUnitTesting.cxx.

◆ executeNasalTest()

bool executeNasalTest ( const SGPath & path)

Definition at line 232 of file NasalUnitTesting.cxx.

◆ executeNasalTestsInDir()

void executeNasalTestsInDir ( const SGPath & path)

Definition at line 198 of file NasalUnitTesting.cxx.

◆ f_assert()

static naRef f_assert ( const nasal::CallContext & ctx)
static

Definition at line 47 of file NasalUnitTesting.cxx.

◆ f_assert_doubles_equal()

static naRef f_assert_doubles_equal ( const nasal::CallContext & ctx)
static

Definition at line 115 of file NasalUnitTesting.cxx.

◆ f_assert_equal()

static naRef f_assert_equal ( const nasal::CallContext & ctx)
static

Definition at line 94 of file NasalUnitTesting.cxx.

◆ f_equal()

static naRef f_equal ( const nasal::CallContext & ctx)
static

Definition at line 136 of file NasalUnitTesting.cxx.

◆ f_fail()

static naRef f_fail ( const nasal::CallContext & ctx)
static

Definition at line 72 of file NasalUnitTesting.cxx.

◆ initNasalUnitTestInSim()

naRef initNasalUnitTestInSim ( naRef nasalGlobals,
naContext c )

Definition at line 181 of file NasalUnitTesting.cxx.

◆ parseTestFile()

static naRef parseTestFile ( naContext ctx,
const char * filename,
const char * buf,
int len,
std::string & errors )
static

Definition at line 209 of file NasalUnitTesting.cxx.

◆ shutdownNasalUnitTestInSim()

void shutdownNasalUnitTestInSim ( )

Definition at line 295 of file NasalUnitTesting.cxx.

Variable Documentation

◆ static_activeTest

std::unique_ptr<ActiveTest> static_activeTest
static

Definition at line 45 of file NasalUnitTesting.cxx.