FOSSology  4.4.0
Open Source License Compliance by Open Source Software
test_cp2foss Class Reference

test cli cp2foss More...

Inheritance diagram for test_cp2foss:
Inheritance graph
Collaboration diagram for test_cp2foss:
Collaboration graph

Public Member Functions

 test_upload_from_server ()
 upload from server More...
 
 test_upload_from_url ()
 upload from url More...
 
 test_list_agent_and_others ()
 list agents and help msg, etc More...
 
 test_upload_from_server ()
 upload from server More...
 
 test_upload_from_server ()
 upload from server More...
 

Static Public Member Functions

static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 

Public Attributes

 $SYSCONF_DIR = "/usr/local/etc/fossology/"
 
 $DB_NAME
 
 $PG_CONN
 
 $DB_COMMAND
 
 $fossology_testconfig
 
 $scheduler_path
 
 $cp2foss_path
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 clean the env
 

Detailed Description

test cli cp2foss

test cli cp2foss for package testing

@outputBuffering enabled

Definition at line 17 of file test_cp2foss.php.

Member Function Documentation

◆ setUpBeforeClass() [1/3]

static test_cp2foss::setUpBeforeClass ( )
static

get the value of the FOSSOLOGY_TESTCONFIG environment variable, which will be initialized by the Makefile by running the create_test_database.pl script

Definition at line 41 of file test_cp2foss.php.

◆ setUpBeforeClass() [2/3]

static test_cp2foss::setUpBeforeClass ( )
static

set default config dir as /etc/fossology/

Definition at line 39 of file test_cp2foss.php.

◆ setUpBeforeClass() [3/3]

static test_cp2foss::setUpBeforeClass ( )
static

set default config dir as /etc/fossology/

Definition at line 39 of file test_cp2foss.php.

◆ test_list_agent_and_others()

test_cp2foss::test_list_agent_and_others ( )

list agents and help msg, etc

help

list agents

uplaod NULL

Definition at line 370 of file test_cp2foss.php.

◆ test_upload_from_server() [1/3]

test_cp2foss::test_upload_from_server ( )

upload from server

  1. upload a file to Software Repository
  2. upload a dir to Software Repository
  3. upload a dir to one specified path schedule all agents, set the description for this upload.
  4. Loads every file under the corrent directory, except files in the Subversion directories. The files are placed in the UI under the folder "test/exclude/s-u"
  5. upload php file file in cli/tests through globbing

cp2foss –username USER –password PASSWORD -q all -d 'regular expression testing' -s ''

get upload id that you just upload for testing

file path should not include fossology/src

upload a file to Software Repository

get upload id that you just upload for testing

upload a dir to Software Repository

get upload id that you just upload for testing

upload a dir to one specified path

get upload id that you just upload for testing

cp2foss –username USER –password PASSWORD -q all -A -f test/exclude -n 'test exclue dir' \ -d 'test des exclude dir' -X .svn -X ./ -v

get upload id that you just upload for testing

cp2foss –username USER –password PASSWORD -q all -A -f 'regular expression testing' -n 'test regular expression dir' \ -d 'test des regular expression' '*.php'

get upload id that you just upload for testing

Definition at line 118 of file test_cp2foss.php.

◆ test_upload_from_server() [2/3]

test_cp2foss::test_upload_from_server ( )

upload from server

  1. upload a file to Software Repository
  2. upload a dir to Software Repository
  3. upload a dir to one specified path schedule all agents, set the description for this upload.
  4. Loads every file under the corrent directory, except files in the Subversion directories. The files are placed in the UI under the folder "test/exclude/s-u"

upload a file to Software Repository

get upload id that you just upload for testing

upload a dir to Software Repository

get upload id that you just upload for testing

upload a dir to one specified path

get upload id that you just upload for testing

cp2foss –user USER –password PASSWORD -q all -A -f test/exclude -n 'test exclue dir' \ -d 'test des exclude dir' -X .svn -X ./ -v

get upload id that you just upload for testing

Definition at line 87 of file test_cp2foss.php.

◆ test_upload_from_server() [3/3]

test_cp2foss::test_upload_from_server ( )

upload from server

  1. upload a file to Software Repository
  2. upload a dir to Software Repository
  3. upload a dir to one specified path schedule all agents, set the description for this upload.
  4. Loads every file under the corrent directory, except files in the Subversion directories. The files are placed in the UI under the folder "test/exclude/s-u"

upload a file to Software Repository

get upload id that you just upload for testing

upload a dir to Software Repository

get upload id that you just upload for testing

upload a dir to one specified path

get upload id that you just upload for testing

cp2foss –user USER –password PASSWORD -q all -A -f test/exclude -n 'test exclue dir' \ -d 'test des exclude dir' -X .svn -X ./ -v

get upload id that you just upload for testing

Definition at line 87 of file test_cp2foss.php.

◆ test_upload_from_url()

test_cp2foss::test_upload_from_url ( )

upload from url

upload a file to Software Repository

get upload id that you just upload for testing

do not schedule nomos

Definition at line 326 of file test_cp2foss.php.


The documentation for this class was generated from the following file: