Mercurial > repos > galaxyp > openms_consensusid
annotate generate-foo.sh @ 15:726475c0d07d draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
| author | galaxyp | 
|---|---|
| date | Tue, 13 Oct 2020 18:58:31 +0000 | 
| parents | 302780acadcf | 
| children | 
| rev | line source | 
|---|---|
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
1 #!/usr/bin/env bash | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
2 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
3 # parse test definitions from OpenMS sources for a tool with a given id | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
4 function get_tests2 { | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
5 id=$1 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
6 >&2 echo "generate tests for $id" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
7 echo '<xml name="autotest_'"$id"'">' | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
8 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
9 # get the tests from the CMakeLists.txt | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
10 # 1st remove some tests | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
11 # - OpenSwathMzMLFileCacher with -convert_back argumen https://github.com/OpenMS/OpenMS/issues/4399 | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
12 # - IDRipper PATH gets empty causing problems. TODO But overall the option needs to be handled differentlt | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
13 # - several tools with duplicated input (leads to conflict when linking) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
14 # - TOFCalibration inputs we extension (also in prepare_test_data) https://github.com/OpenMS/OpenMS/pull/4525 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
15 # - MaRaCluster with -consensus_out (parameter blacklister: https://github.com/OpenMS/OpenMS/issues/4456) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
16 # - FileMerger with mixed dta dta2d input (ftype can not be specified in the test, dta can not be sniffed) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
17 # - some input files are originally in a subdir (degenerated cases/), but not in test-data | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
18 # - SeedListGenerator: https://github.com/OpenMS/OpenMS/issues/4404 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
19 # - OpenSwathAnalyzer 9/10: cachedMzML (not supported yet) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
20 # - FeatureFinderIdentification name clash of two tests https://github.com/OpenMS/OpenMS/pull/5002 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
21 # - TODO SiriusAdapter https://github.com/OpenMS/OpenMS/pull/5010 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
22 CMAKE=$(cat $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
23 sed 's@${DATA_DIR_SHARE}/@@g' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
24 grep -v 'OpenSwathMzMLFileCacher .*-convert_back' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
25 sed 's/${TMP_RIP_PATH}/""/' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
26 grep -v "MaRaClusterAdapter.*-consensus_out"| | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
27 grep -v "FileMerger_1_input1.dta2d.*FileMerger_1_input2.dta " | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
28 sed 's@degenerate_cases/@@g' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
29 grep -v 'TOPP_SeedListGenerator_3"' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
30 egrep -v 'TOPP_OpenSwathAnalyzer_test_3"|TOPP_OpenSwathAnalyzer_test_4"' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
31 egrep -v '"TOPP_FeatureFinderIdentification_4"' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
32 sed 's/\("TOPP_SiriusAdapter_4".*\)-sirius:database all\(.*\)/\1-sirius:database pubchem\2/') | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
33 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
34 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
35 # grep -v 'FileFilter.*-spectra:select_polarity ""' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
36 # grep -v 'MassTraceExtractor_2.ini ' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
37 # grep -v "FileMerger_6_input2.mzML.*FileMerger_6_input2.mzML" | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
38 # grep -v "IDMerger_1_input1.idXML.*IDMerger_1_input1.idXML" | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
39 # grep -v "degenerated_empty.idXML.*degenerated_empty.idXML" | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
40 # grep -v "FeatureLinkerUnlabeledKD_1_output.consensusXML.*FeatureLinkerUnlabeledKD_1_output.consensusXML" | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
41 # grep -v "FeatureLinkerUnlabeledQT_1_output.consensusXML.*FeatureLinkerUnlabeledQT_1_output.consensusXML" | | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
42 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
43 # 1st part is a dirty hack to join lines containing a single function call, e.g. | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
44 # addtest(.... | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
45 # ....) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
46 echo "$CMAKE" | sed 's/#.*//; s/^\s*//; s/\s*$//' | grep -v "^#" | grep -v "^$" | awk '{printf("%s@NEWLINE@", $0)}' | sed 's/)@NEWLINE@/)\n/g' | sed 's/@NEWLINE@/ /g' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
47 grep -iE "add_test\(\"(TOPP|UTILS)_.*/$id " | egrep -v "_prepare\"|_convert|WRITEINI|WRITECTD|INVALIDVALUE" | while read -r line | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
48 do | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
49 line=$(echo "$line" | sed 's/add_test("\([^"]\+\)"/\1/; s/)$//; s/\${TOPP_BIN_PATH}\///g;s/\${DATA_DIR_TOPP}\///g; s#THIRDPARTY/##g') | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
50 # >&2 echo $line | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
51 test_id=$(echo "$line" | cut -d" " -f 1) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
52 tool_id=$(echo "$line" | cut -d" " -f 2) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
53 if [[ $test_id =~ _out_?[0-9]? ]]; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
54 >&2 echo " skip $test_id $line" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
55 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
56 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
57 if [[ ${id,,} != ${tool_id,,} ]]; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
58 >&2 echo " skip $test_id ($id != $tool_id) $line" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
59 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
60 fi | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
61 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
62 #remove tests with set_tests_properties(....PROPERTIES WILL_FAIL 1) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
63 if grep -lq "$test_id"'\".* PROPERTIES WILL_FAIL 1' $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
64 >&2 echo " skip failing "$test_id | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
65 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
66 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
67 tes=" <test>\n" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
68 line=$(fix_tmp_files "$line") | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
69 line=$(unique_files "$line") | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
70 # >&2 echo $line | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
71 #if there is an ini file then we use this to generate the test | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
72 #otherwise the ctd file is used | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
73 #other command line parameters are inserted later into this xml | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
74 if grep -lq "\-ini" <<<"$line"; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
75 ini=$(echo $line | sed 's/.*-ini \([^ ]\+\).*/\1/') | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
76 ini="test-data/$ini" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
77 else | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
78 ini="ctd/$tool_id.ctd" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
79 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
80 cli=$(echo $line |cut -d" " -f3- | sed 's/-ini [^ ]\+//') | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
81 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
82 ctdtmp=$(mktemp) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
83 #echo python3 fill_ctd_clargs.py --ctd $ini $cli | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
84 # using eval: otherwise for some reason quoted values are not used properly ('A B' -> ["'A", "B'"]) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
85 # >&2 echo "python3 fill_ctd_clargs.py --ctd $ini $cli" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
86 eval "python3 fill_ctd_clargs.py --ctd $ini $cli" > "$ctdtmp" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
87 # echo $ctdtmp | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
88 # >&2 cat $ctdtmp | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
89 testtmp=$(mktemp) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
90 python3 $CTDCONVERTER/convert.py galaxy -i $ctdtmp -o $testtmp -s tools_blacklist.txt -f "$FILETYPES" -m macros.xml -t tool.conf -p hardcoded_params.json --tool-version $VERSION --test-only --test-unsniffable csv tsv txt dta dta2d edta mrm splib > /dev/null | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
91 cat $testtmp | grep -v '<output.*file=""' # | grep -v 'CHEMISTRY/' | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
92 rm $ctdtmp $testtmp | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
93 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
94 #> /dev/null | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
95 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
96 #rm $testtmp | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
97 done | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
98 echo '</xml>' | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
99 } | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
100 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
101 #some tests use the same file twice which does not work in planemo tests | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
102 #hence we create symlinks for each file used twice | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
103 function unique_files { | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
104 line=$@ | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
105 for arg in $@ | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
106 do | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
107 if [[ ! -f "test-data/$arg" ]]; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
108 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
109 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
110 cnt=$(grep -c $arg <<< $(echo "$line" | tr ' ' '\n')) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
111 while [[ $cnt -gt 1 ]]; do | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
112 new_arg=$(echo $arg | sed "s/\(.*\)\./\1_$cnt./") | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
113 ln -fs $arg test-data/$new_arg | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
114 line=$(echo $line | sed "s/\($arg.*\)$arg/\1$new_arg/") | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
115 cnt=$(grep -c $arg <<< $(echo "$line" | tr ' ' '\n')) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
116 done | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
117 done | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
118 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
119 echo $line | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
120 } | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
121 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
122 # options of out_type selects need to be fixed to Galaxy data types | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
123 function fix_out_type { | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
124 grep "^$1" "$2" | awk '{print $2}' | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
125 } | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
126 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
127 #OpenMS tests output to tmp files and compare with FuzzyDiff to the expected file. | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
128 #problem: the extension of the tmp files is unusable for test generation. | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
129 #unfortunately the extensions used in the DIFF lines are not always usable for the CLI | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
130 #(e.g. for prepare_test_data, e.g. CLI expects csv but test file is txt) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
131 #this function replaces the tmp file by the expected file. | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
132 function fix_tmp_files { | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
133 # >&2 echo "FIX $line" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
134 ret="" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
135 for a in $@; do | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
136 if [[ ! $a =~ .tmp$ ]]; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
137 ret="$ret $a" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
138 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
139 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
140 # >&2 echo " a "$a | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
141 g=$(cat $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake | awk '{printf("%s@NEWLINE@", $0)}' | sed 's/)@NEWLINE@/)\n/g' | sed 's/@NEWLINE@/ /g' | grep '\${DIFF}.*'"$a") | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
142 # >&2 echo " g "$g | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
143 in1=$(sed 's/.*-in1 \([^ ]\+\).*/\1/' <<<$g) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
144 # >&2 echo " in1 "$in1 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
145 if [[ "$a" != "$in1" ]]; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
146 ret="$ret $a" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
147 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
148 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
149 in2=$(sed 's/.*-in2 \([^ ]\+\).*/\1/' <<<$g) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
150 in2=$(basename $in2 | sed 's/)$//') | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
151 # >&2 echo " in2 "$in2 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
152 if [[ -f "test-data/$in2" ]]; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
153 ln -fs "$in1" "test-data/$in2" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
154 ret="$ret $in2" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
155 else | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
156 ret="$ret $a" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
157 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
158 done | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
159 # >&2 echo "--> $ret" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
160 echo "$ret" | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
161 } | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
162 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
163 function link_tmp_files { | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
164 # note this also considers commented lines (starting with a #) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
165 # because of tests where the diff command is commented and we | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
166 # still want to use the extension of these files | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
167 cat $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake | sed 's/^\s*//; s/\s*$//' | grep -v "^$" | awk '{printf("%s@NEWLINE@", $0)}' | sed 's/)@NEWLINE@/)\n/g' | sed 's/@NEWLINE@/ /g' | grep "\${DIFF}" | while read -r line | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
168 do | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
169 in1=$(sed 's/.*-in1 \([^ ]\+\).*/\1/' <<<$line) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
170 in1=$(basename $in1 | sed 's/)$//') | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
171 in2=$(sed 's/.*-in2 \([^ ]\+\).*/\1/' <<<$line) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
172 in2=$(basename $in2 | sed 's/)$//') | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
173 if [[ "$in1" == "$in2" ]]; then | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
174 >&2 echo "not linking equal $in1 $in2" | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
175 continue | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
176 fi | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
177 ln -f -s $in1 test-data/$in2 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
178 done | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
179 for i in test-data/*.tmp | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
180 do | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
181 if [ ! -e test-data/$(basename $i .tmp) ]; then | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
182 ln -s $(basename $i) test-data/$(basename $i .tmp) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
183 #ln -s $(basename $i) test-data/$(basename $i .tmp) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
184 else | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
185 ln -fs $(basename $i) test-data/$(basename $i .tmp) | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
186 fi | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
187 done | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
188 } | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
189 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
190 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
191 | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
192 # parse data preparation calls from OpenMS sources for a tool with a given id | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
193 function prepare_test_data { | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
194 # id=$1 | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
195 # | egrep -i "$id\_.*[0-9]+(_prepare\"|_convert)?" | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
196 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
197 # TODO SiriusAdapter https://github.com/OpenMS/OpenMS/pull/5010 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
198 cat $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake | sed 's/#.*$//'| sed 's/^\s*//; s/\s*$//' | grep -v "^$" | awk '{printf("%s@NEWLINE@", $0)}' | sed 's/)@NEWLINE@/)\n/g' | sed 's/@NEWLINE@/ /g' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
199 sed 's/degenerate_cases\///' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
200 egrep -v "WRITEINI|WRITECTD|INVALIDVALUE|DIFF" | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
201 grep add_test | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
202 egrep "TOPP|UTILS" | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
203 sed 's@${DATA_DIR_SHARE}/@@g;'| | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
204 sed 's@${TMP_RIP_PATH}@dummy2.tmp@g'| | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
205 sed 's@TOFCalibration_ref_masses @TOFCalibration_ref_masses.txt @g; s@TOFCalibration_const @TOFCalibration_const.csv @'| | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
206 sed 's/\("TOPP_SiriusAdapter_4".*\)-sirius:database all\(.*\)/\1-sirius:database pubchem\2/' | | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
207 while read line | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
208 do | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
209 test_id=$(echo "$line" | sed 's/add_test(//; s/"//g; s/)[^)]*$//; s/\${TOPP_BIN_PATH}\///g;s/\${DATA_DIR_TOPP}\///g; s#THIRDPARTY/##g' | cut -d" " -f1) | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
210 | 
| 
15
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
211 if grep -lq "$test_id"'\".* PROPERTIES WILL_FAIL 1' $OPENMSGIT/src/tests/topp/CMakeLists.txt $OPENMSGIT/src/tests/topp/THIRDPARTY/third_party_tests.cmake; then | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
212 >&2 echo " skip failing "$test_id | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
213 continue | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
214 fi | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
215 | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
216 line=$(echo "$line" | sed 's/add_test("//; s/)[^)]*$//; s/\${TOPP_BIN_PATH}\///g;s/\${DATA_DIR_TOPP}\///g; s#THIRDPARTY/##g' | cut -d" " -f2-) | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
217 # line="$(fix_tmp_files $line)" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
218 echo 'echo executing "'$test_id'"' | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
219 echo "$line > $test_id.stdout 2> $test_id.stderr" | 
| 
 
726475c0d07d
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 55a2aeba8bfd8a6910630721de9857dcdfe05d3c"
 
galaxyp 
parents: 
13 
diff
changeset
 | 
220 echo "if [[ \"\$?\" -ne \"0\" ]]; then >&2 echo '$test_id failed'; >&2 echo -e \"stderr:\n\$(cat $test_id.stderr | sed 's/^/ /')\"; echo -e \"stdout:\n\$(cat $test_id.stdout)\";fi" | 
| 
13
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
221 done | 
| 
 
302780acadcf
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
 
galaxyp 
parents:  
diff
changeset
 | 
222 } | 
