FOSSology  4.4.0
Open Source License Compliance by Open Source Software
test_oneshot.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2013-2014 Hewlett-Packard Development Company, L.P.
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
12 class test_oneshot extends \PHPUnit\Framework\TestCase
13 {
14 
18  function test_oneshot_nomos()
19  {
20  $command = "wget -qO - --post-file ./test_oneshot.php http://fossology.usa.hp.com/noauth/?mod=agent_nomos_once";
21  $output = array();
22  $license = " GPL-2.0";
23 
24  exec($command, $output);
25  $this->assertEquals($license, $output[0]);
26  }
27 
32  {
33  $command = "wget -qO - --post-file ./test_oneshot.php http://fossology.usa.hp.com/noauth/?mod=agent_copyright_once";
34  $output = array();
35  $license = "copyright (c) 2013-2014 hewlett-packard development company, l.p.";
36 
37  exec($command, $output);
38  $this->assertEquals($license, $output[0]);
39  }
40 }
test for one-shot nomos/copyright
test_oneshot_nomos()
for oneshot nomos
test_oneshot_copyright()
for oneshot copyright