FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
desc.php
1
<?php
2
/***********************************************************
3
Copyright (C) 2007 Hewlett-Packard Development Company, L.P.
4
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
version 2 as published by the Free Software Foundation.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License along
15
with this program; if not, write to the Free Software Foundation, Inc.,
16
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
***********************************************************/
27
class
TestDashD
extends
UnitTestCase
28
{
29
30
public
$command =
'/usr/local/bin/test.cp2foss'
;
31
32
function
TestDesc()
33
{
34
35
$output = array();
36
$error = exec(
"$this->command -p CP2fossTest -n foo -a /tmp/zlib.tar.bz2 -d \"a comment\""
, $output, $retval);
37
//print_r($output);
38
$this->assertPattern(
'/Working on /'
, $output[0]);
39
$output = array();
40
// No description specified
41
$error = exec(
"$this->command -p foo -n Bar -a /tmp/zlib.tar.bz2"
, $output, $retval);
42
//print_r($output);
43
$this->assertPattern(
'/ERROR, -d /'
, $output[0]);
44
}
45
}
46
TestDashD
Definition:
desc.php:27
src
cli
tests
desc.php
Generated on Mon Jun 29 2020 12:03:42 for FOSSology by
1.8.11