source: icGREP/icgrep-devel/QA/editd/run_all.py @ 5222

Last change on this file since 5222 was 5222, checked in by lindanl, 3 years ago

Test case for editd.

File size: 369 bytes
Line 
1from subprocess import *
2from string import *
3
4if __name__ == "__main__":
5        out_f = open('OutputFiles/reads2', 'w')
6        expected_f = open('ExpectedOutput/reads2', 'r')
7        call(['../../editd-build/editd', '-f', 'TestFiles/reads2', 'chr.fa', '-display'], stdout=out_f)
8        if open('OutputFiles/reads2', 'r').read()==expected_f.read():
9                print 'Succeeded'
10        else:
11                print 'Failed' 
Note: See TracBrowser for help on using the repository browser.