<commit_before>project(bliss_test_apps)

include("${CMAKE_SOURCE_DIR}/cmake/Sanitizer.cmake")
include("${CMAKE_SOURCE_DIR}/cmake/ExtraWarnings.cmake")

if(ENABLE_TESTING)


## EXECUTABLES
add_executable(test_omp_patterns test_omp_patterns.cpp)
target_link_libraries(test_omp_patterns ${EXTRA_LIBS})
cotire(test_omp_patterns)

## EXECUTABLES
add_executable(testCommLayer test_commlayer.cpp)
target_link_libraries(testCommLayer ${EXTRA_LIBS})
target_link_libraries(testCommLayer bliss-common)
cotire(testCommLayer )



## EXECUTABLES
add_executable(testCommLayer_leaky test_commlayer_leakybarrier.cpp)
target_link_libraries(testCommLayer_leaky ${EXTRA_LIBS})
target_link_libraries(testCommLayer_leaky bliss-common)
cotire(testCommLayer_leaky )

## EXECUTABLES
add_executable(stressTestCommLayer_sendonly stresstest_commlayer_sendonly.cpp)
target_link_libraries(stressTestCommLayer_sendonly ${EXTRA_LIBS})
target_link_libraries(stressTestCommLayer_sendonly bliss-common)
cotire(stressTestCommLayer_sendonly )


## EXECUTABLES
add_executable(stressTestCommLayer_sendrecv stresstest_commlayer_sendrecv.cpp)
target_link_libraries(stressTestCommLayer_sendrecv ${EXTRA_LIBS})
target_link_libraries(stressTestCommLayer_sendrecv bliss-common)
cotire(stressTestCommLayer_sendrecv )


add_executable(testDistrMap test_distr_map.cpp)
target_link_libraries(testDistrMap ${EXTRA_LIBS})
target_link_libraries(testDistrMap bliss-common)
cotire(testDistrMap )

endif()






if (BUILD_TEST_APPLICATIONS)

# EXECUTABLES
add_executable(benchmark_concurrent_IO_MMAP benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_MMAP PROPERTIES COMPILE_FLAGS -DTEST_OP_MMAP)
target_link_libraries(benchmark_concurrent_IO_MMAP ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_MMAP )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FILELOADER benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FILELOADER PROPERTIES COMPILE_FLAGS -DTEST_OP_FILELOADER)
target_link_libraries(benchmark_concurrent_IO_FILELOADER ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FILELOADER )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FILELOADER_ATOMIC benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FILELOADER_ATOMIC PROPERTIES COMPILE_FLAGS -DTEST_OP_FILELOADER_ATOMIC)
target_link_libraries(benchmark_concurrent_IO_FILELOADER_ATOMIC ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FILELOADER_ATOMIC )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQ benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQ PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQ)
target_link_libraries(benchmark_concurrent_IO_FASTQ ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQ )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQIter benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQIter PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQIter)
target_link_libraries(benchmark_concurrent_IO_FASTQIter ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQIter )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQIter2 benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQIter2 PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQIter2)
target_link_libraries(benchmark_concurrent_IO_FASTQIter2 ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQIter2 )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQIterNoQual benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQIterNoQual PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQIterNoQual)
target_link_libraries(benchmark_concurrent_IO_FASTQIterNoQual ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQIterNoQual )



add_executable(testKmerIndex_KMOLECULE TestKmerIndexAndQuery.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_KMOLECULE PROPERTIES COMPILE_FLAGS -DKMOLECULEINDEX)
target_link_libraries(testKmerIndex_KMOLECULE ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_KMOLECULE bliss-common)
cotire( testKmerIndex_KMOLECULE)

add_executable(testKmerIndex_KMER TestKmerIndexAndQuery.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_KMER PROPERTIES COMPILE_FLAGS -DKMERINDEX)
target_link_libraries(testKmerIndex_KMER ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_KMER bliss-common)
cotire(testKmerIndex_KMER )

#add_executable(testKmerIndex_ST TestKmerIndexAndQuerySingleThread.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST bliss-common)
#cotire(testKmerIndex_ST )
#
add_executable(testKmerIndex_ST2 TestKmerIndexAndQuerySingleThread_DistMap.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_ST2 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
target_link_libraries(testKmerIndex_ST2 ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_ST2 bliss-common)
#cotire(testKmerIndex_ST2 )

add_executable(testKmerIndex_read TestKmerIndex_ParseOnly.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_read PROPERTIES COMPILE_FLAGS -DKMERINDEX)
target_link_libraries(testKmerIndex_read ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_read bliss-common)
#cotire(testKmerIndex_ST2 )


#add_executable(testKmerIndex_ST2 TestKmerIndexAndQuerySingleThread_DHashMap.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST2 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST2 ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST2 bliss-common)
#cotire(testKmerIndex_ST2 )
#
#add_executable(testKmerIndex_ST3 TestKmerIndexAndQuerySingleThread_DSortedMap.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST3 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST3 ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST3 bliss-common)
#cotire(testKmerIndex_ST3 )
#
#add_executable(testKmerIndex_ST4 TestKmerIndexAndQuerySingleThread_DMap.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST4 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST4 ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST4 bliss-common)
#cotire(testKmerIndex_ST4 )
#

add_executable(testKmerCountCorrectness TestKmerCountCorrectness.cpp)
target_link_libraries(testKmerCountCorrectness ${EXTRA_LIBS})
target_link_libraries(testKmerCountCorrectness bliss-common)

add_executable(testKmerCountCorrectnessInFasta TestKmerCountCorrectnessInFasta.cpp)
target_link_libraries(testKmerCountCorrectnessInFasta ${EXTRA_LIBS})
target_link_libraries(testKmerCountCorrectnessInFasta bliss-common)

## EXECUTABLES
add_executable(profile_mem_usage profile_mem_usage.cpp)
target_link_libraries(profile_mem_usage ${EXTRA_LIBS})
target_link_libraries(profile_mem_usage bliss-common)
cotire(profile_mem_usage )


add_executable(test_get_file_size test_get_file_size.cpp)
target_link_libraries(test_get_file_size ${EXTRA_LIBS})
cotire(test_get_file_size )


add_executable(hash_vs_sort hash_vs_sort.cpp)
target_link_libraries(hash_vs_sort ${EXTRA_LIBS})


add_executable(kmer_reverse kmer_reverse.cpp)
target_link_libraries(kmer_reverse ${EXTRA_LIBS})
target_link_libraries(kmer_reverse bliss-common)

add_executable(cust_alloc test_custom_allocator.cpp)
target_link_libraries(cust_alloc ${EXTRA_LIBS})
target_link_libraries(cust_alloc bliss-common)

endif()
<commit_msg>FIX: custom allocator test should only be compiled when boost is found.<commit_after>project(bliss_test_apps)

include("${CMAKE_SOURCE_DIR}/cmake/Sanitizer.cmake")
include("${CMAKE_SOURCE_DIR}/cmake/ExtraWarnings.cmake")

if(ENABLE_TESTING)


## EXECUTABLES
add_executable(test_omp_patterns test_omp_patterns.cpp)
target_link_libraries(test_omp_patterns ${EXTRA_LIBS})
cotire(test_omp_patterns)

## EXECUTABLES
add_executable(testCommLayer test_commlayer.cpp)
target_link_libraries(testCommLayer ${EXTRA_LIBS})
target_link_libraries(testCommLayer bliss-common)
cotire(testCommLayer )



## EXECUTABLES
add_executable(testCommLayer_leaky test_commlayer_leakybarrier.cpp)
target_link_libraries(testCommLayer_leaky ${EXTRA_LIBS})
target_link_libraries(testCommLayer_leaky bliss-common)
cotire(testCommLayer_leaky )

## EXECUTABLES
add_executable(stressTestCommLayer_sendonly stresstest_commlayer_sendonly.cpp)
target_link_libraries(stressTestCommLayer_sendonly ${EXTRA_LIBS})
target_link_libraries(stressTestCommLayer_sendonly bliss-common)
cotire(stressTestCommLayer_sendonly )


## EXECUTABLES
add_executable(stressTestCommLayer_sendrecv stresstest_commlayer_sendrecv.cpp)
target_link_libraries(stressTestCommLayer_sendrecv ${EXTRA_LIBS})
target_link_libraries(stressTestCommLayer_sendrecv bliss-common)
cotire(stressTestCommLayer_sendrecv )


add_executable(testDistrMap test_distr_map.cpp)
target_link_libraries(testDistrMap ${EXTRA_LIBS})
target_link_libraries(testDistrMap bliss-common)
cotire(testDistrMap )

endif()






if (BUILD_TEST_APPLICATIONS)

# EXECUTABLES
add_executable(benchmark_concurrent_IO_MMAP benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_MMAP PROPERTIES COMPILE_FLAGS -DTEST_OP_MMAP)
target_link_libraries(benchmark_concurrent_IO_MMAP ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_MMAP )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FILELOADER benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FILELOADER PROPERTIES COMPILE_FLAGS -DTEST_OP_FILELOADER)
target_link_libraries(benchmark_concurrent_IO_FILELOADER ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FILELOADER )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FILELOADER_ATOMIC benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FILELOADER_ATOMIC PROPERTIES COMPILE_FLAGS -DTEST_OP_FILELOADER_ATOMIC)
target_link_libraries(benchmark_concurrent_IO_FILELOADER_ATOMIC ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FILELOADER_ATOMIC )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQ benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQ PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQ)
target_link_libraries(benchmark_concurrent_IO_FASTQ ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQ )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQIter benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQIter PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQIter)
target_link_libraries(benchmark_concurrent_IO_FASTQIter ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQIter )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQIter2 benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQIter2 PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQIter2)
target_link_libraries(benchmark_concurrent_IO_FASTQIter2 ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQIter2 )

# EXECUTABLES
add_executable(benchmark_concurrent_IO_FASTQIterNoQual benchmark_concurrent_IO.cpp)
SET_TARGET_PROPERTIES(benchmark_concurrent_IO_FASTQIterNoQual PROPERTIES COMPILE_FLAGS -DTEST_OP_FASTQIterNoQual)
target_link_libraries(benchmark_concurrent_IO_FASTQIterNoQual ${EXTRA_LIBS})
cotire(benchmark_concurrent_IO_FASTQIterNoQual )



add_executable(testKmerIndex_KMOLECULE TestKmerIndexAndQuery.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_KMOLECULE PROPERTIES COMPILE_FLAGS -DKMOLECULEINDEX)
target_link_libraries(testKmerIndex_KMOLECULE ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_KMOLECULE bliss-common)
cotire( testKmerIndex_KMOLECULE)

add_executable(testKmerIndex_KMER TestKmerIndexAndQuery.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_KMER PROPERTIES COMPILE_FLAGS -DKMERINDEX)
target_link_libraries(testKmerIndex_KMER ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_KMER bliss-common)
cotire(testKmerIndex_KMER )

#add_executable(testKmerIndex_ST TestKmerIndexAndQuerySingleThread.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST bliss-common)
#cotire(testKmerIndex_ST )
#
add_executable(testKmerIndex_ST2 TestKmerIndexAndQuerySingleThread_DistMap.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_ST2 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
target_link_libraries(testKmerIndex_ST2 ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_ST2 bliss-common)
#cotire(testKmerIndex_ST2 )

add_executable(testKmerIndex_read TestKmerIndex_ParseOnly.cpp)
SET_TARGET_PROPERTIES(testKmerIndex_read PROPERTIES COMPILE_FLAGS -DKMERINDEX)
target_link_libraries(testKmerIndex_read ${EXTRA_LIBS})
target_link_libraries(testKmerIndex_read bliss-common)
#cotire(testKmerIndex_ST2 )


#add_executable(testKmerIndex_ST2 TestKmerIndexAndQuerySingleThread_DHashMap.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST2 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST2 ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST2 bliss-common)
#cotire(testKmerIndex_ST2 )
#
#add_executable(testKmerIndex_ST3 TestKmerIndexAndQuerySingleThread_DSortedMap.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST3 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST3 ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST3 bliss-common)
#cotire(testKmerIndex_ST3 )
#
#add_executable(testKmerIndex_ST4 TestKmerIndexAndQuerySingleThread_DMap.cpp)
#SET_TARGET_PROPERTIES(testKmerIndex_ST4 PROPERTIES COMPILE_FLAGS -DKMERINDEX)
#target_link_libraries(testKmerIndex_ST4 ${EXTRA_LIBS})
#target_link_libraries(testKmerIndex_ST4 bliss-common)
#cotire(testKmerIndex_ST4 )
#

add_executable(testKmerCountCorrectness TestKmerCountCorrectness.cpp)
target_link_libraries(testKmerCountCorrectness ${EXTRA_LIBS})
target_link_libraries(testKmerCountCorrectness bliss-common)

add_executable(testKmerCountCorrectnessInFasta TestKmerCountCorrectnessInFasta.cpp)
target_link_libraries(testKmerCountCorrectnessInFasta ${EXTRA_LIBS})
target_link_libraries(testKmerCountCorrectnessInFasta bliss-common)

## EXECUTABLES
add_executable(profile_mem_usage profile_mem_usage.cpp)
target_link_libraries(profile_mem_usage ${EXTRA_LIBS})
target_link_libraries(profile_mem_usage bliss-common)
cotire(profile_mem_usage )


add_executable(test_get_file_size test_get_file_size.cpp)
target_link_libraries(test_get_file_size ${EXTRA_LIBS})
cotire(test_get_file_size )


add_executable(hash_vs_sort hash_vs_sort.cpp)
target_link_libraries(hash_vs_sort ${EXTRA_LIBS})


add_executable(kmer_reverse kmer_reverse.cpp)
target_link_libraries(kmer_reverse ${EXTRA_LIBS})
target_link_libraries(kmer_reverse bliss-common)

if (Boost_FOUND)
	add_executable(cust_alloc test_custom_allocator.cpp)
	target_link_libraries(cust_alloc ${EXTRA_LIBS})
	target_link_libraries(cust_alloc bliss-common)
endif()

endif()

{'fraction_non_alphanumeric': 0.061864173769590323, 'fraction_numerical': 0.0035743744844652188, 'mean_word_length': 16.592503022974608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3906478', 'n_tokens_mistral': 5527, 'n_tokens_neox': 5402, 'n_words': 520}