<commit_before>ADD_EXECUTABLE(memcached_testapp
               bucket_tests.cc
               testapp.cc testapp.h
               testapp_subdoc.cc
               testapp_subdoc_perf.cc
               ${Memcached_SOURCE_DIR}/programs/utilities.c)
TARGET_LINK_LIBRARIES(memcached_testapp mcd_util cbsasl cJSON platform gtest gtest_main ${SNAPPY_LIBRARIES} ${LIBEVENT_LIBRARIES} ${COUCHBASE_NETWORK_LIBS} ${OPENSSL_LIBRARIES})

# Note: As well as the Transport (plain/SSL) tests there are also some
# other unit tests in memcached_testapp. Therefore run all _but_ the
# SSL tests in 'plain'.
# In both cases we skip the PerfTests (run seperately below).
ADD_TEST(NAME memcached-basic-unit-tests-plain
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_testapp --gtest_filter=*-PlainOrSSL/*/1:*PerfTest.*)
ADD_TEST(NAME memcached-basic-unit-tests-SSL
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_testapp --gtest_filter=PlainOrSSL/*/1-*PerfTest.*)

# For perf tests we also want GTest to output XML so we can plot the
# results in Jenkins.
ADD_TEST(NAME memcached-basic-perf-tests
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_testapp --gtest_filter=*PerfTest.* --gtest_output=xml:gtest_results/)<commit_msg>testapp: Use an explicit name for perf test XML file<commit_after>ADD_EXECUTABLE(memcached_testapp
               bucket_tests.cc
               testapp.cc testapp.h
               testapp_subdoc.cc
               testapp_subdoc_perf.cc
               ${Memcached_SOURCE_DIR}/programs/utilities.c)
TARGET_LINK_LIBRARIES(memcached_testapp mcd_util cbsasl cJSON platform gtest gtest_main ${SNAPPY_LIBRARIES} ${LIBEVENT_LIBRARIES} ${COUCHBASE_NETWORK_LIBS} ${OPENSSL_LIBRARIES})

# Note: As well as the Transport (plain/SSL) tests there are also some
# other unit tests in memcached_testapp. Therefore run all _but_ the
# SSL tests in 'plain'.
# In both cases we skip the PerfTests (run seperately below).
ADD_TEST(NAME memcached-basic-unit-tests-plain
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_testapp --gtest_filter=*-PlainOrSSL/*/1:*PerfTest.*)
ADD_TEST(NAME memcached-basic-unit-tests-SSL
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_testapp --gtest_filter=PlainOrSSL/*/1-*PerfTest.*)

# For perf tests we also want GTest to output XML so we can plot the
# results in Jenkins.
ADD_TEST(NAME memcached-basic-perf-tests
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_testapp --gtest_filter=*PerfTest.* --gtest_output=xml:gtest_results/memcached_basic_perf_tests.xml)
{'fraction_non_alphanumeric': 0.07938257993384785, 'fraction_numerical': 0.001470047776552738, 'mean_word_length': 3.9045045045045046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7221794', 'n_tokens_mistral': 903, 'n_tokens_neox': 874, 'n_words': 196}