aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/test
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/test')
-rw-r--r--linden/indra/test/common.cpp3
-rw-r--r--linden/indra/test/inventory.cpp3
-rw-r--r--linden/indra/test/io.cpp3
-rw-r--r--linden/indra/test/llapp_tut.cpp3
-rw-r--r--linden/indra/test/llbase64_tut.cpp5
-rw-r--r--linden/indra/test/llbitpack_tut.cpp5
-rw-r--r--linden/indra/test/llblowfish_tut.cpp7
-rw-r--r--linden/indra/test/llbuffer_tut.cpp6
-rw-r--r--linden/indra/test/lldatapacker_tut.cpp5
-rw-r--r--linden/indra/test/lldate_tut.cpp10
-rw-r--r--linden/indra/test/llerror_tut.cpp5
-rw-r--r--linden/indra/test/llhost_tut.cpp7
-rw-r--r--linden/indra/test/llhttpclient_tut.cpp3
-rw-r--r--linden/indra/test/llhttpdate_tut.cpp8
-rw-r--r--linden/indra/test/llhttpnode_tut.cpp6
-rw-r--r--linden/indra/test/llinventoryparcel_tut.cpp5
-rw-r--r--linden/indra/test/lliohttpserver_tut.cpp6
-rw-r--r--linden/indra/test/lljoint_tut.cpp5
-rw-r--r--linden/indra/test/llmessageconfig_tut.cpp42
-rw-r--r--linden/indra/test/llmessagetemplateparser_tut.cpp6
-rw-r--r--linden/indra/test/llmime_tut.cpp3
-rw-r--r--linden/indra/test/llnamevalue_tut.cpp7
-rw-r--r--linden/indra/test/llpartdata_tut.cpp5
-rw-r--r--linden/indra/test/llpermissions_tut.cpp5
-rw-r--r--linden/indra/test/llpipeutil.cpp3
-rw-r--r--linden/indra/test/llpipeutil.h3
-rw-r--r--linden/indra/test/llquaternion_tut.cpp22
-rw-r--r--linden/indra/test/llrandom_tut.cpp5
-rw-r--r--linden/indra/test/llsaleinfo_tut.cpp7
-rw-r--r--linden/indra/test/llsd_new_tut.cpp4
-rwxr-xr-xlinden/indra/test/llsdmessagebuilder_tut.cpp6
-rwxr-xr-xlinden/indra/test/llsdmessagereader_tut.cpp3
-rw-r--r--linden/indra/test/llsdserialize_tut.cpp6
-rw-r--r--linden/indra/test/llsdtraits.h5
-rw-r--r--linden/indra/test/llsdutil_tut.cpp5
-rw-r--r--linden/indra/test/llservicebuilder_tut.cpp46
-rw-r--r--linden/indra/test/llstreamtools_tut.cpp8
-rw-r--r--linden/indra/test/llstring_tut.cpp5
-rw-r--r--linden/indra/test/lltemplatemessagebuilder_tut.cpp5
-rw-r--r--linden/indra/test/lltiming_tut.cpp3
-rw-r--r--linden/indra/test/lltut.cpp3
-rw-r--r--linden/indra/test/lltut.h3
-rw-r--r--linden/indra/test/lluri_tut.cpp6
-rw-r--r--linden/indra/test/lluserrelations_tut.cpp3
-rw-r--r--linden/indra/test/lluuidhashmap_tut.cpp5
-rw-r--r--linden/indra/test/llxfer_tut.cpp5
-rw-r--r--linden/indra/test/llxorcipher_tut.cpp7
-rw-r--r--linden/indra/test/m3math_tut.cpp5
-rw-r--r--linden/indra/test/math.cpp3
-rw-r--r--linden/indra/test/message_tut.cpp5
-rw-r--r--linden/indra/test/reflection_tut.cpp4
-rw-r--r--linden/indra/test/test.cpp3
-rw-r--r--linden/indra/test/test.vcproj6
-rw-r--r--linden/indra/test/test_llmanifest.py57
-rw-r--r--linden/indra/test/v2math_tut.cpp19
-rw-r--r--linden/indra/test/v3color_tut.cpp12
-rw-r--r--linden/indra/test/v3dmath_tut.cpp14
-rw-r--r--linden/indra/test/v3math_tut.cpp23
-rw-r--r--linden/indra/test/v4color_tut.cpp12
-rw-r--r--linden/indra/test/v4coloru_tut.cpp7
-rw-r--r--linden/indra/test/v4math_tut.cpp7
-rw-r--r--linden/indra/test/xform_tut.cpp7
62 files changed, 341 insertions, 174 deletions
diff --git a/linden/indra/test/common.cpp b/linden/indra/test/common.cpp
index d32a4ca..f647a8d 100644
--- a/linden/indra/test/common.cpp
+++ b/linden/indra/test/common.cpp
@@ -4,6 +4,8 @@
4 * @date 2005-10-12 4 * @date 2005-10-12
5 * @brief Common templates for test framework 5 * @brief Common templates for test framework
6 * 6 *
7 * $LicenseInfo:firstyear=2005&license=viewergpl$
8 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 9 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31/** 34/**
diff --git a/linden/indra/test/inventory.cpp b/linden/indra/test/inventory.cpp
index 944647f..b58ebc5 100644
--- a/linden/indra/test/inventory.cpp
+++ b/linden/indra/test/inventory.cpp
@@ -4,6 +4,8 @@
4 * @date 2005-11-15 4 * @date 2005-11-15
5 * @brief Functions for inventory test framework 5 * @brief Functions for inventory test framework
6 * 6 *
7 * $LicenseInfo:firstyear=2005&license=viewergpl$
8 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 9 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include "linden_common.h" 34#include "linden_common.h"
diff --git a/linden/indra/test/io.cpp b/linden/indra/test/io.cpp
index 412c010..363f375 100644
--- a/linden/indra/test/io.cpp
+++ b/linden/indra/test/io.cpp
@@ -4,6 +4,8 @@
4 * @date 2005-10-02 4 * @date 2005-10-02
5 * @brief Tests for io classes and helpers 5 * @brief Tests for io classes and helpers
6 * 6 *
7 * $LicenseInfo:firstyear=2005&license=viewergpl$
8 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 9 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include "linden_common.h" 34#include "linden_common.h"
diff --git a/linden/indra/test/llapp_tut.cpp b/linden/indra/test/llapp_tut.cpp
index 60995ba..1b5d946 100644
--- a/linden/indra/test/llapp_tut.cpp
+++ b/linden/indra/test/llapp_tut.cpp
@@ -3,6 +3,8 @@
3 * @author Phoenix 3 * @author Phoenix
4 * @date 2006-09-12 4 * @date 2006-09-12
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
diff --git a/linden/indra/test/llbase64_tut.cpp b/linden/indra/test/llbase64_tut.cpp
index 1d059dce..d9073cf 100644
--- a/linden/indra/test/llbase64_tut.cpp
+++ b/linden/indra/test/llbase64_tut.cpp
@@ -3,7 +3,9 @@
3 * @author James Cook 3 * @author James Cook
4 * @date 2007-02-04 4 * @date 2007-02-04
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include "linden_common.h" 33#include "linden_common.h"
diff --git a/linden/indra/test/llbitpack_tut.cpp b/linden/indra/test/llbitpack_tut.cpp
index 71e4a4d..39b630c 100644
--- a/linden/indra/test/llbitpack_tut.cpp
+++ b/linden/indra/test/llbitpack_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief llstreamtools test cases. 5 * @brief llstreamtools test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/llblowfish_tut.cpp b/linden/indra/test/llblowfish_tut.cpp
index ba63860..b220755 100644
--- a/linden/indra/test/llblowfish_tut.cpp
+++ b/linden/indra/test/llblowfish_tut.cpp
@@ -7,7 +7,9 @@
7 * openssl enc -bf-cbc -in blowfish.digits.txt -out blowfish.1.bin -K 00000000000000000000000000000000 -iv 0000000000000000 -p 7 * openssl enc -bf-cbc -in blowfish.digits.txt -out blowfish.1.bin -K 00000000000000000000000000000000 -iv 0000000000000000 -p
8 * openssl enc -bf-cbc -in blowfish.digits.txt -out blowfish.2.bin -K 526a1e07a19dbaed84c4ff08a488d15e -iv 0000000000000000 -p 8 * openssl enc -bf-cbc -in blowfish.digits.txt -out blowfish.2.bin -K 526a1e07a19dbaed84c4ff08a488d15e -iv 0000000000000000 -p
9 * 9 *
10 * Copyright (c) 2007-2007, Linden Research, Inc. 10 * $LicenseInfo:firstyear=2007&license=viewergpl$
11 *
12 * Copyright (c) 2007, Linden Research, Inc.
11 * 13 *
12 * Second Life Viewer Source Code 14 * Second Life Viewer Source Code
13 * The source code in this file ("Source Code") is provided by Linden Lab 15 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -29,6 +31,7 @@
29 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 31 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
30 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 32 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
31 * COMPLETENESS OR PERFORMANCE. 33 * COMPLETENESS OR PERFORMANCE.
34 * $/LicenseInfo$
32 */ 35 */
33 36
34#include "linden_common.h" 37#include "linden_common.h"
@@ -36,8 +39,6 @@
36 39
37#include "llblowfishcipher.h" 40#include "llblowfishcipher.h"
38 41
39#include <string>
40#include <stdio.h>
41#include "lluuid.h" 42#include "lluuid.h"
42 43
43namespace tut 44namespace tut
diff --git a/linden/indra/test/llbuffer_tut.cpp b/linden/indra/test/llbuffer_tut.cpp
index afe3133..cd659ce 100644
--- a/linden/indra/test/llbuffer_tut.cpp
+++ b/linden/indra/test/llbuffer_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief llbuffer test cases. 5 * @brief llbuffer test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,9 +28,11 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
35#include "linden_common.h"
32#include "lltut.h" 36#include "lltut.h"
33#include "llbuffer.h" 37#include "llbuffer.h"
34#include "llerror.h" 38#include "llerror.h"
diff --git a/linden/indra/test/lldatapacker_tut.cpp b/linden/indra/test/lldatapacker_tut.cpp
index 1c2a10e..a010ed0 100644
--- a/linden/indra/test/lldatapacker_tut.cpp
+++ b/linden/indra/test/lldatapacker_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief LLDataPacker test cases. 5 * @brief LLDataPacker test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/lldate_tut.cpp b/linden/indra/test/lldate_tut.cpp
index f8813e3..5e6d003 100644
--- a/linden/indra/test/lldate_tut.cpp
+++ b/linden/indra/test/lldate_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief LLDate test cases. 5 * @brief LLDate test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
@@ -35,6 +38,7 @@
35#define VALID_DATE "2003-04-30T04:00:00Z" 38#define VALID_DATE "2003-04-30T04:00:00Z"
36#define VALID_DATE_LEAP "2004-02-29T04:00:00Z" 39#define VALID_DATE_LEAP "2004-02-29T04:00:00Z"
37#define VALID_DATE_HOUR_BOUNDARY "2003-04-30T23:59:59Z" 40#define VALID_DATE_HOUR_BOUNDARY "2003-04-30T23:59:59Z"
41#define VALID_DATE_FRACTIONAL_SECS "2007-09-26T20:31:33.70Z"
38 42
39// invalid format 43// invalid format
40#define INVALID_DATE_MISSING_YEAR "-04-30T22:59:59Z" 44#define INVALID_DATE_MISSING_YEAR "-04-30T22:59:59Z"
@@ -88,6 +92,10 @@ namespace tut
88 expected_string = VALID_DATE_HOUR_BOUNDARY; 92 expected_string = VALID_DATE_HOUR_BOUNDARY;
89 ensure_equals("VALID_DATE_HOUR_BOUNDARY failed" , expected_string, date.asString()); 93 ensure_equals("VALID_DATE_HOUR_BOUNDARY failed" , expected_string, date.asString());
90 94
95 result = date.fromString(VALID_DATE_FRACTIONAL_SECS);
96 expected_string = VALID_DATE_FRACTIONAL_SECS;
97 ensure_equals("VALID_DATE_FRACTIONAL_SECS failed" , expected_string, date.asString());
98
91 result = date.fromString(INVALID_DATE_MISSING_YEAR); 99 result = date.fromString(INVALID_DATE_MISSING_YEAR);
92 ensure_equals("INVALID_DATE_MISSING_YEAR should have failed" , result, false); 100 ensure_equals("INVALID_DATE_MISSING_YEAR should have failed" , result, false);
93 101
diff --git a/linden/indra/test/llerror_tut.cpp b/linden/indra/test/llerror_tut.cpp
index 6c3df43..6a24eda 100644
--- a/linden/indra/test/llerror_tut.cpp
+++ b/linden/indra/test/llerror_tut.cpp
@@ -3,6 +3,8 @@
3 * @date December 2006 3 * @date December 2006
4 * @brief error unit tests 4 * @brief error unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,9 +27,12 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
33#include "linden_common.h"
30#include "llerror.h" 34#include "llerror.h"
35
31namespace 36namespace
32{ 37{
33 void test_that_error_h_includes_enough_things_to_compile_a_message() 38 void test_that_error_h_includes_enough_things_to_compile_a_message()
diff --git a/linden/indra/test/llhost_tut.cpp b/linden/indra/test/llhost_tut.cpp
index 01f3079..bbc1f02 100644
--- a/linden/indra/test/llhost_tut.cpp
+++ b/linden/indra/test/llhost_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief llhost test cases. 5 * @brief llhost test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,11 +28,12 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "lltut.h"
33#include "linden_common.h" 35#include "linden_common.h"
36#include "lltut.h"
34#include "llhost.h" 37#include "llhost.h"
35 38
36namespace tut 39namespace tut
diff --git a/linden/indra/test/llhttpclient_tut.cpp b/linden/indra/test/llhttpclient_tut.cpp
index 77f1e25..b29caf9 100644
--- a/linden/indra/test/llhttpclient_tut.cpp
+++ b/linden/indra/test/llhttpclient_tut.cpp
@@ -2,6 +2,8 @@
2 * @file llhttpclient_tut.cpp 2 * @file llhttpclient_tut.cpp
3 * @brief Testing the HTTP client classes. 3 * @brief Testing the HTTP client classes.
4 * 4 *
5 * $LicenseInfo:firstyear=2006&license=viewergpl$
6 *
5 * Copyright (c) 2006-2007, Linden Research, Inc. 7 * Copyright (c) 2006-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29/** 32/**
diff --git a/linden/indra/test/llhttpdate_tut.cpp b/linden/indra/test/llhttpdate_tut.cpp
index 5279a81..1be9825 100644
--- a/linden/indra/test/llhttpdate_tut.cpp
+++ b/linden/indra/test/llhttpdate_tut.cpp
@@ -3,7 +3,9 @@
3 * @author Kartic Krishnamurthy 3 * @author Kartic Krishnamurthy
4 * @date Wednesday, 18 Jul 2007 17:00:00 GMT :) 4 * @date Wednesday, 18 Jul 2007 17:00:00 GMT :)
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include "linden_common.h" 33#include "linden_common.h"
@@ -33,9 +36,6 @@
33#include "lldate.h" 36#include "lldate.h"
34#include "llframetimer.h" 37#include "llframetimer.h"
35 38
36#include <string>
37#include <time.h>
38
39namespace tut 39namespace tut
40{ 40{
41 struct httpdate_data 41 struct httpdate_data
diff --git a/linden/indra/test/llhttpnode_tut.cpp b/linden/indra/test/llhttpnode_tut.cpp
index 59d339c..245ea17 100644
--- a/linden/indra/test/llhttpnode_tut.cpp
+++ b/linden/indra/test/llhttpnode_tut.cpp
@@ -3,6 +3,8 @@
3 * @date May 2006 3 * @date May 2006
4 * @brief HTTP server unit tests 4 * @brief HTTP server unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,11 +27,11 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include "linden_common.h"
31#include "lltut.h" 34#include "lltut.h"
32
33#include "llhttpnode.h" 35#include "llhttpnode.h"
34#include "llsdhttpserver.h" 36#include "llsdhttpserver.h"
35 37
diff --git a/linden/indra/test/llinventoryparcel_tut.cpp b/linden/indra/test/llinventoryparcel_tut.cpp
index 1a815ca..a88c8d7 100644
--- a/linden/indra/test/llinventoryparcel_tut.cpp
+++ b/linden/indra/test/llinventoryparcel_tut.cpp
@@ -3,7 +3,9 @@
3 * @author Moss 3 * @author Moss
4 * @date 2007-04-17 4 * @date 2007-04-17
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include "linden_common.h" 33#include "linden_common.h"
diff --git a/linden/indra/test/lliohttpserver_tut.cpp b/linden/indra/test/lliohttpserver_tut.cpp
index a5693be..5ac79e6 100644
--- a/linden/indra/test/lliohttpserver_tut.cpp
+++ b/linden/indra/test/lliohttpserver_tut.cpp
@@ -3,6 +3,8 @@
3 * @date May 2006 3 * @date May 2006
4 * @brief HTTP server unit tests 4 * @brief HTTP server unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,11 +27,11 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include "linden_common.h"
31#include "lltut.h" 34#include "lltut.h"
32
33#include "llbufferstream.h" 35#include "llbufferstream.h"
34#include "lliohttpserver.h" 36#include "lliohttpserver.h"
35#include "llsdhttpserver.h" 37#include "llsdhttpserver.h"
diff --git a/linden/indra/test/lljoint_tut.cpp b/linden/indra/test/lljoint_tut.cpp
index 5be81ae..d633141 100644
--- a/linden/indra/test/lljoint_tut.cpp
+++ b/linden/indra/test/lljoint_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007=-03 4 * @date 2007=-03
5 * @brief lljoint test cases. 5 * @brief lljoint test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#ifdef THIS_DOESNT_LINK 34#ifdef THIS_DOESNT_LINK
diff --git a/linden/indra/test/llmessageconfig_tut.cpp b/linden/indra/test/llmessageconfig_tut.cpp
index cc2a0a2..df50d90 100644
--- a/linden/indra/test/llmessageconfig_tut.cpp
+++ b/linden/indra/test/llmessageconfig_tut.cpp
@@ -3,6 +3,8 @@
3 * @date March 2007 3 * @date March 2007
4 * @brief LLMessageConfig unit tests 4 * @brief LLMessageConfig unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,16 +27,18 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include "linden_common.h"
31#include "lltut.h"
32#include "llmessageconfig.h" 34#include "llmessageconfig.h"
35#include "lltut.h"
33#include "llsdserialize.h" 36#include "llsdserialize.h"
34#include "llfile.h" 37#include "llfile.h"
35#include "lldir.h" 38#include "lldir.h"
36#include "lltimer.h" 39#include "lltimer.h"
37#include "llframetimer.h" 40#include "llframetimer.h"
41#include "llsdutil.h"
38 42
39namespace tut 43namespace tut
40{ 44{
@@ -43,30 +47,30 @@ namespace tut
43 47
44 LLMessageConfigTestData() 48 LLMessageConfigTestData()
45 { 49 {
50 LLUUID random;
51 random.generate();
46 // generate temp dir 52 // generate temp dir
47 mTestConfigDir = "/tmp/llmessage-config-test"; 53 std::ostringstream oStr;
54 oStr << "/tmp/llmessage-config-test-" << random;
55 mTestConfigDir = oStr.str();
48 LLFile::mkdir(mTestConfigDir.c_str()); 56 LLFile::mkdir(mTestConfigDir.c_str());
49 57 writeConfigFile(LLSD());
50 LLMessageConfig::initClass("simulator", mTestConfigDir); 58 LLMessageConfig::initClass("simulator", mTestConfigDir);
51 } 59 }
52 60
53 ~LLMessageConfigTestData() 61 ~LLMessageConfigTestData()
54 { 62 {
55 // rm contents of temp dir 63 // rm contents of temp dir
56 gDirUtilp->deleteFilesInDir(mTestConfigDir, "*"); 64 int rmfile = LLFile::remove((mTestConfigDir + "/message.xml").c_str());
65 ensure_equals("rmfile value", rmfile, 0);
57 // rm temp dir 66 // rm temp dir
58 LLFile::rmdir(mTestConfigDir.c_str()); 67 int rmdir = LLFile::rmdir(mTestConfigDir.c_str());
68 ensure_equals("rmdir value", rmdir, 0);
59 } 69 }
60 70
61 void reloadConfig(const LLSD& config)
62 {
63 LLMessageConfig::useConfig(config);
64 }
65
66 void writeConfigFile(const LLSD& config) 71 void writeConfigFile(const LLSD& config)
67 { 72 {
68 std::string configFile = mTestConfigDir + "/message.xml"; 73 llofstream file((mTestConfigDir + "/message.xml").c_str());
69 llofstream file(configFile.c_str());
70 if (file.is_open()) 74 if (file.is_open())
71 { 75 {
72 LLSDSerialize::toPrettyXML(config, file); 76 LLSDSerialize::toPrettyXML(config, file);
@@ -85,7 +89,7 @@ namespace tut
85 { 89 {
86 LLSD config; 90 LLSD config;
87 config["serverDefaults"]["simulator"] = "template"; 91 config["serverDefaults"]["simulator"] = "template";
88 reloadConfig(config); 92 LLMessageConfig::useConfig(config);
89 ensure_equals("Ensure server default is not template", 93 ensure_equals("Ensure server default is not template",
90 LLMessageConfig::getServerDefaultFlavor(), 94 LLMessageConfig::getServerDefaultFlavor(),
91 LLMessageConfig::TEMPLATE_FLAVOR); 95 LLMessageConfig::TEMPLATE_FLAVOR);
@@ -99,7 +103,7 @@ namespace tut
99 config["serverDefaults"]["simulator"] = "template"; 103 config["serverDefaults"]["simulator"] = "template";
100 config["messages"]["msg1"]["flavor"] = "template"; 104 config["messages"]["msg1"]["flavor"] = "template";
101 config["messages"]["msg2"]["flavor"] = "llsd"; 105 config["messages"]["msg2"]["flavor"] = "llsd";
102 reloadConfig(config); 106 LLMessageConfig::useConfig(config);
103 ensure_equals("Ensure msg template flavor", 107 ensure_equals("Ensure msg template flavor",
104 LLMessageConfig::getMessageFlavor("msg1"), 108 LLMessageConfig::getMessageFlavor("msg1"),
105 LLMessageConfig::TEMPLATE_FLAVOR); 109 LLMessageConfig::TEMPLATE_FLAVOR);
@@ -115,7 +119,7 @@ namespace tut
115 LLSD config; 119 LLSD config;
116 config["serverDefaults"]["simulator"] = "llsd"; 120 config["serverDefaults"]["simulator"] = "llsd";
117 config["messages"]["msg1"]["trusted-sender"] = true; 121 config["messages"]["msg1"]["trusted-sender"] = true;
118 reloadConfig(config); 122 LLMessageConfig::useConfig(config);
119 ensure_equals("Ensure missing message gives no flavor", 123 ensure_equals("Ensure missing message gives no flavor",
120 LLMessageConfig::getMessageFlavor("Test"), 124 LLMessageConfig::getMessageFlavor("Test"),
121 LLMessageConfig::NO_FLAVOR); 125 LLMessageConfig::NO_FLAVOR);
@@ -137,7 +141,7 @@ namespace tut
137 config["messages"]["msg1"]["trusted-sender"] = false; 141 config["messages"]["msg1"]["trusted-sender"] = false;
138 config["messages"]["msg2"]["flavor"] = "llsd"; 142 config["messages"]["msg2"]["flavor"] = "llsd";
139 config["messages"]["msg2"]["trusted-sender"] = true; 143 config["messages"]["msg2"]["trusted-sender"] = true;
140 reloadConfig(config); 144 LLMessageConfig::useConfig(config);
141 ensure_equals("Ensure untrusted is untrusted", 145 ensure_equals("Ensure untrusted is untrusted",
142 LLMessageConfig::getSenderTrustedness("msg1"), 146 LLMessageConfig::getSenderTrustedness("msg1"),
143 LLMessageConfig::UNTRUSTED); 147 LLMessageConfig::UNTRUSTED);
@@ -156,7 +160,7 @@ namespace tut
156 LLSD config; 160 LLSD config;
157 config["serverDefaults"]["simulator"] = "template"; 161 config["serverDefaults"]["simulator"] = "template";
158 config["messages"]["msg1"]["flavor"] = "llsd"; 162 config["messages"]["msg1"]["flavor"] = "llsd";
159 reloadConfig(config); 163 LLMessageConfig::useConfig(config);
160 ensure_equals("Ensure msg1 exists, has llsd flavor", 164 ensure_equals("Ensure msg1 exists, has llsd flavor",
161 LLMessageConfig::getMessageFlavor("msg1"), 165 LLMessageConfig::getMessageFlavor("msg1"),
162 LLMessageConfig::LLSD_FLAVOR); 166 LLMessageConfig::LLSD_FLAVOR);
@@ -171,7 +175,7 @@ namespace tut
171 LLSD config; 175 LLSD config;
172 config["capBans"]["MapLayer"] = true; 176 config["capBans"]["MapLayer"] = true;
173 config["capBans"]["MapLayerGod"] = false; 177 config["capBans"]["MapLayerGod"] = false;
174 reloadConfig(config); 178 LLMessageConfig::useConfig(config);
175 ensure_equals("Ensure cap ban true MapLayer", 179 ensure_equals("Ensure cap ban true MapLayer",
176 LLMessageConfig::isCapBanned("MapLayer"), 180 LLMessageConfig::isCapBanned("MapLayer"),
177 true); 181 true);
diff --git a/linden/indra/test/llmessagetemplateparser_tut.cpp b/linden/indra/test/llmessagetemplateparser_tut.cpp
index 7e1f5a3..e9988be 100644
--- a/linden/indra/test/llmessagetemplateparser_tut.cpp
+++ b/linden/indra/test/llmessagetemplateparser_tut.cpp
@@ -3,6 +3,8 @@
3 * @date April 2007 3 * @date April 2007
4 * @brief LLMessageTemplateParser unit tests 4 * @brief LLMessageTemplateParser unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,12 +27,12 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h>
31#include "lltut.h"
32#include "linden_common.h" 33#include "linden_common.h"
33#include "llmessagetemplateparser.h" 34#include "llmessagetemplateparser.h"
35#include "lltut.h"
34 36
35namespace tut 37namespace tut
36{ 38{
diff --git a/linden/indra/test/llmime_tut.cpp b/linden/indra/test/llmime_tut.cpp
index ac1a036..a3ddb94 100644
--- a/linden/indra/test/llmime_tut.cpp
+++ b/linden/indra/test/llmime_tut.cpp
@@ -4,6 +4,8 @@
4 * @date 2006-12-24 4 * @date 2006-12-24
5 * @brief BRIEF_DESC of llmime_tut.cpp 5 * @brief BRIEF_DESC of llmime_tut.cpp
6 * 6 *
7 * $LicenseInfo:firstyear=2006&license=viewergpl$
8 *
7 * Copyright (c) 2006-2007, Linden Research, Inc. 9 * Copyright (c) 2006-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/llnamevalue_tut.cpp b/linden/indra/test/llnamevalue_tut.cpp
index 77e5ff2..44fc70c 100644
--- a/linden/indra/test/llnamevalue_tut.cpp
+++ b/linden/indra/test/llnamevalue_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief LLNameValue unit test 5 * @brief LLNameValue unit test
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,10 +28,11 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include "lltut.h"
32#include "linden_common.h" 34#include "linden_common.h"
35#include "lltut.h"
33#include "llnamevalue.h" 36#include "llnamevalue.h"
34#include "llsdserialize.h" 37#include "llsdserialize.h"
35 38
diff --git a/linden/indra/test/llpartdata_tut.cpp b/linden/indra/test/llpartdata_tut.cpp
index ce2cedc..1cbfc1a 100644
--- a/linden/indra/test/llpartdata_tut.cpp
+++ b/linden/indra/test/llpartdata_tut.cpp
@@ -4,7 +4,9 @@
4 * @date March 2007 4 * @date March 2007
5 * @brief LLPartData and LLPartSysData test cases. 5 * @brief LLPartData and LLPartSysData test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/llpermissions_tut.cpp b/linden/indra/test/llpermissions_tut.cpp
index 3b2cee0..8d5223e 100644
--- a/linden/indra/test/llpermissions_tut.cpp
+++ b/linden/indra/test/llpermissions_tut.cpp
@@ -4,7 +4,9 @@
4 * @date March 2007 4 * @date March 2007
5 * @brief llpermissions test cases. 5 * @brief llpermissions test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/llpipeutil.cpp b/linden/indra/test/llpipeutil.cpp
index 085d883..b7b9122 100644
--- a/linden/indra/test/llpipeutil.cpp
+++ b/linden/indra/test/llpipeutil.cpp
@@ -3,6 +3,8 @@
3 * @date 2006-05-18 3 * @date 2006-05-18
4 * @brief Utility pipe fittings for injecting and extracting strings 4 * @brief Utility pipe fittings for injecting and extracting strings
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30 33
diff --git a/linden/indra/test/llpipeutil.h b/linden/indra/test/llpipeutil.h
index a2c59dd..2531178 100644
--- a/linden/indra/test/llpipeutil.h
+++ b/linden/indra/test/llpipeutil.h
@@ -3,6 +3,8 @@
3 * @date 2006-05-18 3 * @date 2006-05-18
4 * @brief Utility pipe fittings for injecting and extracting strings 4 * @brief Utility pipe fittings for injecting and extracting strings
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#ifndef LL_LLPIPEUTIL_H 33#ifndef LL_LLPIPEUTIL_H
diff --git a/linden/indra/test/llquaternion_tut.cpp b/linden/indra/test/llquaternion_tut.cpp
index f64e87a..bfca1c4 100644
--- a/linden/indra/test/llquaternion_tut.cpp
+++ b/linden/indra/test/llquaternion_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief Test cases of llquaternion.h 5 * @brief Test cases of llquaternion.h
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,12 +28,13 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "llmath.h" 35
33#include "lltut.h"
34#include "linden_common.h" 36#include "linden_common.h"
37#include "lltut.h"
35#include "llquaternion.h" 38#include "llquaternion.h"
36#include "v4math.h" 39#include "v4math.h"
37#include "v3math.h" 40#include "v3math.h"
@@ -335,16 +338,15 @@ namespace tut
335 template<> template<> 338 template<> template<>
336 void llquat_test_object_t::test<10>() 339 void llquat_test_object_t::test<10>()
337 { 340 {
338#if (LL_RELEASE && LL_LINUX)
339 skip_fail("Doesn't work under Linux -- FIX ME!");
340#endif
341 LLVector4 vect(12.0f, 5.0f, 60.0f, 75.1f); 341 LLVector4 vect(12.0f, 5.0f, 60.0f, 75.1f);
342 LLQuaternion quat(2323.034f, 23.5f, 673.23f, 57667.5f); 342 LLQuaternion quat(2323.034f, 23.5f, 673.23f, 57667.5f);
343 LLVector4 result = vect * quat; 343 LLVector4 result = vect * quat;
344 ensure( 344 ensure(
345 "1. LLVector4 operator*(const LLVector4 &a, const LLQuaternion &rot) failed", 345 "1. LLVector4 operator*(const LLVector4 &a, const LLQuaternion &rot) failed",
346 (39928406016.0f == result.mV[0]) && 346 (39928406016.0f == result.mV[0]) &&
347 (1457801728.0f == result.mV[1]) && 347 // gcc on x86 actually gives us more precision than we were expecting, verified with -ffloat-store - we forgive this
348 (1457802240.0f >= result.mV[1]) && // gcc+x86+linux
349 (1457801728.0f <= result.mV[1]) && // elsewhere
348 (200580612096.0f == result.mV[2]) && 350 (200580612096.0f == result.mV[2]) &&
349 (75.099998f == result.mV[3])); 351 (75.099998f == result.mV[3]));
350 352
@@ -367,7 +369,7 @@ namespace tut
367 LLQuaternion quat(23.5f, 6.5f, 3.23f, 56.5f); 369 LLQuaternion quat(23.5f, 6.5f, 3.23f, 56.5f);
368 LLVector3 result = vect * quat; 370 LLVector3 result = vect * quat;
369 ensure( 371 ensure(
370 "1. LLVEctor3 operator*(const LLVector3 &a, const LLQuaternion &rot) failed", 372 "1. LLVector3 operator*(const LLVector3 &a, const LLQuaternion &rot) failed",
371 is_approx_equal(97182.953125f,result.mV[0]) && 373 is_approx_equal(97182.953125f,result.mV[0]) &&
372 is_approx_equal(-135405.640625f, result.mV[1]) && 374 is_approx_equal(-135405.640625f, result.mV[1]) &&
373 is_approx_equal(162986.140f, result.mV[2])); 375 is_approx_equal(162986.140f, result.mV[2]));
@@ -390,7 +392,7 @@ namespace tut
390 LLQuaternion quat(-3.5f, 4.5f, 3.5f, 6.5f); 392 LLQuaternion quat(-3.5f, 4.5f, 3.5f, 6.5f);
391 LLVector3d result = vect * quat; 393 LLVector3d result = vect * quat;
392 ensure( 394 ensure(
393 "1. LLVEctor3d operator*(const LLVector3d &a, const LLQuaternion &rot) failed ", 395 "1. LLVector3d operator*(const LLVector3d &a, const LLQuaternion &rot) failed ",
394 (-633.0f == result.mdV[0]) && 396 (-633.0f == result.mdV[0]) &&
395 (-300.0f == result.mdV[1]) && 397 (-300.0f == result.mdV[1]) &&
396 (-36.0f == result.mdV[2])); 398 (-36.0f == result.mdV[2]));
@@ -408,7 +410,7 @@ namespace tut
408 LLQuaternion quat2(1.0f, 4.0f, 2.0f, 5.0f); 410 LLQuaternion quat2(1.0f, 4.0f, 2.0f, 5.0f);
409 result = vect2 * quat2; 411 result = vect2 * quat2;
410 ensure( 412 ensure(
411 "3. LLvector3d operator*(const LLVector3d &a, const LLQuaternion &rot) failed", 413 "3. LLVector3d operator*(const LLVector3d &a, const LLQuaternion &rot) failed",
412 is_approx_equal_fraction(18.400001f, (F32) result.mdV[0], 8) && 414 is_approx_equal_fraction(18.400001f, (F32) result.mdV[0], 8) &&
413 is_approx_equal_fraction(188.6f, (F32) result.mdV[1], 8) && 415 is_approx_equal_fraction(188.6f, (F32) result.mdV[1], 8) &&
414 is_approx_equal_fraction(32.20f, (F32) result.mdV[2], 8)); 416 is_approx_equal_fraction(32.20f, (F32) result.mdV[2], 8));
diff --git a/linden/indra/test/llrandom_tut.cpp b/linden/indra/test/llrandom_tut.cpp
index c5b0488..846cfab 100644
--- a/linden/indra/test/llrandom_tut.cpp
+++ b/linden/indra/test/llrandom_tut.cpp
@@ -3,7 +3,9 @@
3 * @author Phoenix 3 * @author Phoenix
4 * @date 2007-01-25 4 * @date 2007-01-25
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
diff --git a/linden/indra/test/llsaleinfo_tut.cpp b/linden/indra/test/llsaleinfo_tut.cpp
index 9dc7f77..96da93a 100644
--- a/linden/indra/test/llsaleinfo_tut.cpp
+++ b/linden/indra/test/llsaleinfo_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief Test cases of llsaleinfo.h 5 * @brief Test cases of llsaleinfo.h
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,11 +28,12 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "lltut.h"
33#include "linden_common.h" 35#include "linden_common.h"
36#include "lltut.h"
34#include "llsaleinfo.h" 37#include "llsaleinfo.h"
35 38
36namespace tut 39namespace tut
diff --git a/linden/indra/test/llsd_new_tut.cpp b/linden/indra/test/llsd_new_tut.cpp
index 55e259d..b40d4fa 100644
--- a/linden/indra/test/llsd_new_tut.cpp
+++ b/linden/indra/test/llsd_new_tut.cpp
@@ -3,6 +3,8 @@
3 * @date February 2006 3 * @date February 2006
4 * @brief LLSD unit tests 4 * @brief LLSD unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,9 +27,9 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <math.h>
31#include <tut/tut.h> 33#include <tut/tut.h>
32#include "linden_common.h" 34#include "linden_common.h"
33#include "lltut.h" 35#include "lltut.h"
diff --git a/linden/indra/test/llsdmessagebuilder_tut.cpp b/linden/indra/test/llsdmessagebuilder_tut.cpp
index 95a49dd..96b37cc 100755
--- a/linden/indra/test/llsdmessagebuilder_tut.cpp
+++ b/linden/indra/test/llsdmessagebuilder_tut.cpp
@@ -3,6 +3,8 @@
3 * @date February 2006 3 * @date February 2006
4 * @brief LLSDMessageBuilder unit tests 4 * @brief LLSDMessageBuilder unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,11 +27,13 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
31#include "lltut.h"
32 34
35#include "linden_common.h"
36#include "lltut.h"
33#include "llsdmessagebuilder.h" 37#include "llsdmessagebuilder.h"
34#include "llsdmessagereader.h" 38#include "llsdmessagereader.h"
35#include "llsdtraits.h" 39#include "llsdtraits.h"
diff --git a/linden/indra/test/llsdmessagereader_tut.cpp b/linden/indra/test/llsdmessagereader_tut.cpp
index 0dd8974..646b875 100755
--- a/linden/indra/test/llsdmessagereader_tut.cpp
+++ b/linden/indra/test/llsdmessagereader_tut.cpp
@@ -3,6 +3,8 @@
3 * @date February 2006 3 * @date February 2006
4 * @brief LLSDMessageReader unit tests 4 * @brief LLSDMessageReader unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
diff --git a/linden/indra/test/llsdserialize_tut.cpp b/linden/indra/test/llsdserialize_tut.cpp
index 09097d8..43571c0 100644
--- a/linden/indra/test/llsdserialize_tut.cpp
+++ b/linden/indra/test/llsdserialize_tut.cpp
@@ -3,6 +3,8 @@
3 * @date April 2006 3 * @date April 2006
4 * @brief LLSDSerialize unit tests 4 * @brief LLSDSerialize unit tests
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,12 +27,12 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <math.h>
31#include <sstream>
32#include <tut/tut.h> 33#include <tut/tut.h>
33 34
35#include "linden_common.h"
34#include "llsd.h" 36#include "llsd.h"
35#include "llsdserialize.h" 37#include "llsdserialize.h"
36#include "lltut.h" 38#include "lltut.h"
diff --git a/linden/indra/test/llsdtraits.h b/linden/indra/test/llsdtraits.h
index 84fc1fe..97eece6 100644
--- a/linden/indra/test/llsdtraits.h
+++ b/linden/indra/test/llsdtraits.h
@@ -2,7 +2,9 @@
2 * @file llsdtraits.h 2 * @file llsdtraits.h
3 * @brief Unit test helpers 3 * @brief Unit test helpers
4 * 4 *
5 * Copyright (c) 2007-2007, Linden Research, Inc. 5 * $LicenseInfo:firstyear=2007&license=viewergpl$
6 *
7 * Copyright (c) 2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#ifndef LLSDTRAITS_H 32#ifndef LLSDTRAITS_H
diff --git a/linden/indra/test/llsdutil_tut.cpp b/linden/indra/test/llsdutil_tut.cpp
index bb5d7fd..3d0b601 100644
--- a/linden/indra/test/llsdutil_tut.cpp
+++ b/linden/indra/test/llsdutil_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief LLSD conversion routines test cases. 5 * @brief LLSD conversion routines test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include "linden_common.h" 34#include "linden_common.h"
diff --git a/linden/indra/test/llservicebuilder_tut.cpp b/linden/indra/test/llservicebuilder_tut.cpp
index 3b9d8b4..127a2a1 100644
--- a/linden/indra/test/llservicebuilder_tut.cpp
+++ b/linden/indra/test/llservicebuilder_tut.cpp
@@ -3,33 +3,37 @@
3* @brief LLServiceBuilder unit tests 3* @brief LLServiceBuilder unit tests
4* @date March 2007 4* @date March 2007
5* 5*
6* $LicenseInfo:firstyear=2006&license=viewergpl$
7*
6* Copyright (c) 2006-2007, Linden Research, Inc. 8* Copyright (c) 2006-2007, Linden Research, Inc.
7* 9*
8 * Second Life Viewer Source Code 10* Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11* The source code in this file ("Source Code") is provided by Linden Lab
10 * to you under the terms of the GNU General Public License, version 2.0 12* to you under the terms of the GNU General Public License, version 2.0
11 * ("GPL"), unless you have obtained a separate licensing agreement 13* ("GPL"), unless you have obtained a separate licensing agreement
12 * ("Other License"), formally executed by you and Linden Lab. Terms of 14* ("Other License"), formally executed by you and Linden Lab. Terms of
13 * the GPL can be found in doc/GPL-license.txt in this distribution, or 15* the GPL can be found in doc/GPL-license.txt in this distribution, or
14 * online at http://secondlife.com/developers/opensource/gplv2 16* online at http://secondlife.com/developers/opensource/gplv2
15 * 17*
16 * There are special exceptions to the terms and conditions of the GPL as 18* There are special exceptions to the terms and conditions of the GPL as
17 * it is applied to this Source Code. View the full text of the exception 19* it is applied to this Source Code. View the full text of the exception
18 * in the file doc/FLOSS-exception.txt in this software distribution, or 20* in the file doc/FLOSS-exception.txt in this software distribution, or
19 * online at http://secondlife.com/developers/opensource/flossexception 21* online at http://secondlife.com/developers/opensource/flossexception
20 * 22*
21 * By copying, modifying or distributing this software, you acknowledge 23* By copying, modifying or distributing this software, you acknowledge
22 * that you have read and understood your obligations described above, 24* that you have read and understood your obligations described above,
23 * and agree to abide by those obligations. 25* and agree to abide by those obligations.
24 * 26*
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29* COMPLETENESS OR PERFORMANCE.
30* $/LicenseInfo$
28*/ 31*/
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
31#include "lltut.h"
32 34
35#include "linden_common.h"
36#include "lltut.h"
33#include "llsd.h" 37#include "llsd.h"
34#include "llservicebuilder.h" 38#include "llservicebuilder.h"
35 39
diff --git a/linden/indra/test/llstreamtools_tut.cpp b/linden/indra/test/llstreamtools_tut.cpp
index aea2e4f..2bd0169 100644
--- a/linden/indra/test/llstreamtools_tut.cpp
+++ b/linden/indra/test/llstreamtools_tut.cpp
@@ -4,7 +4,9 @@
4 * @date February 2007 4 * @date February 2007
5 * @brief llstreamtools test cases. 5 * @brief llstreamtools test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,10 +28,12 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include <fstream> 35
36#include "linden_common.h"
33#include "llstreamtools.h" 37#include "llstreamtools.h"
34#include "lltut.h" 38#include "lltut.h"
35 39
diff --git a/linden/indra/test/llstring_tut.cpp b/linden/indra/test/llstring_tut.cpp
index f49fb1c..2346789 100644
--- a/linden/indra/test/llstring_tut.cpp
+++ b/linden/indra/test/llstring_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2006-12-24 4 * @date 2006-12-24
5 * @brief Test cases of llstring.cpp 5 * @brief Test cases of llstring.cpp
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/lltemplatemessagebuilder_tut.cpp b/linden/indra/test/lltemplatemessagebuilder_tut.cpp
index 7aff445..31e9c71 100644
--- a/linden/indra/test/lltemplatemessagebuilder_tut.cpp
+++ b/linden/indra/test/lltemplatemessagebuilder_tut.cpp
@@ -3,7 +3,9 @@
3 * @date 2007-04 3 * @date 2007-04
4 * @brief Tests for building messages. 4 * @brief Tests for building messages.
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
diff --git a/linden/indra/test/lltiming_tut.cpp b/linden/indra/test/lltiming_tut.cpp
index c2c9fd8..bbecb7a 100644
--- a/linden/indra/test/lltiming_tut.cpp
+++ b/linden/indra/test/lltiming_tut.cpp
@@ -3,6 +3,8 @@
3 * @date 2006-07-23 3 * @date 2006-07-23
4 * @brief Tests the timers. 4 * @brief Tests the timers.
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include "linden_common.h" 33#include "linden_common.h"
diff --git a/linden/indra/test/lltut.cpp b/linden/indra/test/lltut.cpp
index c872077..03a70c7 100644
--- a/linden/indra/test/lltut.cpp
+++ b/linden/indra/test/lltut.cpp
@@ -4,6 +4,8 @@
4 * @date 5/16/06 4 * @date 5/16/06
5 * @brief MacTester 5 * @brief MacTester
6 * 6 *
7 * $LicenseInfo:firstyear=2006&license=viewergpl$
8 *
7 * Copyright (c) 2006-2007, Linden Research, Inc. 9 * Copyright (c) 2006-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include "linden_common.h" 34#include "linden_common.h"
diff --git a/linden/indra/test/lltut.h b/linden/indra/test/lltut.h
index f40555e..1827624 100644
--- a/linden/indra/test/lltut.h
+++ b/linden/indra/test/lltut.h
@@ -4,6 +4,8 @@
4 * @date 2005-09-26 4 * @date 2005-09-26
5 * @brief helper tut methods 5 * @brief helper tut methods
6 * 6 *
7 * $LicenseInfo:firstyear=2005&license=viewergpl$
8 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 9 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#ifndef LL_LLTUT_H 34#ifndef LL_LLTUT_H
diff --git a/linden/indra/test/lluri_tut.cpp b/linden/indra/test/lluri_tut.cpp
index b49f6dd..8ff1921 100644
--- a/linden/indra/test/lluri_tut.cpp
+++ b/linden/indra/test/lluri_tut.cpp
@@ -3,6 +3,8 @@
3 * @brief LLURI unit tests 3 * @brief LLURI unit tests
4 * @date September 2006 4 * @date September 2006
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,11 +27,11 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include "linden_common.h"
31#include "lltut.h" 34#include "lltut.h"
32
33#include "llsd.h" 35#include "llsd.h"
34#include "lluri.h" 36#include "lluri.h"
35#include "llhost.h" 37#include "llhost.h"
diff --git a/linden/indra/test/lluserrelations_tut.cpp b/linden/indra/test/lluserrelations_tut.cpp
index f9b4615..4d07ba9 100644
--- a/linden/indra/test/lluserrelations_tut.cpp
+++ b/linden/indra/test/lluserrelations_tut.cpp
@@ -4,6 +4,8 @@
4 * @date 2006-10-12 4 * @date 2006-10-12
5 * @brief Unit tests for the LLRelationship class. 5 * @brief Unit tests for the LLRelationship class.
6 * 6 *
7 * $LicenseInfo:firstyear=2006&license=viewergpl$
8 *
7 * Copyright (c) 2006-2007, Linden Research, Inc. 9 * Copyright (c) 2006-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/lluuidhashmap_tut.cpp b/linden/indra/test/lluuidhashmap_tut.cpp
index a787326..129d17a 100644
--- a/linden/indra/test/lluuidhashmap_tut.cpp
+++ b/linden/indra/test/lluuidhashmap_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief Test cases for LLUUIDHashMap 5 * @brief Test cases for LLUUIDHashMap
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/llxfer_tut.cpp b/linden/indra/test/llxfer_tut.cpp
index c4665c9..0b1b8a6 100644
--- a/linden/indra/test/llxfer_tut.cpp
+++ b/linden/indra/test/llxfer_tut.cpp
@@ -3,7 +3,9 @@
3 * @author Moss 3 * @author Moss
4 * @date 2007-04-17 4 * @date 2007-04-17
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include "linden_common.h" 33#include "linden_common.h"
diff --git a/linden/indra/test/llxorcipher_tut.cpp b/linden/indra/test/llxorcipher_tut.cpp
index 07b33b6..a2a9b51 100644
--- a/linden/indra/test/llxorcipher_tut.cpp
+++ b/linden/indra/test/llxorcipher_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief llxorcipher, llnullcipher test cases. 5 * @brief llxorcipher, llnullcipher test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,9 +28,10 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include "linden_common.h"
32#include "lltut.h" 35#include "lltut.h"
33#include "llxorcipher.h" 36#include "llxorcipher.h"
34#include "llnullcipher.h" 37#include "llnullcipher.h"
diff --git a/linden/indra/test/m3math_tut.cpp b/linden/indra/test/m3math_tut.cpp
index b693193..be2b474 100644
--- a/linden/indra/test/m3math_tut.cpp
+++ b/linden/indra/test/m3math_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief Test cases of m3math.h 5 * @brief Test cases of m3math.h
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
diff --git a/linden/indra/test/math.cpp b/linden/indra/test/math.cpp
index 3f5a15c..5256e40 100644
--- a/linden/indra/test/math.cpp
+++ b/linden/indra/test/math.cpp
@@ -4,6 +4,8 @@
4 * @date 2005-09-26 4 * @date 2005-09-26
5 * @brief Tests for the llmath library. 5 * @brief Tests for the llmath library.
6 * 6 *
7 * $LicenseInfo:firstyear=2005&license=viewergpl$
8 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 9 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include "linden_common.h" 34#include "linden_common.h"
diff --git a/linden/indra/test/message_tut.cpp b/linden/indra/test/message_tut.cpp
index 2a7bf45..5d9f6ee 100644
--- a/linden/indra/test/message_tut.cpp
+++ b/linden/indra/test/message_tut.cpp
@@ -3,7 +3,9 @@
3 * @date 2007-04 3 * @date 2007-04
4 * @brief LLDataPacker test cases. 4 * @brief LLDataPacker test cases.
5 * 5 *
6 * Copyright (c) 2007-2007, Linden Research, Inc. 6 * $LicenseInfo:firstyear=2007&license=viewergpl$
7 *
8 * Copyright (c) 2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
diff --git a/linden/indra/test/reflection_tut.cpp b/linden/indra/test/reflection_tut.cpp
index 7230c60..d3d5606 100644
--- a/linden/indra/test/reflection_tut.cpp
+++ b/linden/indra/test/reflection_tut.cpp
@@ -3,6 +3,8 @@
3 * @date May 2006 3 * @date May 2006
4 * @brief Reflection unit tests. 4 * @brief Reflection unit tests.
5 * 5 *
6 * $LicenseInfo:firstyear=2006&license=viewergpl$
7 *
6 * Copyright (c) 2006-2007, Linden Research, Inc. 8 * Copyright (c) 2006-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,10 +27,12 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30#include <tut/tut.h> 33#include <tut/tut.h>
31 34
35#include "linden_common.h"
32#include "lltut.h" 36#include "lltut.h"
33#include "reflective.h" 37#include "reflective.h"
34#include "metaclasst.h" 38#include "metaclasst.h"
diff --git a/linden/indra/test/test.cpp b/linden/indra/test/test.cpp
index 1c03768..fc8f8d9 100644
--- a/linden/indra/test/test.cpp
+++ b/linden/indra/test/test.cpp
@@ -4,6 +4,8 @@
4 * @date 2005-09-26 4 * @date 2005-09-26
5 * @brief Entry point for the test app. 5 * @brief Entry point for the test app.
6 * 6 *
7 * $LicenseInfo:firstyear=2005&license=viewergpl$
8 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 9 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
@@ -26,6 +28,7 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31/** 34/**
diff --git a/linden/indra/test/test.vcproj b/linden/indra/test/test.vcproj
index 1a55b8c..7e84533 100644
--- a/linden/indra/test/test.vcproj
+++ b/linden/indra/test/test.vcproj
@@ -35,7 +35,7 @@
35 <Tool 35 <Tool
36 Name="VCLinkerTool" 36 Name="VCLinkerTool"
37 AdditionalOptions="/FORCE:MULTIPLE" 37 AdditionalOptions="/FORCE:MULTIPLE"
38 AdditionalDependencies="advapi32.lib apr-1.lib aprutil-1.lib comdlg32.lib dinput8.lib dsound.lib dxerr8.lib dxguid.lib freetype.lib gdi32.lib glu32.lib jpeglib_6b.lib kernel32.lib libboost_regex-vc71-mt-s.lib libcurl.lib libeay32.lib libexpatMT.lib llcommon.lib llprimitive.lib llvfs.lib llxml.lib lscript_library.lib mswsock.lib netapi32.lib odbc32.lib odbccp32.lib ole32.lib oleaut32.lib opengl32.lib shell32.lib ssleay32.lib user32.lib Vfw32.lib winmm.lib winspool.lib ws2_32.lib xmlrpcepi.lib zlib.lib" 38 AdditionalDependencies="advapi32.lib apr-1.lib aprutil-1.lib comdlg32.lib dinput8.lib dsound.lib dxerr8.lib dxguid.lib freetype.lib gdi32.lib glu32.lib jpeglib_6b.lib kernel32.lib libboost_regex-vc71-mt-s.lib libcurl.lib libeay32.lib libexpatMT.lib llcommon.lib llprimitive.lib llvfs.lib llxml.lib lscript_library.lib mswsock.lib netapi32.lib odbc32.lib odbccp32.lib ole32.lib oleaut32.lib opengl32.lib psapi.lib shell32.lib ssleay32.lib user32.lib Vfw32.lib winmm.lib winspool.lib ws2_32.lib xmlrpcepi.lib zlib.lib"
39 OutputFile="$(OutDir)/test.exe" 39 OutputFile="$(OutDir)/test.exe"
40 LinkIncremental="2" 40 LinkIncremental="2"
41 AdditionalLibraryDirectories="&quot;../lib_$(ConfigurationName)/i686-win32&quot;;&quot;../../libraries/i686-win32/lib_debug&quot;" 41 AdditionalLibraryDirectories="&quot;../lib_$(ConfigurationName)/i686-win32&quot;;&quot;../../libraries/i686-win32/lib_debug&quot;"
@@ -90,7 +90,7 @@
90 <Tool 90 <Tool
91 Name="VCLinkerTool" 91 Name="VCLinkerTool"
92 AdditionalOptions="/FORCE:MULTIPLE" 92 AdditionalOptions="/FORCE:MULTIPLE"
93 AdditionalDependencies="advapi32.lib apr-1.lib aprutil-1.lib comdlg32.lib dinput8.lib dsound.lib dxerr8.lib dxguid.lib freetype.lib gdi32.lib glu32.lib jpeglib_6b.lib kernel32.lib libboost_regex-vc71-mt-s.lib libcurl.lib libeay32.lib libexpatMT.lib llcommon.lib llprimitive.lib llvfs.lib llxml.lib lscript_library.lib mswsock.lib netapi32.lib odbc32.lib odbccp32.lib ole32.lib oleaut32.lib opengl32.lib shell32.lib ssleay32.lib user32.lib Vfw32.lib winmm.lib winspool.lib ws2_32.lib xmlrpcepi.lib zlib.lib" 93 AdditionalDependencies="advapi32.lib apr-1.lib aprutil-1.lib comdlg32.lib dinput8.lib dsound.lib dxerr8.lib dxguid.lib freetype.lib gdi32.lib glu32.lib jpeglib_6b.lib kernel32.lib libboost_regex-vc71-mt-s.lib libcurl.lib libeay32.lib libexpatMT.lib llcommon.lib llprimitive.lib llvfs.lib llxml.lib lscript_library.lib mswsock.lib netapi32.lib odbc32.lib odbccp32.lib ole32.lib oleaut32.lib opengl32.lib psapi.lib shell32.lib ssleay32.lib user32.lib Vfw32.lib winmm.lib winspool.lib ws2_32.lib xmlrpcepi.lib zlib.lib"
94 OutputFile="$(OutDir)/test.exe" 94 OutputFile="$(OutDir)/test.exe"
95 LinkIncremental="2" 95 LinkIncremental="2"
96 AdditionalLibraryDirectories="&quot;../lib_$(ConfigurationName)/i686-win32&quot;;&quot;../../libraries/i686-win32/lib_release&quot;" 96 AdditionalLibraryDirectories="&quot;../lib_$(ConfigurationName)/i686-win32&quot;;&quot;../../libraries/i686-win32/lib_release&quot;"
@@ -145,7 +145,7 @@
145 Name="VCCustomBuildTool"/> 145 Name="VCCustomBuildTool"/>
146 <Tool 146 <Tool
147 Name="VCLinkerTool" 147 Name="VCLinkerTool"
148 AdditionalDependencies="advapi32.lib apr-1.lib aprutil-1.lib comdlg32.lib gdi32.lib jpeglib_6b.lib kernel32.lib libboost_regex-vc71-mt-s.lib libcurl.lib libeay32.lib libexpatMT.lib mswsock.lib netapi32.lib odbc32.lib odbccp32.lib ole32.lib oleaut32.lib shell32.lib ssleay32.lib user32.lib winmm.lib winspool.lib ws2_32.lib xmlrpcepi.lib zlib.lib" 148 AdditionalDependencies="advapi32.lib apr-1.lib aprutil-1.lib comdlg32.lib gdi32.lib jpeglib_6b.lib kernel32.lib libboost_regex-vc71-mt-s.lib libcurl.lib libeay32.lib libexpatMT.lib mswsock.lib netapi32.lib odbc32.lib odbccp32.lib ole32.lib oleaut32.lib psapi.lib shell32.lib ssleay32.lib user32.lib winmm.lib winspool.lib ws2_32.lib xmlrpcepi.lib zlib.lib"
149 OutputFile="$(OutDir)/test.exe" 149 OutputFile="$(OutDir)/test.exe"
150 LinkIncremental="2" 150 LinkIncremental="2"
151 AdditionalLibraryDirectories="&quot;../lib_$(ConfigurationName)/i686-win32&quot;;&quot;../../libraries/i686-win32/lib_release&quot;" 151 AdditionalLibraryDirectories="&quot;../lib_$(ConfigurationName)/i686-win32&quot;;&quot;../../libraries/i686-win32/lib_release&quot;"
diff --git a/linden/indra/test/test_llmanifest.py b/linden/indra/test/test_llmanifest.py
index 797d5ac..dfe79e2 100644
--- a/linden/indra/test/test_llmanifest.py
+++ b/linden/indra/test/test_llmanifest.py
@@ -1,30 +1,35 @@
1#!/usr/bin/python 1#!/usr/bin/python
2# @file test_llmanifest.py 2"""
3# @author Ryan Williams 3@file test_llmanifest.py
4# @brief Test cases for LLManifest library. 4@author Ryan Williams
5# 5@brief Test cases for LLManifest library.
6# Copyright (c) 2006-2007, Linden Research, Inc. 6
7# 7$LicenseInfo:firstyear=2006&license=viewergpl$
8# Second Life Viewer Source Code 8
9# The source code in this file ("Source Code") is provided by Linden Lab 9Copyright (c) 2006-2007, Linden Research, Inc.
10# to you under the terms of the GNU General Public License, version 2.0 10
11# ("GPL"), unless you have obtained a separate licensing agreement 11Second Life Viewer Source Code
12# ("Other License"), formally executed by you and Linden Lab. Terms of 12The source code in this file ("Source Code") is provided by Linden Lab
13# the GPL can be found in doc/GPL-license.txt in this distribution, or 13to you under the terms of the GNU General Public License, version 2.0
14# online at http://secondlife.com/developers/opensource/gplv2 14("GPL"), unless you have obtained a separate licensing agreement
15# 15("Other License"), formally executed by you and Linden Lab. Terms of
16# There are special exceptions to the terms and conditions of the GPL as 16the GPL can be found in doc/GPL-license.txt in this distribution, or
17# it is applied to this Source Code. View the full text of the exception 17online at http://secondlife.com/developers/opensource/gplv2
18# in the file doc/FLOSS-exception.txt in this software distribution, or 18
19# online at http://secondlife.com/developers/opensource/flossexception 19There are special exceptions to the terms and conditions of the GPL as
20# 20it is applied to this Source Code. View the full text of the exception
21# By copying, modifying or distributing this software, you acknowledge 21in the file doc/FLOSS-exception.txt in this software distribution, or
22# that you have read and understood your obligations described above, 22online at http://secondlife.com/developers/opensource/flossexception
23# and agree to abide by those obligations. 23
24# 24By copying, modifying or distributing this software, you acknowledge
25# ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 25that you have read and understood your obligations described above,
26# WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 26and agree to abide by those obligations.
27# COMPLETENESS OR PERFORMANCE. 27
28ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
29WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
30COMPLETENESS OR PERFORMANCE.
31$/LicenseInfo$
32"""
28 33
29from indra.util import llmanifest 34from indra.util import llmanifest
30import os.path 35import os.path
diff --git a/linden/indra/test/v2math_tut.cpp b/linden/indra/test/v2math_tut.cpp
index 0765989..cb9da6e 100644
--- a/linden/indra/test/v2math_tut.cpp
+++ b/linden/indra/test/v2math_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief v2math test cases. 5 * @brief v2math test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,11 +28,13 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "lltut.h" 35
33#include "linden_common.h" 36#include "linden_common.h"
37#include "lltut.h"
34#include "v2math.h" 38#include "v2math.h"
35 39
36 40
@@ -261,9 +265,6 @@ namespace tut
261 template<> template<> 265 template<> template<>
262 void v2math_object::test<13>() 266 void v2math_object::test<13>()
263 { 267 {
264#if (LL_RELEASE && LL_LINUX)
265 skip_fail("Doesn't work under Linux -- FIX ME!");
266#endif
267 F32 x1 = 1.f, y1 = 2.f,x2 = 2.332f, y2 = -1.23f; 268 F32 x1 = 1.f, y1 = 2.f,x2 = 2.332f, y2 = -1.23f;
268 F32 val1, val2; 269 F32 val1, val2;
269 LLVector2 vec2(x1, y1), vec3(x2, y2); 270 LLVector2 vec2(x1, y1), vec3(x2, y2);
@@ -292,7 +293,7 @@ namespace tut
292 vec2 -=vec3; 293 vec2 -=vec3;
293 val1 = x1-x2; 294 val1 = x1-x2;
294 val2 = y1-y2; 295 val2 = y1-y2;
295 ensure("4:operator-= failed",(val1 == vec2.mV[VX]) && (val2 == vec2.mV[VY])); 296 ensure("4:operator-= failed", is_approx_equal(val1, vec2.mV[VX]) && is_approx_equal(val2, vec2.mV[VY]));
296 } 297 }
297 298
298 template<> template<> 299 template<> template<>
@@ -431,10 +432,6 @@ namespace tut
431 template<> template<> 432 template<> template<>
432 void v2math_object::test<23>() 433 void v2math_object::test<23>()
433 { 434 {
434#if (LL_RELEASE && LL_LINUX)
435 skip_fail("Doesn't work under Linux -- FIX ME!");
436#endif
437
438 F32 x1 =1.f, y1 = 2.f; 435 F32 x1 =1.f, y1 = 2.f;
439 F32 val1, val2; 436 F32 val1, val2;
440 LLVector2 vec2(x1, y1); 437 LLVector2 vec2(x1, y1);
@@ -446,7 +443,7 @@ namespace tut
446 val1 = x1 * oomag; 443 val1 = x1 * oomag;
447 val2 = y1 * oomag; 444 val2 = y1 * oomag;
448 445
449 ensure("normVec failed", val1 == vec2.mV[VX] && val2 == vec2.mV[VY] && vecMag == mag); 446 ensure("normVec failed", is_approx_equal(val1, vec2.mV[VX]) && is_approx_equal(val2, vec2.mV[VY]) && is_approx_equal(vecMag, mag));
450 447
451 x1 =.00000001f, y1 = 0.f; 448 x1 =.00000001f, y1 = 0.f;
452 449
diff --git a/linden/indra/test/v3color_tut.cpp b/linden/indra/test/v3color_tut.cpp
index 411d196..6f00d42 100644
--- a/linden/indra/test/v3color_tut.cpp
+++ b/linden/indra/test/v3color_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief v3color test cases. 5 * @brief v3color test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,11 +28,12 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "lltut.h"
33#include "linden_common.h" 35#include "linden_common.h"
36#include "lltut.h"
34#include "v3color.h" 37#include "v3color.h"
35 38
36 39
@@ -101,9 +104,6 @@ namespace tut
101 template<> template<> 104 template<> template<>
102 void v3color_object::test<5>() 105 void v3color_object::test<5>()
103 { 106 {
104#if (LL_RELEASE && LL_LINUX)
105 skip_fail("Doesn't work under Linux -- FIX ME!");
106#endif
107 F32 r = 2.3436212f, g = 1231.f, b = 4.7849321232f; 107 F32 r = 2.3436212f, g = 1231.f, b = 4.7849321232f;
108 F32 val1, val2,val3; 108 F32 val1, val2,val3;
109 LLColor3 llcolor3(r,g,b); 109 LLColor3 llcolor3(r,g,b);
@@ -113,7 +113,7 @@ namespace tut
113 val1 = r * oomag; 113 val1 = r * oomag;
114 val2 = g * oomag; 114 val2 = g * oomag;
115 val3 = b * oomag; 115 val3 = b * oomag;
116 ensure("1:normVec failed ", (val1 == llcolor3.mV[0] && val2 == llcolor3.mV[1] && val3 == llcolor3.mV[2] && vecMag == mag)); 116 ensure("1:normVec failed ", (is_approx_equal(val1, llcolor3.mV[0]) && is_approx_equal(val2, llcolor3.mV[1]) && is_approx_equal(val3, llcolor3.mV[2]) && is_approx_equal(vecMag, mag)));
117 r = .000000000f, g = 0.f, b = 0.0f; 117 r = .000000000f, g = 0.f, b = 0.0f;
118 llcolor3.setVec(r,g,b); 118 llcolor3.setVec(r,g,b);
119 vecMag = llcolor3.normVec(); 119 vecMag = llcolor3.normVec();
diff --git a/linden/indra/test/v3dmath_tut.cpp b/linden/indra/test/v3dmath_tut.cpp
index 2f5ea8e..1f6dc14 100644
--- a/linden/indra/test/v3dmath_tut.cpp
+++ b/linden/indra/test/v3dmath_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief v3dmath test cases. 5 * @brief v3dmath test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,9 +28,11 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
35#include "linden_common.h"
32#include "lltut.h" 36#include "lltut.h"
33#include "llquaternion.h" 37#include "llquaternion.h"
34#include "m3math.h" 38#include "m3math.h"
@@ -273,9 +277,6 @@ namespace tut
273 template<> template<> 277 template<> template<>
274 void v3dmath_object::test<12>() 278 void v3dmath_object::test<12>()
275 { 279 {
276#if (LL_RELEASE && LL_LINUX)
277 skip_fail("Doesn't work under Linux -- FIX ME!");
278#endif
279 F64 x1 = 1., y1 = 2., z1 = -1.1; 280 F64 x1 = 1., y1 = 2., z1 = -1.1;
280 F64 x2 = 1.2, y2 = 2.5, z2 = 1.; 281 F64 x2 = 1.2, y2 = 2.5, z2 = 1.;
281 F64 val1, val2, val3; 282 F64 val1, val2, val3;
@@ -286,7 +287,10 @@ namespace tut
286 val3 = x1*y2-x2*y1; 287 val3 = x1*y2-x2*y1;
287 ensure("1:operator% failed",(val1 == vec3Db.mdV[VX]) && (val2 == vec3Db.mdV[VY]) && (val3 == vec3Db.mdV[VZ])); 288 ensure("1:operator% failed",(val1 == vec3Db.mdV[VX]) && (val2 == vec3Db.mdV[VY]) && (val3 == vec3Db.mdV[VZ]));
288 vec3D %= vec3Da; 289 vec3D %= vec3Da;
289 ensure_equals("2:operator%= failed",vec3D,vec3Db); 290 ensure("2:operator%= failed",
291 is_approx_equal(vec3D.mdV[VX],vec3Db.mdV[VX]) &&
292 is_approx_equal(vec3D.mdV[VY],vec3Db.mdV[VY]) &&
293 is_approx_equal(vec3D.mdV[VZ],vec3Db.mdV[VZ]) );
290 } 294 }
291 295
292 template<> template<> 296 template<> template<>
diff --git a/linden/indra/test/v3math_tut.cpp b/linden/indra/test/v3math_tut.cpp
index 4f4e7e0..40f649d 100644
--- a/linden/indra/test/v3math_tut.cpp
+++ b/linden/indra/test/v3math_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-02 4 * @date 2007-02
5 * @brief v3math test cases. 5 * @brief v3math test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,9 +28,11 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
35#include "linden_common.h"
32#include "lltut.h" 36#include "lltut.h"
33#include "llquaternion.h" 37#include "llquaternion.h"
34#include "linden_common.h" 38#include "linden_common.h"
@@ -390,9 +394,6 @@ namespace tut
390 template<> template<> 394 template<> template<>
391 void v3math_object::test<22>() 395 void v3math_object::test<22>()
392 { 396 {
393#if (LL_RELEASE && LL_LINUX)
394 skip_fail("Doesn't work under Linux -- FIX ME!");
395#endif
396 F32 x1 =1.f, y1 = 2.f,z1 = 1.2f, x2 = -2.3f, y2 = 1.11f, z2 = 1234.234f; 397 F32 x1 =1.f, y1 = 2.f,z1 = 1.2f, x2 = -2.3f, y2 = 1.11f, z2 = 1234.234f;
397 F32 val1,val2,val3; 398 F32 val1,val2,val3;
398 LLVector3 vec3(x1,y1,z1), vec3a(x2,y2,z2); 399 LLVector3 vec3(x1,y1,z1), vec3a(x2,y2,z2);
@@ -407,7 +408,7 @@ namespace tut
407 val1 = x1*mulVal; 408 val1 = x1*mulVal;
408 val2 = y1*mulVal; 409 val2 = y1*mulVal;
409 val3 = z1*mulVal; 410 val3 = z1*mulVal;
410 ensure("2:operator*= failed ", (val1 == vec3.mV[VX]) && (val2 == vec3.mV[VY]) && (val3 == vec3.mV[VZ])); 411 ensure("2:operator*= failed ", is_approx_equal(val1, vec3.mV[VX]) && is_approx_equal(val2, vec3.mV[VY]) && is_approx_equal(val3, vec3.mV[VZ]));
411 } 412 }
412 413
413 template<> template<> 414 template<> template<>
@@ -527,15 +528,12 @@ namespace tut
527 template<> template<> 528 template<> template<>
528 void v3math_object::test<32>() 529 void v3math_object::test<32>()
529 { 530 {
530#if (LL_RELEASE && LL_LINUX)
531 skip_fail("Doesn't work under Linux -- FIX ME!");
532#endif
533 F32 x =12.3524f, y = -342.f,z = 4.126341f; 531 F32 x =12.3524f, y = -342.f,z = 4.126341f;
534 LLVector3 vec3(x,y,z); 532 LLVector3 vec3(x,y,z);
535 F32 mag = vec3.normVec(); 533 F32 mag = vec3.normVec();
536 mag = 1.f/ mag; 534 mag = 1.f/ mag;
537 F32 val1 = x* mag, val2 = y* mag, val3 = z* mag; 535 F32 val1 = x* mag, val2 = y* mag, val3 = z* mag;
538 ensure("1:normVec: Fail ", (val1 == vec3.mV[VX]) && (val2 == vec3.mV[VY])&& (val3 == vec3.mV[VZ])); 536 ensure("1:normVec: Fail ", is_approx_equal(val1, vec3.mV[VX]) && is_approx_equal(val2, vec3.mV[VY]) && is_approx_equal(val3, vec3.mV[VZ]));
539 x = 0.000000001f, y = 0.f, z = 0.f; 537 x = 0.000000001f, y = 0.f, z = 0.f;
540 vec3.clearVec(); 538 vec3.clearVec();
541 vec3.setVec(x,y,z); 539 vec3.setVec(x,y,z);
@@ -556,9 +554,6 @@ namespace tut
556 template<> template<> 554 template<> template<>
557 void v3math_object::test<34>() 555 void v3math_object::test<34>()
558 { 556 {
559#if (LL_RELEASE && LL_LINUX)
560 skip_fail("Doesn't work under Linux -- FIX ME!");
561#endif
562 F32 x = 10.f, y = 20.f, z = -15.f; 557 F32 x = 10.f, y = 20.f, z = -15.f;
563 F32 x1, y1, z1; 558 F32 x1, y1, z1;
564 F32 lowerxy = 0.f, upperxy = 1.0f, lowerz = -1.0f, upperz = 1.f; 559 F32 lowerxy = 0.f, upperxy = 1.0f, lowerz = -1.0f, upperz = 1.f;
@@ -567,12 +562,12 @@ namespace tut
567 x1 = U16_to_F32(F32_to_U16(x, lowerxy, upperxy), lowerxy, upperxy); 562 x1 = U16_to_F32(F32_to_U16(x, lowerxy, upperxy), lowerxy, upperxy);
568 y1 = U16_to_F32(F32_to_U16(y, lowerxy, upperxy), lowerxy, upperxy); 563 y1 = U16_to_F32(F32_to_U16(y, lowerxy, upperxy), lowerxy, upperxy);
569 z1 = U16_to_F32(F32_to_U16(z, lowerz, upperz), lowerz, upperz); 564 z1 = U16_to_F32(F32_to_U16(z, lowerz, upperz), lowerz, upperz);
570 ensure("1:quantize16: Fail ", (x1 == vec3.mV[VX]) && (y1 == vec3.mV[VY])&& (z1 == vec3.mV[VZ])); 565 ensure("1:quantize16: Fail ", is_approx_equal(x1, vec3.mV[VX]) && is_approx_equal(y1, vec3.mV[VY]) && is_approx_equal(z1, vec3.mV[VZ]));
571 LLVector3 vec3a(x,y,z); 566 LLVector3 vec3a(x,y,z);
572 vec3a.quantize8(lowerxy,upperxy,lowerz,upperz); 567 vec3a.quantize8(lowerxy,upperxy,lowerz,upperz);
573 x1 = U8_to_F32(F32_to_U8(x, lowerxy, upperxy), lowerxy, upperxy); 568 x1 = U8_to_F32(F32_to_U8(x, lowerxy, upperxy), lowerxy, upperxy);
574 y1 = U8_to_F32(F32_to_U8(y, lowerxy, upperxy), lowerxy, upperxy); 569 y1 = U8_to_F32(F32_to_U8(y, lowerxy, upperxy), lowerxy, upperxy);
575 z1 = U8_to_F32(F32_to_U8(z, lowerz, upperz), lowerz, upperz); 570 z1 = U8_to_F32(F32_to_U8(z, lowerz, upperz), lowerz, upperz);
576 ensure("2:quantize8: Fail ", (x1 == vec3a.mV[VX]) && (y1 == vec3a.mV[VY])&& (z1 == vec3a.mV[VZ])); 571 ensure("2:quantize8: Fail ", is_approx_equal(x1, vec3a.mV[VX]) && is_approx_equal(y1, vec3a.mV[VY]) && is_approx_equal(z1, vec3a.mV[VZ]));
577 } 572 }
578} 573}
diff --git a/linden/indra/test/v4color_tut.cpp b/linden/indra/test/v4color_tut.cpp
index 2d1cd7e..be0854b 100644
--- a/linden/indra/test/v4color_tut.cpp
+++ b/linden/indra/test/v4color_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief v4color test cases. 5 * @brief v4color test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,12 +28,13 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31 34
32#include <tut/tut.h> 35#include <tut/tut.h>
33#include "lltut.h"
34#include "linden_common.h" 36#include "linden_common.h"
37#include "lltut.h"
35#include "v4coloru.h" 38#include "v4coloru.h"
36#include "llsd.h" 39#include "llsd.h"
37#include "v3color.h" 40#include "v3color.h"
@@ -163,16 +166,13 @@ namespace tut
163 template<> template<> 166 template<> template<>
164 void v4color_object::test<7>() 167 void v4color_object::test<7>()
165 { 168 {
166#if (LL_RELEASE && LL_LINUX)
167 skip_fail("Doesn't work under Linux -- FIX ME!");
168#endif
169 F32 r = 0x20, g = 0xFFFF, b = 0xFF; 169 F32 r = 0x20, g = 0xFFFF, b = 0xFF;
170 LLColor4 llcolor4(r,g,b); 170 LLColor4 llcolor4(r,g,b);
171 F32 vecMag = llcolor4.normVec(); 171 F32 vecMag = llcolor4.normVec();
172 F32 mag = fsqrtf(r*r + g*g + b*b); 172 F32 mag = fsqrtf(r*r + g*g + b*b);
173 F32 oomag = 1.f / mag; 173 F32 oomag = 1.f / mag;
174 F32 val1 = r * oomag, val2 = g * oomag, val3 = b * oomag; 174 F32 val1 = r * oomag, val2 = g * oomag, val3 = b * oomag;
175 ensure("1:normVec failed ", (val1 == llcolor4.mV[0] && val2 == llcolor4.mV[1] && val3 == llcolor4.mV[2] && vecMag == mag)); 175 ensure("1:normVec failed ", (is_approx_equal(val1, llcolor4.mV[0]) && is_approx_equal(val2, llcolor4.mV[1]) && is_approx_equal(val3, llcolor4.mV[2]) && is_approx_equal(vecMag, mag)));
176 } 176 }
177 177
178 template<> template<> 178 template<> template<>
diff --git a/linden/indra/test/v4coloru_tut.cpp b/linden/indra/test/v4coloru_tut.cpp
index f671cf1..0ec117c 100644
--- a/linden/indra/test/v4coloru_tut.cpp
+++ b/linden/indra/test/v4coloru_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief v4coloru test cases. 5 * @brief v4coloru test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,12 +28,13 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31 34
32#include <tut/tut.h> 35#include <tut/tut.h>
33#include "lltut.h"
34#include "linden_common.h" 36#include "linden_common.h"
37#include "lltut.h"
35#include "llsd.h" 38#include "llsd.h"
36#include "v4coloru.h" 39#include "v4coloru.h"
37 40
diff --git a/linden/indra/test/v4math_tut.cpp b/linden/indra/test/v4math_tut.cpp
index 055e825..fab6372 100644
--- a/linden/indra/test/v4math_tut.cpp
+++ b/linden/indra/test/v4math_tut.cpp
@@ -4,7 +4,9 @@
4 * @date 2007-03 4 * @date 2007-03
5 * @brief v4math test cases. 5 * @brief v4math test cases.
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,11 +28,12 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "lltut.h"
33#include "linden_common.h" 35#include "linden_common.h"
36#include "lltut.h"
34#include "llquaternion.h" 37#include "llquaternion.h"
35#include "llsd.h" 38#include "llsd.h"
36#include "m4math.h" 39#include "m4math.h"
diff --git a/linden/indra/test/xform_tut.cpp b/linden/indra/test/xform_tut.cpp
index b3bc347..bb96445 100644
--- a/linden/indra/test/xform_tut.cpp
+++ b/linden/indra/test/xform_tut.cpp
@@ -4,7 +4,9 @@
4 * @date March 2007 4 * @date March 2007
5 * @brief Test cases for LLXform 5 * @brief Test cases for LLXform
6 * 6 *
7 * Copyright (c) 2007-2007, Linden Research, Inc. 7 * $LicenseInfo:firstyear=2007&license=viewergpl$
8 *
9 * Copyright (c) 2007, Linden Research, Inc.
8 * 10 *
9 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -26,11 +28,12 @@
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 28 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 29 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE. 30 * COMPLETENESS OR PERFORMANCE.
31 * $/LicenseInfo$
29 */ 32 */
30 33
31#include <tut/tut.h> 34#include <tut/tut.h>
32#include "lltut.h"
33#include "linden_common.h" 35#include "linden_common.h"
36#include "lltut.h"
34#include "xform.h" 37#include "xform.h"
35 38
36namespace tut 39namespace tut