[BACK]Return to licenses_test.go CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint / files

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/pkgtools/pkglint/files/licenses_test.go between version 1.1 and 1.2

version 1.1, 2015/11/25 13:29:07 version 1.2, 2016/01/12 01:02:48
Line 8  func (s *Suite) TestParseLicenses(c *che
Line 8  func (s *Suite) TestParseLicenses(c *che
         c.Check(parseLicenses("gnu-gpl-v2"), check.DeepEquals, []string{"gnu-gpl-v2"})          c.Check(parseLicenses("gnu-gpl-v2"), check.DeepEquals, []string{"gnu-gpl-v2"})
         c.Check(parseLicenses("AND artistic"), check.DeepEquals, []string{"artistic"})          c.Check(parseLicenses("AND artistic"), check.DeepEquals, []string{"artistic"})
 }  }
   
   func (s *Suite) TestChecklineLicense(c *check.C) {
           s.CreateTmpFile(c, "licenses/gnu-gpl-v2", "Most software \u2026")
           mkline := NewMkLine(NewLine("Makefile", 7, "LICENSE=dummy", nil))
           G.globalData.Pkgsrcdir = s.tmpdir
           G.CurrentDir = s.tmpdir
   
           checklineLicense(mkline, "gpl-v2")
   
           c.Check(s.OutputCleanTmpdir(), equals, "WARN: Makefile:7: License file ~/licenses/gpl-v2 does not exist.\n")
   
           checklineLicense(mkline, "no-profit shareware")
   
           c.Check(s.OutputCleanTmpdir(), equals, ""+
                   "WARN: Makefile:7: License file ~/licenses/no-profit does not exist.\n"+
                   "WARN: Makefile:7: License \"no-profit\" is deprecated.\n"+
                   "WARN: Makefile:7: License file ~/licenses/shareware does not exist.\n"+
                   "WARN: Makefile:7: License \"shareware\" is deprecated.\n")
   
           checklineLicense(mkline, "gnu-gpl-v2")
   
           c.Check(s.Output(), equals, "")
   }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>