Commit Graph

131 Commits (8f892d0f36fda170a5cecf0aea89887d6d0e45ef)

Author SHA1 Message Date
Nat Goodspeed edb999ab03 Remove tab chars inherited with file... 2010-06-21 17:02:16 -04:00
Nat Goodspeed 477fb26c1e Centralize LD_LIBRARY_PATH logic with new SET_TEST_PATH macro.
Add ${SHARED_LIB_STAGING_DIR_RELEASE} to LD_LIBRARY_PATH for executing tests:
otherwise Debug-build tests can't find (e.g.) the aprutil DLL, for which we
don't build/package a debug variant.
Leverage discovery that a CMake macro can accept a target variable name
argument for LL_TEST_COMMAND macro.
2010-06-18 17:38:21 -04:00
Nat Goodspeed dcfc28890b Fix breaking indra/test/llpermissions_tut.cpp tests.
Certain tests of allowModifyBy(), allowCopyBy() and allowMoveBy() were
computing a bit-shifted S32 value and testing that the method return value
matched that specific bit. Whoever originally coded the test probably started
with allowModifyBy() == TRUE, but observed that it didn't work. Instead of
just testing for nonzero, in the spirit of BOOL, he then determined the
specific BOOL value (typedef for 'int') returned by each test so he could
still compare for equality. In other words, the tests were far too
knowledgeable about the method implementation. At some point these methods
were changed to return C++ standard 'bool' instead, so the internal
bit-masking operations got mapped to 'true' and 'false' anyway, making it
impossible for the original equality comparison to succeed. Fix tests
accordingly.
Use ensure_equals("msg", expr1, expr2) instead of ensure("msg", expr1 == expr2).
On failure, the former will report the actual mismatched values.
Remove other extraneous Microsoft-style "BOOL" usage (e.g. expr == TRUE).
2010-03-08 13:50:44 -05:00
Nat Goodspeed 429fa5a494 Skip fragile (local ISP dependent) llhttpclient integration test. 2010-02-03 15:50:57 -05:00
Nat Goodspeed 57b68d9bfe Resync indra/test's LD_LIBRARY_PATH with ADD_INTEGRATION_TEST 2009-12-03 12:00:20 -05:00
Nat Goodspeed 1b8b6830b7 Reconcile llsdutil_tut.cpp with Kent's LLSD API change 2009-12-03 11:58:38 -05:00
Nat Goodspeed 7b6ddb4106 DEV-43463: Keep LLEventPump's LLStandardSignal alive during post()
Replace LLEventPump's boost::scoped_ptr<LLStandardSignal> with
boost::shared_ptr. Take a local stack copy of that shared_ptr in post()
methods, and invoke the signal through that copy. This guards against scenario
in which LLEventPump gets destroyed during signal invocation. (See Jira for
details.) Re-enable Mani's test case that used to crash.
Introduce ll_template_cast<> to allow a template function to recognize a
parameter of a particular type.
Introduce LLListenerWrapper mechanism to support wrapper objects for
LLEventPump listeners. You instantiate an LLListenerWrapper subclass object
inline in the listen() call (typically with llwrap<>), passing it the real
listener, trusting it to forward the eventual call.
Introduce prototypical LLCoutListener and LLLogListener subclasses for
illustrative and diagnostic purposes. Test that LLLogListener doesn't block
recognizing LLEventTrackable base class bound into wrapped listener.
2009-11-30 12:57:45 -05:00
Steve Bennetts 65bf35cfed merge 2009-10-19 10:49:48 -07:00
Mark Palange (Mani) 3e10fa4d51 merge from latest svn/viewer-2-0 to hg/viewer-2-0 2009-10-16 16:42:45 -07:00
Adam Moss a0ee6fbbdd DEV-41408 convert lldependencies tut test to llcommon integration test. 2009-10-16 13:42:58 +00:00
Adam Moss 6c32554591 DEV-41405 convert llxfer test to a llmessage integration test. 2009-10-16 12:57:58 +00:00
Adam Moss b2641d8915 DEV-41404 convert monolithic tut llinventoryparcel test to llinventory integration test. 2009-10-16 12:45:19 +00:00
Adam Moss fc6c7e3933 DEV-41403 convert reflection tut test to llcommon integration test. 2009-10-16 11:37:17 +00:00
Adam Moss 95cf5766f9 DEV-41402 convert stringize tut test to llcommon integration test. 2009-10-16 11:32:46 +00:00
Adam Moss 56fed69c4a remove moved test from this CMakeLists. 2009-10-15 19:06:40 +00:00
Adam Moss 7c55efa4bc DEV-41363 convert legacy llhost tut test into a llmessage integration test. 2009-10-15 18:41:04 +00:00
Adam Moss 11501bb4b4 DEV-41355 convert llmime monolithic tut test to a llmessage unit test. 2009-10-15 18:16:51 +00:00
Adam Moss db6dff1d1f DEV-41354 convert llerror tut test into a llcommon integration test 2009-10-15 18:10:46 +00:00
Adam Moss 986bf99839 DEV-41352 convert lluri tut test to a llcommon integration test 2009-10-15 18:05:15 +00:00
Adam Moss f31397291b DEV-41345 turn llmodularmath_tut into a real llmath unit test. 2009-10-15 16:59:54 +00:00
Adam Moss c7df37b531 DEV-41344 convert monolithic tut lltreeiterators test to a llcommon integration test. 2009-10-15 16:49:08 +00:00
Adam Moss 226c08130d DEV-41343 lljoint unit test - resurrected - this was previously disabled (and old-style monolithic tut) 2009-10-15 16:43:12 +00:00
Adam Moss 423f5b0078 DEV-41341 tut lltiming test -> llframetimer integration test 2009-10-15 16:32:56 +00:00
Adam Moss 406927f629 Merge a big bunch of fixes from maint-viewer. Hooray.
svn merge -r136066:136073 svn+ssh://svn.lindenlab.com/svn/linden/branches/maint-viewer/maint-viewer-24-qa-9

DEV-8553 New Server Tools - Prep Land For Sale
DEV-32942 (QAR-1521) Bad border crossings or TP / Ruthing issues
DEV-32942 (QAR-1521) Bad border crossings or TP / Ruthing issues
DEV-33239 VWR-13816: Resizing the Search Window Causes the Results to Refresh back to First Page
DEV-27746 Running a dev build of Second Life will make console window show up on non-dev builds (Windows)
DEV-33209 Linux 1.24.0.120778 client fails to run
DEV-29123 SVC-3871: Crash of viewer when clicking on ghost objects at (0,0,0) on a sim
DEV-35433 Attempting to upload wrong file type crashes viewer
DEV-33499 viewer2009 is not using KDU
DEV-33912 Griefing viewer crashes others' viewers with malformed sound files
DEV-3784 VWR-138: Animation Priority not working correctly, Can't create new AOs
DEV-20678 VWR-9069: Region variable says 'Region Name' in AR if no object is selected
DEV-19934 Help->About Second Life doesn't differentiate between 32- and 64-bit Vista
DEV-6604 Restored folders have 'Purge Item' and 'Restore Item' options
DEV-12867 VWR-5717: Selected Text is not replaced by Input text when Japanese IME is on
DEV-11894 Notecards/Texture windows don't open completely when opened from inventory
DEV-10641 VWR-4955: Local Chat doesn't show end of last conversation
DEV-30039 VWR-12620: Viewer build fails on Linux when compiled with -O2 (--type=Release)
DEV-20944 VWR-9065: (intermittent) Right Click >profile on avatar does not display profile
DEV-24828 Menu accelerator prefixes shouldn't be hard-coded
DEV-34529 VWR-14267: Clicking send in an IM window does not add the sent text to the line editor history
DEV-34124 Invite to group, search by name will not show resident if their first name is two characters
DEV-20930 VWR-9248: On Mac: the "--url" option causes a command line parsing error
DEV-35306 Adult keyword filter triggers multiple warnings
DEV-35503 VWR-3595: "Second Life requires True Color (32-bit) to run in a window" message is incorrect
DEV-35656 VWR-12995: FTBFS: error: format '%-3d' expects type 'int', but argument 3 has type 'size_t'
DEV-30043 VWR-12533: Linux viewer build for OpenAL fails during packaging unless FMOD library is available
DEV-31898 VWR-13202: Right clicking mouse triggers arrow key control events
DEV-32610 Keyboard shortcuts on OSX viewer overridden by OSX
DEV-27067 Coverity Prevent: EVALUATION_ORDER defects
DEV-26188 VWR-2242: Specially formatted .BVH file can cause avatar distortion
DEV-25475 About Land dialog no longer shows Area: field
DEV-19897 OSX Viewer Installer (for an RC) opens with poor positioning
DEV-22837 Inventory> Search Recent Items highlighting incorrect characters
DEV-21709 VWR-9377: Mapping will default to leave exact sim name listing first. (Searching Gar forces Gar to come up and not Garden of Dreams)
DEV-23079 implement volume serial for linux client
DEV-13930 VWR-6432: Space Navigator operation with vehicles is broken
DEV-27666 VWR-10829: Linux Viewer: CLICK_ACTION_PAY shows CLICK_ACTION_PLAY icon
DEV-23670 Viewer crashes on startup if installed into a custom folder with Korean, Japanese or Chinese characters in path
DEV-19313 VWR-8454: PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS not highlighted in script editor
DEV-19918 VWR-8885: Move character/*.xml files to source bundle
DEV-25555 VWR-11172: A source coding mistake prevents number-pad keys from specifying Ctrl+digit shortcuts on Windows
DEV-8536 VWR-4057: Multi-line chat display bug - first character in line missing
DEV-29592 Mac LLFastTimer uses wall clock instead of Intel PMU
DEV-29644 VWR-12587: Cmake install target has a hard coded secondlife-bin reference remaining
DEV-25320 VWR-11128: Python not always detected by develop.py
DEV-30040 VWR-12617: Poor type name that violates Coding Standard breaks compatibility with system header files
DEV-30380 indra/newview/res-sdl/toolpay.BMP is modified during ./develop.py configure
DEV-31247 VWR-12763: non-portable printf specifier used with size_t causes FTBFS on 64bit (due to -Werror)
DEV-29565 VWR-12569: A comment in lluistring.h contains undefined UTF-8 code sequences
DEV-22100 VWR-9620: send_parcel_select_objects in newview/llfloaterland.cpp uses the wrong datatype for the ReturnType field causing a warning
DEV-31911 Selected objects / primitives should be greyed out when nothing is selected
DEV-3667 Windows: Accelerator keys should be "Ctrl+X" rather than "Ctrl-X"
DEV-27223 disable gstreamer on 64-bit linux
DEV-8172 We Need a Linden Sale Option to Sell Land to Anyone
DEV-25511 VWR-10311: Enable LipSync by default
DEV-20443 Revamp group creation confirmation dialog to be more communicative
DEV-20132 VWR-7800: Joystick / SpaceNavigator. Camera should remain in position when exiting flycam mode into avatar mode.
DEV-18420 VWR-8393: Have build scripts copy fmod from an external location
DEV-24841 VWR-10717: Right Space Navigator button should toggle fly in avatar movment, not jump/flyup.
DEV-28457 change auto-populate value in buy L$ window from 1000 to 2000
DEV-15545 VWR-3725: Please add resize option to the SEARCH window UI
2009-10-14 10:40:56 +00:00
Adam Moss 5438d5bec2 DEV-41080
remove weird double-printing of test results, make test-passing more *fun*!
2009-10-12 15:08:40 +00:00
Adam Moss 2a99e18ea1 DEV-41178 convert lldate legacy monolithic tut test into a llcommon integration test. 2009-10-12 14:56:03 +00:00
Adam Moss 2798d1bc67 DEV-41176 convert legacy inventory.cpp tut test into an llinventory integration test. 2009-10-12 14:32:16 +00:00
Adam Moss c3c03419fe DEV-41175 convert legacy common.cpp tut test into llcommon integration test. 2009-10-12 14:20:51 +00:00
Adam Moss b73e71ebdf DEV-41174 more automated testing love
* turn llnamevalue_tut into a llmessage unit test
* turn llsdserialize_tut into a llcommon integration test
* re-enable the (quite slow) llsdserialize test on win32 now that it doesn't have to run on every recompile
* re-enable all llmessage unit tests on linux viewer builds
2009-10-12 14:13:57 +00:00
Adam Moss 1ee1570288 DEV-41090 convert legacy llrand tut test into a llcommon integration test. 2009-10-08 13:52:53 +00:00
Adam Moss 6ee4a7f429 DEV-41089 convert legacy tut llrect test into a llmath integration test. 2009-10-08 13:46:20 +00:00
Adam Moss 5fe65644b5 DEV-41088 convert legacy 'math' test module into 'mathmisc' integration test. 2009-10-08 13:36:46 +00:00
Adam Moss ec08dec207 repair the legacy tut test manifest. 2009-10-08 12:53:59 +00:00
brad kittenbrink 50247533f9 Merged latest viewer/login-api with latest viewer/viewer-20 2009-10-07 17:51:28 -07:00
Mark Palange (Mani) 81a63ac088 merge with latest from lindenlab/svn-imports-viewer-20 2009-10-05 13:39:53 -07:00
James Cook ada0f4fa22 Merge inspectors UI project, gooey-4, into viewer-2 trunk. Added new tooltips to 3D avatars, 2D avatar names, and 3D objects. Refactors tooltips and text boxes, line editors, and text editors. Breaks LLExpandableTextBox, but a fix is coming.
Resolved conflicts in lltexteditor.cpp, llchatitemscontainerctrl.cpp, llchatmsgbox.cpp, llfloaterbuycurrency.cpp, llnearbychat.cpp, floater_buy_currency.xml, and ru/strings.xml

Merging revisions 134925-135157 of svn+ssh://svn.lindenlab.com/svn/linden/branches/gooey/gooey-4 into C:\source\viewer-2.0.0-3, respecting ancestry
2009-10-03 23:40:28 +00:00
brad kittenbrink bb1d4592bd Merged latest viewer/viewer-20 into login-api. 2009-09-18 15:22:25 -04:00
Steve Linden 48328db339 #ifdef'd out gmock and gtest for LL_WINDOWS. Does not appear to be needed and breaks the build. 2009-09-10 15:36:49 -07:00
Bryan O'Sullivan a997e131d4 Merge with SVN viewer-2.0.0-3 branch 2009-09-09 17:10:06 -07:00
Martin Reddy bbf497469c DEV-39537: Moved the toHTTPDateString tests into llhttpdate_tut.cpp,
as a more appropriate home. Also made use of the skip() method rather
than use printf() - thanks to tofu for the suggestion.
2009-09-09 23:58:26 +00:00
Bryan O'Sullivan 1018b36b87 Merge 2009-09-08 14:49:49 -07:00
Nat Goodspeed b9546a33e9 QAR-1619: Finish replacing RunBuildTest.cmake with run_build_test.py.
Because the details of RunBuildTest.cmake versus run_build_test.py had to be
changed in so many different places, introduce LL_TEST_COMMAND CMake macro (in
LLTestCommand.cmake) to encapsulate construction of the actual command line.
Use LL_TEST_COMMAND in LL_ADD_PROJECT_UNIT_TESTS, LL_ADD_INTEGRATION_TEST, the
big indra/test monolith and the various LslCompilerMacros.
Fix run_build_test.py to pass through the test executable's own options (e.g.
--touch, --output) without inspection. Defend it against the case when the
platform-specific library path environment variable doesn't yet exist. Make it
report errors only on nonzero test-program rc.
Remove RunBuildTest.cmake.
2009-09-08 12:03:32 -04:00
Martin Reddy b86d7cbc12 Fix deprecated conversion from string constant to ‘char*’ warnings
that occur under gcc 4.3 for DEV-39457. This fixes the indra/test
C++ unit tests under Linux.
2009-09-08 09:07:57 +00:00
Bryan O'Sullivan 30ff6cabd6 Merge with trunk 2009-08-31 13:47:47 -07:00
Nat Goodspeed 2965f5ff38 Add SHARED_LIB_STAGING_DIR to LD_LIBRARY_PATH for indra/test executable, as with LLAddBuildTest 2009-08-11 15:51:56 -04:00
brad kittenbrink a7efd0d8dd Merged in viewer-2.0.0-3 changes up through r129050. Boost got clobbered so I'll need to rebuild that, plus a couple other minor clenaups. 2009-07-30 19:39:08 -07:00
Mark Palange (Mani) fe339408ce DEV-35399 - Making the server build llcommon.dll compatible.
Fixing up string escaping on calls to RunBuildTest.cmake
Also added ilasm.bat to the FindMono.cmake search
2009-07-28 18:03:28 -07:00
Mark Palange (Mani) b029846e81 DEV-35399 - Making the server build llcommon.dll compatible.
Now using RunBuildTest.cmake to run tut and lscript_lsl tests, inorder to set path to llcommon.dll
Exported a few llcommon apis needed by server components/tests.
2009-07-28 13:20:23 -07:00
Mark Palange 0274c1f2b1 Merged work for DEV-2066 (and formerly QAR-1538) in Viewer 2.
merged all changes, post copy, from the following branches:
linden/brachnes/enable-o-v
user/cg/qar-1538
user/mani/viewer2-enable-o-v
2009-07-16 17:54:58 +00:00
Martin Reddy 28c9537398 DEV-35500: Write new llmath unit tests
- Added unit tests for LLRect and LLBBoxLocal in indra/test
- Moved newview/LLBBox to llmath, and added unit tests for it
- Removed methods in llbboxlocal.h and llbbox.h that were not
  actually implemented (declared in .h, but not defined in cpp)

Reviewed by babbage.
2009-07-15 16:02:31 +00:00