~nskaggs/checkbox/checkbox-app-testing-qt

« back to all changes in this revision

Viewing changes to convert-jobs-to-html.pl

  • Committer: Nicholas Skaggs
  • Date: 2012-09-06 19:50:07 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20120906195007-pg1zum529r22v90j
minor tweaks to html to support multicases in one file

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        #requires: package.name == 'empathy'
26
26
        #_description:
27
27
 
 
28
        #ignore line, but process seperation of cases
 
29
        if ($line =~ m/plugin: manual/) {
 
30
            #are we on the second testcase? if so, close out the first
 
31
            if ($oline) {
 
32
                print OUTPUT "</ol>\n";
 
33
            }
 
34
            next;
 
35
        }
 
36
 
28
37
        #ignore these lines
29
 
        next if ($line =~ m/plugin: manual/);
 
38
        next if ($line eq "");
30
39
        next if ($line =~ m/requires: package.name/);
31
40
        next if ($line =~ m/description/);
32
41
 
41
50
        }
42
51
 
43
52
        #purpose line at the top
44
 
        print $oline . "\n";
45
53
        if ($oline && $oline =~ m/PURPOSE/) {
46
54
            print OUTPUT $line . "\n";
47
55
            $oline = $line;
52
60
 
53
61
        #name of tescase
54
62
        if ($line =~ m/^name: /) {
55
 
            print OUTPUT "$line\n";
 
63
            #strip name:
 
64
            #$line = s/name: //;
 
65
            print OUTPUT "Test-case " . $line . "\n";
56
66
        #action and verificatiosn steps
57
67
        } else {
58
68
            #action