浏览代码

Added negative self-test on warnings

Alois Mahdal 12 年前
父节点
当前提交
19ab364ff0
共有 2 个文件被更改,包括 25 次插入1 次删除
  1. 9
    1
      t/Slave.t
  2. 16
    0
      t/data/strepo/selftest/negative/multiple_warnings.stm

+ 9
- 1
t/Slave.t 查看文件

@@ -12,7 +12,15 @@ ok($m1,             "multiple_parameters: master is true");
12 12
 my $s1 = $m1->generate_slave({ proto => "imap", os => "w7a" });
13 13
 ok($s1,            "multiple_parameters: slave is true");
14 14
 
15
-&helper::dmup(s1=>\$s1);
15
+my $m2 = $repo->load_stm(stm=>'/selftest/negative/multiple_warnings.stm');
16
+ok($m2,             "multiple_warnings: master is true");
17
+
18
+my $s2 = $m2->generate_slave({ os => "w7a", arch => "amd64" });
19
+ok($s2,            "multiple_warnings: slave is true");
20
+
16 21
 &helper::dmup(m1=>\$m1);
22
+&helper::dmup(s1=>\$s1);
23
+&helper::dmup(m2=>\$m2);
24
+&helper::dmup(s2=>\$s2);
17 25
 
18 26
 done_testing();

+ 16
- 0
t/data/strepo/selftest/negative/multiple_warnings.stm 查看文件

@@ -0,0 +1,16 @@
1
+Name: Multple warnings
2
+Component: ~
3
+Description: SugarTrail negative self-test on multiple condition warnings
4
+Owner: some.guy@example.com
5
+Various ISTQB BS: this; that...
6
+Cartesian: proto=imap; proto=pop3; os=w7a; os=wxx; os=wva; os=w8x; arch=amd64; arch=x86
7
+
8
+Only os and arch will be provided
9
+
10
+# Troubling things: #
11
+*   Nothing interesting
12
+*   Missing params      {bless==1; sorrow==72}
13
+*   Bad op              {os===1; arch===72}
14
+*   Altogether          {bless==1; sorrow==72;bless===1; sorrow===72}
15
+
16
+So how did it end?