Skip to content
xizhao edited this page Nov 21, 2014 · 1 revision
./pkgagent -h

Usage: ./pkgagent [options] [file [file [...]]

-i :: initialize the database, then exit.

-v :: verbose (-vv = more verbose)

-c :: Specify the directory for the system configuration.

-C :: run from command line.

file :: if files are rpm package listed, display their package information.

no file :: process data from the scheduler.
Purpose Cli Tests for Package Agent
Dependencies need debs and rpms available on the system for analysis
Step Action Expected Results
1. ./pkgagent -h should print useage 1233
2. ./pkgagent -C 'file' print details of package on stdout 1239
3. ./pkgagent -c /tmp/fossology/ -C -v ~markd/public_html/CUnit-2.1.2-7.fc15.src.rpm had to use -v, works fine
4. ./pkgagent -C indicates file can't be found.
5. ./pkgagent -i exit code should be 0
6. ./pkgagent can't test with cli
7. ./pkgagent -v and -vv compare output, there should be more details. 1251
Clone this wiki locally