test.cpp File Reference

Entry point for the test app. More...

#include "linden_common.h"
#include "llerrorcontrol.h"
#include "lltut.h"
#include <apr-1/apr_pools.h>
#include <apr-1/apr_getopt.h>

Include dependency graph for test.cpp:

Go to the source code of this file.

Namespaces

namespace  tut

Classes

class  LLTestCallback

Functions

void stream_usage (std::ostream &s, const char *app)
void stream_groups (std::ostream &s, const char *app)
void wouldHaveCrashed (const std::string &message)
int main (int argc, char **argv)

Variables

test_runner_singleton tut::runner
static const apr_getopt_option_t TEST_CL_OPTIONS []


Detailed Description

Entry point for the test app.

Author:
Phoenix
Date:
2005-09-26
LicenseInfo
firstyear=2005&license=viewergpl

Copyright (c) 2005-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file test.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 222 of file test.cpp.

References ctype_workaround(), LLError::initForApplication(), LLError::LEVEL_ERROR, NULL, tut::runner, LLError::setDefaultLevel(), LLError::setFatalFunction(), stream_groups(), stream_usage(), TEST_CL_OPTIONS, and wouldHaveCrashed().

void stream_groups ( std::ostream &  s,
const char *  app 
)

Definition at line 205 of file test.cpp.

References end, and tut::runner.

Referenced by main().

void stream_usage ( std::ostream &  s,
const char *  app 
)

Definition at line 176 of file test.cpp.

References TEST_CL_OPTIONS.

Referenced by main().

void wouldHaveCrashed ( const std::string &  message  ) 

Definition at line 217 of file test.cpp.

Referenced by main().


Variable Documentation

const apr_getopt_option_t TEST_CL_OPTIONS[] [static]

Initial value:

{
        {"help", 'h', 0, "Print the help message."},
        {"list", 'l', 0, "List available test groups."},
        {"verbose", 'v', 0, "Verbose output."},
        {"group", 'g', 1, "Run test group specified by option argument."},
        {"skip", 's', 1, "Skip test number specified by option argument. Only works when a specific group is being tested"},
        {"wait", 'w', 0, "Wait for input before exit."},
        {0, 0, 0, 0}
}

Definition at line 165 of file test.cpp.

Referenced by main(), and stream_usage().


Generated on Thu Jul 1 06:11:02 2010 for Second Life Viewer by  doxygen 1.4.7