diff options
Diffstat (limited to 'indra/integration_tests/llimage_libtest')
| -rw-r--r-- | indra/integration_tests/llimage_libtest/CMakeLists.txt | 70 | ||||
| -rw-r--r-- | indra/integration_tests/llimage_libtest/llimage_libtest.cpp | 18 | 
2 files changed, 13 insertions, 75 deletions
diff --git a/indra/integration_tests/llimage_libtest/CMakeLists.txt b/indra/integration_tests/llimage_libtest/CMakeLists.txt index ee2890778b..e6ff142626 100644 --- a/indra/integration_tests/llimage_libtest/CMakeLists.txt +++ b/indra/integration_tests/llimage_libtest/CMakeLists.txt @@ -1,6 +1,7 @@  # -*- cmake -*-  # Integration tests of the llimage library (JPEG2000, PNG, jpeg, etc... images reading and writing) +if (LL_TESTS)  project (llimage_libtest) @@ -8,9 +9,7 @@ include(00-Common)  include(LLCommon)  include(LLImage)  include(LLMath) -include(LLImageJ2COJ)   include(LLKDU) -include(LLFileSystem)  set(llimage_libtest_SOURCE_FILES      llimage_libtest.cpp @@ -24,17 +23,9 @@ set(llimage_libtest_HEADER_FILES  list(APPEND llimage_libtest_SOURCE_FILES ${llimage_libtest_HEADER_FILES})  add_executable(llimage_libtest -    WIN32 -    MACOSX_BUNDLE      ${llimage_libtest_SOURCE_FILES}      ) -set_target_properties(llimage_libtest -    PROPERTIES -    WIN32_EXECUTABLE -    FALSE -) -  # Libraries on which this application depends on  # Sort by high-level to low-level  target_link_libraries(llimage_libtest @@ -42,64 +33,9 @@ target_link_libraries(llimage_libtest          llfilesystem          llmath          llimage -        llkdu -        llimagej2coj          ) -     -if (DARWIN) -  # Path inside the app bundle where we'll need to copy libraries -  set(LLIMAGE_LIBTEST_DESTINATION_DIR -    ${CMAKE_CURRENT_BINARY_DIR}/$<IF:$<BOOL:${LL_GENERATOR_IS_MULTI_CONFIG}>,$<CONFIG>,>/llimage_libtest.app/Contents/Resources -  ) -  # Create the Contents/Resources directory -  add_custom_command( -    TARGET llimage_libtest POST_BUILD -    COMMAND ${CMAKE_COMMAND} -    ARGS -      -E -      make_directory -      ${LLIMAGE_LIBTEST_DESTINATION_DIR} -    COMMENT "Creating Resources directory in app bundle." -  )  -else (DARWIN) -  set(LLIMAGE_LIBTEST_DESTINATION_DIR -    ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ -  ) -endif (DARWIN) - -get_target_property(BUILT_LLCOMMON llcommon LOCATION) -add_custom_command(TARGET llimage_libtest POST_BUILD -  COMMAND ${CMAKE_COMMAND} -E copy ${BUILT_LLCOMMON}  ${LLIMAGE_LIBTEST_DESTINATION_DIR} -  DEPENDS ${BUILT_LLCOMMON} -) - -if (DARWIN) -  # Copy the required libraries to the package app -  add_custom_command(TARGET llimage_libtest POST_BUILD -    COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libapr-1.0.dylib ${LLIMAGE_LIBTEST_DESTINATION_DIR} -    DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libapr-1.0.dylib -  ) -  add_custom_command(TARGET llimage_libtest POST_BUILD -    COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libaprutil-1.0.dylib ${LLIMAGE_LIBTEST_DESTINATION_DIR} -    DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libaprutil-1.0.dylib -  ) -  add_custom_command(TARGET llimage_libtest POST_BUILD -    COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libexception_handler.dylib ${LLIMAGE_LIBTEST_DESTINATION_DIR} -    DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libexception_handler.dylib -  ) -  foreach(expat ${EXPAT_COPY}) -    add_custom_command(TARGET llimage_libtest POST_BUILD -      COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/${expat} ${LLIMAGE_LIBTEST_DESTINATION_DIR} -      DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/${expat} -    ) -  endforeach(expat) -endif (DARWIN) - -if (WINDOWS) -  # Check indra/test_apps/llplugintest/CMakeLists.txt for an example of what to copy over for Windows and how -endif (WINDOWS)  # Ensure people working on the viewer don't break this library -# *NOTE: This could be removed, or only built by TeamCity, if the build -# and link times become too long.  add_dependencies(viewer llimage_libtest) + +endif(LL_TESTS) diff --git a/indra/integration_tests/llimage_libtest/llimage_libtest.cpp b/indra/integration_tests/llimage_libtest/llimage_libtest.cpp index 95102094ae..c45bd6fd01 100644 --- a/indra/integration_tests/llimage_libtest/llimage_libtest.cpp +++ b/indra/integration_tests/llimage_libtest/llimage_libtest.cpp @@ -43,6 +43,8 @@  #include "v4coloru.h"  #include "llsdserialize.h"  #include "llcleanup.h" +#include "lltrace.h" +#include "llfasttimer.h"  // system libraries  #include <iostream> @@ -573,10 +575,10 @@ int main(int argc, char** argv)      // Create the logging thread if required -    if (LLFastTimer::sMetricLog) +    if (LLTrace::BlockTimer::sMetricLog)      { -        LLFastTimer::sLogLock = new LLMutex(NULL); -        fast_timer_log_thread = new LogThread(LLFastTimer::sLogName); +        LLTrace::BlockTimer::setLogLock(new LLMutex()); +        fast_timer_log_thread = new LogThread(LLTrace::BlockTimer::sLogName);          fast_timer_log_thread->start();      } @@ -618,9 +620,9 @@ int main(int argc, char** argv)      // Output perf data if requested by user      if (analyze_performance)      { -        std::string baseline_name = LLFastTimer::sLogName + "_baseline.slp"; -        std::string current_name  = LLFastTimer::sLogName + ".slp"; -        std::string report_name   = LLFastTimer::sLogName + "_report.csv"; +        std::string baseline_name = LLTrace::BlockTimer::sLogName + "_baseline.slp"; +        std::string current_name  = LLTrace::BlockTimer::sLogName + ".slp"; +        std::string report_name   = LLTrace::BlockTimer::sLogName + "_report.csv";          std::cout << "Analyzing performance, check report in : " << report_name << std::endl; @@ -628,9 +630,9 @@ int main(int argc, char** argv)      }      // Stop the perf gathering system if needed -    if (LLFastTimer::sMetricLog) +    if (LLTrace::BlockTimer::sMetricLog)      { -        LLMetricPerformanceTesterBasic::deleteTester(LLFastTimer::sLogName); +        LLMetricPerformanceTesterBasic::deleteTester(LLTrace::BlockTimer::sLogName);          sAllDone = true;      }  | 
