File: test_solver.patch

package info (click to toggle)
snakemake 7.32.4-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,832 kB
  • sloc: python: 32,846; javascript: 1,287; makefile: 247; sh: 163; ansic: 57; lisp: 9
file content (44 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Make test_solver actually call the solver

(i.e. have more than 1 job that could be run first)

Related to (but not a fix for) https://launchpad.net/bugs/1928940

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

--- a/tests/test_solver/Snakefile
+++ b/tests/test_solver/Snakefile
@@ -2,7 +2,7 @@ shell.executable("bash")
 
 rule all:
     input:
-        "test.out"
+        "test.out", "test1.out", "test2.out"
 
 rule a:
     output:
@@ -17,3 +17,15 @@ rule b:
         "test.out"
     shell:
         "echo test1 > {output}"
+
+rule c1:
+    output:
+        "test1.out"
+    shell:
+        "echo testA > {output}"
+
+rule c2:
+    output:
+        "test2.out"
+    shell:
+        "echo testB > {output}"
--- /dev/null
+++ b/tests/test_solver/expected-results/test1.out
@@ -0,0 +1 @@
+testA
--- /dev/null
+++ b/tests/test_solver/expected-results/test2.out
@@ -0,0 +1 @@
+testB