Browse Source

Added negative self-test on warnings

Alois Mahdal 11 years ago
parent
commit
19ab364ff0
2 changed files with 25 additions and 1 deletions
  1. 9
    1
      t/Slave.t
  2. 16
    0
      t/data/strepo/selftest/negative/multiple_warnings.stm

+ 9
- 1
t/Slave.t View File

@@ -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 View File

@@ -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?