1# $Id: Makefile.in 569888 2018-08-30 17:18:28Z drozdov $ 2 3APP_PROJ = agp_validate agp_renumber 4 5srcdir = @srcdir@ 6include @builddir@/Makefile.meta 7 8TESTS=bad_test big_int_pos test2 acc_test fa_test un_test obj_len_test order_test overlap_test new_test space_test runs_of_ns\ 9 chr_scaf_test chr_scaf_test2 chr_scaf_test_bad ver2.0 ver2.0_bad comp_test sub_test unplaced_singleton 10 11.PHONY : noalt test $(TESTS) alt_test 12 13noalt: $(TESTS) 14 echo All tests except -alt succeeded. 15 16test: $(TESTS) alt_test 17 echo All tests succeeded. 18 19bad_test : agp_validate 20 -sh -c "./agp_validate $(srcdir)/test/bad_test.agp >bad_test.out 2>&1" 21 diff ${DOPT} -u $(srcdir)/test/bad_test.out bad_test.out 22 23big_int_pos : agp_validate 24 -sh -c "./agp_validate $(srcdir)/test/big_int_pos.agp >big_int_pos.out 2>&1" 25 diff ${DOPT} -u $(srcdir)/test/big_int_pos.out big_int_pos.out 26 27alt_test : agp_validate 28 -sh -c "./agp_validate -alt $(srcdir)/test/alt_bad_test.agp >alt_bad_test.out 2>&1" 29 diff ${DOPT} -I 'CId2ReaderBase: bad reply serial number' -u $(srcdir)/test/alt_bad_test.out alt_bad_test.out 30 31test2 : agp_validate 32 -sh -c 'curdir=`pwd` && cd $(srcdir) && $$curdir/agp_validate test/bad_test.agp test/alt_bad_test.agp >$$curdir/test2.out 2>&1' 33 diff ${DOPT} -u $(srcdir)/test/test2.out test2.out 34 35acc_test : agp_validate 36 -sh -c "./agp_validate $(srcdir)/test/bad_accessions.agp >bad_accessions.out 2>&1" 37 diff ${DOPT} -u $(srcdir)/test/bad_accessions.out bad_accessions.out 38 39fa_test : agp_validate 40 -sh -c "./agp_validate $(srcdir)/test/fa_test.fa $(srcdir)/test/fa_test.agp >fa_test.out 2>&1" 41 diff ${DOPT} -u $(srcdir)/test/fa_test.out fa_test.out 42 -sh -c "./agp_validate $(srcdir)/test/fa_test.fa $(srcdir)/test/fa_test1.agp >fa_test1_2.out 2>&1" 43 -sh -c "echo ===================================================== >> fa_test1_2.out" 44 -sh -c "./agp_validate $(srcdir)/test/fa_test.fa $(srcdir)/test/fa_test2.agp>>fa_test1_2.out 2>&1" 45 diff ${DOPT} -u $(srcdir)/test/fa_test1_2.out fa_test1_2.out 46 47un_test : agp_validate 48 -sh -c "./agp_validate -un $(srcdir)/test/fa_test.fa $(srcdir)/test/un_test.agp >un_test.out 2>&1" 49 diff ${DOPT} -u $(srcdir)/test/un_test.out un_test.out 50 51sub_test : agp_validate 52 -sh -c "./agp_validate -sub -un $(srcdir)/test/fa_test.fa $(srcdir)/test/un_test.agp >sub_test.out 2>&1" 53 diff ${DOPT} -u $(srcdir)/test/sub_test.out sub_test.out 54 55obj_len_test : agp_validate 56 -sh -c "./agp_validate -obj $(srcdir)/test/obj_len_test.fa $(srcdir)/test/obj_len_test.agp >obj_len_test.out 2>&1" 57 diff ${DOPT} -u $(srcdir)/test/obj_len_test.out obj_len_test.out 58 59order_test: agp_validate 60 -sh -c "./agp_validate $(srcdir)/test/obj_id_OrderNotNumerical.agp >obj_id_OrderNotNumerical.out 2>&1" 61 diff ${DOPT} -u $(srcdir)/test/obj_id_OrderNotNumerical.out obj_id_OrderNotNumerical.out 62 63overlap_test: agp_validate 64 -sh -c "./agp_validate $(srcdir)/test/overlap_test.agp >overlap_test.out 2>&1" 65 diff ${DOPT} -u $(srcdir)/test/overlap_test.out overlap_test.out 66 67new_test: agp_validate 68 -sh -c "./agp_validate -un $(srcdir)/test/new_test.agp >new_test.out 2>&1" 69 diff ${DOPT} -u $(srcdir)/test/new_test.out new_test.out 70 71space_test: agp_validate 72 -sh -c "./agp_validate $(srcdir)/test/space_test.agp>space_test.out 2>&1" 73 diff ${DOPT} -u $(srcdir)/test/space_test.out space_test.out 74 -sh -c "./agp_validate $(srcdir)/test/space_in_object_id.agp>space_in_object_id.out 2>&1" 75 diff ${DOPT} -u $(srcdir)/test/space_in_object_id.out space_in_object_id.out 76 77runs_of_ns: agp_validate 78 sh -c "./agp_validate -out runs_of_ns.agp $(srcdir)/test/MedtrA17_3.5.head.comp_fa $(srcdir)/test/MedtrA17_3.5.head.agp>runs_of_ns.out 2>&1" 79 diff ${DOPT} -u $(srcdir)/test/runs_of_ns.out runs_of_ns.out 80 diff ${DOPT} -u $(srcdir)/test/runs_of_ns.agp runs_of_ns.agp 81 82chr_scaf_test: agp_validate 83 sh -c "./agp_validate -chr $(srcdir)/test/chr_from_scaffold_WGS.agp>chr_scaf_test.out 2>&1" 84 sh -c "./agp_validate -scaf $(srcdir)/test/scaffold_from_contig_WGS.agp>>chr_scaf_test.out 2>&1" 85 diff ${DOPT} -u $(srcdir)/test/chr_scaf_test.out chr_scaf_test.out 86 87chr_scaf_test2: agp_validate 88 -sh -c "./agp_validate -scaf $(srcdir)/test/scaffold_from_contig_WGS.agp -chr $(srcdir)/test/chr_from_scaffold_WGS.agp>chr_scaf_test2.out 2>&1" 89 -sh -c "./agp_validate -scaf $(srcdir)/test/scaffold_from_contig_WGS.agp -chr $(srcdir)/test/chr_from_scaffold_WGS_bad.agp>>chr_scaf_test2.out 2>&1" 90 diff ${DOPT} -u $(srcdir)/test/chr_scaf_test2.out chr_scaf_test2.out 91 92chr_scaf_test_bad: agp_validate 93 -sh -c "./agp_validate -scaf $(srcdir)/test/chr_from_scaffold_WGS.agp>chr_scaf_test_bad.out 2>&1" 94 -sh -c "./agp_validate -chr $(srcdir)/test/scaffold_from_contig_WGS.agp>>chr_scaf_test_bad.out 2>&1" 95 diff ${DOPT} -u $(srcdir)/test/chr_scaf_test_bad.out chr_scaf_test_bad.out 96 97unplaced_singleton: agp_validate 98 sh -c "./agp_validate $(srcdir)/test/unplaced_singleton.fa $(srcdir)/test/unplaced_singleton.agp>unplaced_singleton.out 2>&1" 99 sh -c "./agp_validate $(srcdir)/test/unplaced_singleton.fa $(srcdir)/test/unplaced_singleton_bad.agp>>unplaced_singleton.out 2>&1" 100 diff ${DOPT} -u $(srcdir)/test/unplaced_singleton.out unplaced_singleton.out 101 102ver2.0: agp_validate 103 -sh -c "./agp_validate -scaf $(srcdir)/test/scaffold_from_contig_WGS.agp2.0 -chr $(srcdir)/test/chr_from_scaffold_WGS.agp2.0>ver2.0.out 2>&1" 104 -sh -c "./agp_validate $(srcdir)/test/chr_from_contig_BAC.agp2.0 $(srcdir)/test/chr_from_contig_WGS.agp2.0 >>ver2.0.out 2>&1" 105 diff ${DOPT} -u $(srcdir)/test/ver2.0.out ver2.0.out 106 107# W_AGPVersionCommentInvalid, W_AGPVersionCommentUnnecessary 108ver2.0_bad: agp_validate 109 -sh -c "./agp_validate -v 2 -scaf $(srcdir)/test/scaffold_from_contig_WGS.agp2.0 -chr $(srcdir)/test/chr_from_scaffold_WGS.agp2.0>ver2.0_bad.out 2>&1" 110 -sh -c "./agp_validate $(srcdir)/test/chr_from_contig_BAC.agp2.0_bad_ver $(srcdir)/test/chr_from_contig_WGS.agp2.0 >>ver2.0_bad.out 2>&1" 111 diff ${DOPT} -u $(srcdir)/test/ver2.0_bad.out ver2.0_bad.out 112 113comp_test: agp_validate 114 sh -c "./agp_validate -comp -ignoreagponly -loadlog /dev/null test/comp_test.fsa test/comp_test.fa test/comp_test.agp>comp_test.out 2>&1" 115 diff ${DOPT} -u $(srcdir)/test/comp_test.out comp_test.out 116