You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gt_mergeesa_include.rb
    path of file: ./repos/genometools/testsuite
    
    the code of the file until where you have to start completion: def runmerge(queryfile,referencefiles)
  sfxopts="-dna -algbds 3 31 80 -suf -lcp -tis -pl"
  run_test "#{$bin}gt suffixerator #{sfxopts} -indexname all " +
           "-db #{referencefiles.join(" ")}"
  num = 0
  indexlist = Array.new()
  referencefiles.each do |filename|
    run_test "#{$bin}gt suffixerator #{sfxopts} -indexname midx#{num} " +
             "-db #{filename}"
    run_test "#{$bin}gt dev sfxmap -tis -suf -lcp -esa midx#{num}"
    indexlist.push("midx#{num}")
    num+=1
  end
  run_test "#{$bin}gt dev mergeesa -indexname midx-all " +
           "-ii #{indexlist.join(" ")}"
  run "cmp midx-all.suf all.suf"
  run "cmp midx-all.lcp all.lcp"
  run "cmp midx-all.llv all.llv"

    
def runmerge(queryfile,referencefiles)
  sfxopts="-dna -algbds 3 31 80 -suf -lcp -tis -pl"
  run_test "#{$bin}gt suffixerator #{sfxopts} -indexname all " +
           "-db #{referencefiles.join(" ")}"
  num = 0
  indexlist = Array.new()
  referencefiles.each do |filename|
    run_test "#{$bin}gt suffixerator #{sfxopts} -indexname midx#{num} " +
             "-db #{filename}"
    run_test "#{$bin}gt dev sfxmap -tis -suf -lcp -esa midx#{num}"
    indexlist.push("midx#{num}")
    num+=1
  end
  run_test "#{$bin}gt dev mergeesa -indexname midx-all " +
           "-ii #{indexlist.join(" ")}"
  run "cmp midx-all.suf all.suf"
  run "cmp midx-all.lcp all.lcp"
  run "cmp midx-all.llv all.llv"
  run_test "#{$bin}gt mkfmindex -noindexpos -fmout fm-all " + 
           "-ii #{indexlist.join(" ")}"
  run_test "#{$bin}gt suffixerator -indexname fm-all -plain -des no -ssp no" +
           " -sds no -smap fm-all.al1 -tis -db fm-all.bwt"
  run_test "#{$bin}gt uniquesub -fmi fm-all -query #{queryfile} " +
           "-output sequence querypos -min 10 -max 10"
end