File: CMakeLists.txt

package info (click to toggle)
sra-sdk 3.2.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 296,076 kB
  • sloc: ansic: 532,876; cpp: 243,000; perl: 9,649; python: 8,978; sh: 7,888; java: 6,253; makefile: 1,148; yacc: 703; xml: 310; lex: 236
file content (64 lines) | stat: -rw-r--r-- 4,377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ===========================================================================
#
#                            PUBLIC DOMAIN NOTICE
#               National Center for Biotechnology Information
#
#  This software/database is a "United States Government Work" under the
#  terms of the United States Copyright Act.  It was written as part of
#  the author's official duties as a United States Government employee and
#  thus cannot be copyrighted.  This software/database is freely available
#  to the public for use. The National Library of Medicine and the U.S.
#  Government have not placed any restriction on its use or reproduction.
#
#  Although all reasonable efforts have been taken to ensure the accuracy
#  and reliability of the software and data, the NLM and the U.S.
#  Government do not and cannot warrant the performance or results that
#  may be obtained by using this software or data. The NLM and the U.S.
#  Government disclaim all warranties, express or implied, including
#  warranties of performance, merchantability or fitness for any particular
#  purpose.
#
#  Please cite the author in any work or product based on this material.
#
# ===========================================================================

include_directories ("..")

# command line tests
if ( NOT WIN32)
	set ( DUMP_REF_FASTA  ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dump-ref-fasta )

    # NB. Slow (run time > 1m) tests should names that start with "SlowTest_"; run without: "ctest -E SlowTest_", run only: "ctest -R SlowTest_"

	# help
	add_test ( NAME dump-ref-fasta-1.0-h WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 
	            COMMAND runtestcase.sh ${DUMP_REF_FASTA} 1.0-h --args "-h" )
	add_test ( NAME dump-ref-fasta-1.1-help WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 
	            COMMAND runtestcase.sh ${DUMP_REF_FASTA} 1.1-help --args "--help" )
	# version
    add_test ( NAME dump-ref-fasta-1.2-V WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ./execandgrep.sh "${DUMP_REF_FASTA} -V" ${VERSION} )
    add_test ( NAME dump-ref-fasta-1.3-v WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ./execandgrep.sh "${DUMP_REF_FASTA} -v" ${VERSION} )
    add_test ( NAME dump-ref-fasta-1.4-version WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ./execandgrep.sh "${DUMP_REF_FASTA} --version" ${VERSION} )
	# regular run (includes non-local references starting at around 365000 bytes)
	add_test ( NAME dump-ref-fasta-2.0 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 2.0 --args "SRR496123  | head -n 370000" )
	set_tests_properties( dump-ref-fasta-2.0 PROPERTIES LABELS online )
	# full ref
    add_test ( NAME dump-ref-fasta-3.0 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 3.0 --args "SRR496123 NW_003336815.1" )
	set_tests_properties( dump-ref-fasta-3.0 PROPERTIES LABELS online )
	# slice
    add_test ( NAME dump-ref-fasta-3.1 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 3.1 --args "SRR496123 NW_003336815.1:0-100" )
	set_tests_properties( dump-ref-fasta-3.1 PROPERTIES LABELS online )
	# open slice
    add_test ( NAME dump-ref-fasta-3.2 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 3.2 --args "SRR496123 NW_003336815.1:100" )
	set_tests_properties( dump-ref-fasta-3.2 PROPERTIES LABELS online )
	# multiple slices on the same ref
    add_test ( NAME dump-ref-fasta-3.3 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 3.3 --args "SRR496123 NW_003336837.1:100-200 NW_003336815.1:0-100" )
	set_tests_properties( dump-ref-fasta-3.3 PROPERTIES LABELS online )
	# local references only (non-local references start at around 365000 bytes)
    add_test ( NAME dump-ref-fasta-4.0 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 4.0 --args "--localref SRR496123  | head -n 370000" )
	set_tests_properties( dump-ref-fasta-4.0 PROPERTIES LABELS online )
	# local references only, slice (NW_001884453.3 is non-local and will not be included)
    add_test ( NAME dump-ref-fasta-4.1 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND runtestcase.sh ${DUMP_REF_FASTA} 4.1 --args "-l SRR496123 NW_003336837.1:100-200 NW_001884453.3:0-100" )
	set_tests_properties( dump-ref-fasta-4.1 PROPERTIES LABELS online )

endif ()