|
26 | 26 |
|
27 | 27 | # create sketches
|
28 | 28 | sys.stderr.write("Sketch smoke test\n")
|
| 29 | +subprocess.run("python ../sketchlib-runner.py sketch -l references.txt -o test_db -s 10000 -k 15,29,4 --cpus 1", shell=True, check=True) |
| 30 | +os.remove("test_db.h5") |
29 | 31 | subprocess.run("python ../sketchlib-runner.py sketch -l references.txt -o test_db -s 10000 -k 15,29,4 --cpus 2", shell=True, check=True)
|
30 |
| -subprocess.run("python ../sketchlib-runner.py sketch -l references.txt -o test_db_phased --codon-phased --cpus 2", shell=True, check=True) |
| 32 | +subprocess.run("python ../sketchlib-runner.py sketch -l references.txt -o test_db_phased --codon-phased --cpus 1", shell=True, check=True) |
31 | 33 | subprocess.run("python ../sketchlib-runner.py sketch 12673_8#24.contigs_velvet.fa 12673_8#34.contigs_velvet.fa -o test_db_small -s 1000 --kmer 14", shell=True, check=True)
|
32 | 34 | subprocess.run("python ../sketchlib-runner.py add random test_db --cpus 2", shell=True, check=True)
|
33 | 35 | # calculate distances
|
34 | 36 | sys.stderr.write("Distance integration test\n")
|
35 |
| -subprocess.run("python ../sketchlib-runner.py query dist test_db --cpus 2", shell=True, check=True) # checks if can be run |
36 |
| -subprocess.run("python ../sketchlib-runner.py query dist test_db -o ppsketch --cpus 2", shell=True, check=True) # checks if can be run |
37 |
| -subprocess.run("python ../sketchlib-runner.py query jaccard test_db_small --cpus 2", shell=True, check=True) # checks if can be run |
| 37 | +subprocess.run("python ../sketchlib-runner.py query dist test_db --cpus 1", shell=True, check=True) # checks if can be run |
| 38 | +subprocess.run("python ../sketchlib-runner.py query dist test_db --cpus 2", shell=True, check=True) # checks if can be run w/ openmp |
| 39 | +subprocess.run("python ../sketchlib-runner.py query dist test_db -o ppsketch --cpus 1", shell=True, check=True) # checks if can be run |
| 40 | +subprocess.run("python ../sketchlib-runner.py query jaccard test_db_small --cpus 1", shell=True, check=True) # checks if can be run |
38 | 41 | subprocess.run("python test-dists.py --ref-db test_db --results ppsketch_ref", shell=True, check=True) # checks results match
|
39 |
| -subprocess.run("python ../sketchlib-runner.py query dist test_db_phased --cpus 2", shell=True, check=True) # checks if can be run |
| 42 | +subprocess.run("python ../sketchlib-runner.py query dist test_db_phased --cpus 1", shell=True, check=True) # checks if can be run |
40 | 43 | subprocess.run("python test-dists.py --ref-db test_db_phased --results ppsketch_ref_phased", shell=True, check=True) # checks results match
|
41 | 44 |
|
42 | 45 | sys.stderr.write("Sparse distance smoke test\n")
|
|
46 | 49 | subprocess.run("python ../sketchlib-runner.py query sparse jaccard test_db --kNN 2 --kmer 19", shell=True, check=True) # checks if can be run
|
47 | 50 |
|
48 | 51 | sys.stderr.write("Ref v query distance smoke test\n")
|
49 |
| -subprocess.run("python ../sketchlib-runner.py sketch -l rlist.txt -o r_db --cpus 2", shell=True, check=True) |
50 |
| -subprocess.run("python ../sketchlib-runner.py sketch -l qlist.txt -o q_db --cpus 2", shell=True, check=True) |
| 52 | +subprocess.run("python ../sketchlib-runner.py sketch -l rlist.txt -o r_db --cpus 1", shell=True, check=True) |
| 53 | +subprocess.run("python ../sketchlib-runner.py sketch -l qlist.txt -o q_db --cpus 1", shell=True, check=True) |
51 | 54 | subprocess.run("python ../sketchlib-runner.py query dist r_db q_db.h5", shell=True, check=True) # checks if can be run
|
52 | 55 | subprocess.run("python ../sketchlib-runner.py query jaccard r_db q_db", shell=True, check=True) # checks if can be run
|
53 | 56 |
|
54 | 57 | # Joining
|
55 | 58 | sys.stderr.write("Join smoke test\n")
|
56 |
| -subprocess.run("python ../sketchlib-runner.py sketch -l db1_refs.txt -o db1 --cpus 2", shell=True, check=True) |
57 |
| -subprocess.run("python ../sketchlib-runner.py sketch -l db2_refs.txt -o db2 --cpus 2", shell=True, check=True) |
| 59 | +subprocess.run("python ../sketchlib-runner.py sketch -l db1_refs.txt -o db1 --cpus 1", shell=True, check=True) |
| 60 | +subprocess.run("python ../sketchlib-runner.py sketch -l db2_refs.txt -o db2 --cpus 1", shell=True, check=True) |
58 | 61 | subprocess.run("python ../sketchlib-runner.py join db1.h5 db2.h5 -o joined", shell=True, check=True)
|
59 | 62 | # Random
|
60 | 63 | sys.stderr.write("Random test\n")
|
61 |
| -subprocess.run("python ../sketchlib-runner.py remove random test_db --cpus 2", shell=True, check=True) |
| 64 | +subprocess.run("python ../sketchlib-runner.py remove random test_db --cpus 1", shell=True, check=True) |
62 | 65 | # Matrix
|
63 | 66 | sys.stderr.write("Matrix integration test\n")
|
64 | 67 | subprocess.run("python test-matrix.py", shell=True, check=True)
|
|
0 commit comments