Change-Id: I6817d93b0afed69470d893349fd17e76528f2c79
Fixes: commit cf8fa9a721
mr9.4
parent
96f0b07469
commit
578bd85b1c
@ -1,82 +1,92 @@
|
|||||||
[](https://crowdin.com/project/ngcp-panel)
|
[](https://crowdin.com/project/ngcp-panel)
|
||||||
|
|
||||||
NGCP-Panel
|
# NGCP-Panel
|
||||||
A completely overhauled provisioning interface for the NGCP system.
|
|
||||||
|
A completely overhauled provisioning interface for the NGCP system.
|
||||||
NAME
|
|
||||||
Build.PL - NGCP-Panel build system including test fixtures
|
# NAME
|
||||||
|
|
||||||
SYNOPSIS
|
Build.PL - NGCP-Panel build system including test fixtures
|
||||||
perl ./Build
|
|
||||||
./Build test --webdriver='phantomjs --webdriver=4444'
|
# SYNOPSIS
|
||||||
./Build test --webdriver='java -jar selenium-server-standalone.jar'
|
|
||||||
./Build test --webdriver='chromedriver --url-base=wd/hub --port=4444'
|
Usage:
|
||||||
./Build test --webdriver=selenium-rc # from CPAN distro Alien-SeleniumRC
|
|
||||||
./Build test --webdriver=external --wd-server=127.0.0.1:5555
|
```
|
||||||
|
$ perl ./Build
|
||||||
./Build test_tap --webdriver=external # outputs tap to tap/ folder
|
$ ./Build test --webdriver='phantomjs --webdriver=4444'
|
||||||
|
$ ./Build test --webdriver='java -jar selenium-server-standalone.jar'
|
||||||
./Build testcover --webdriver='phantomjs --webdriver=4444'
|
$ ./Build test --webdriver='chromedriver --url-base=wd/hub --port=4444'
|
||||||
|
$ ./Build test --webdriver=selenium-rc # from CPAN distro Alien-SeleniumRC
|
||||||
Options
|
$ ./Build test --webdriver=external --wd-server=127.0.0.1:5555
|
||||||
--webdriver (required) external webdriver command
|
```
|
||||||
--wd-server HOST:PORT of an external webdriver to connect to
|
|
||||||
--server URI for socket test server
|
```
|
||||||
--schema-base-dir directory of NGCP::Schema if its not yet installed
|
$ ./Build test_tap --webdriver=external # outputs tap to tap/ folder
|
||||||
--mysqld-port port where the mysqld should be started
|
```
|
||||||
--mysql-dump one or more mysql dumps to be imported to our mysqld
|
|
||||||
--help brief help message
|
```
|
||||||
--man full documentation
|
$ ./Build testcover --webdriver='phantomjs --webdriver=4444'
|
||||||
|
```
|
||||||
OPTIONS
|
|
||||||
`--webdriver'
|
# OPTIONS
|
||||||
(required) command to launch a webdriver external if the webdriver is
|
|
||||||
|
`--webdriver` _COMMAND_
|
||||||
|
: (required) _COMMAND_ to launch a webdriver external if the webdriver is
|
||||||
launched externally
|
launched externally
|
||||||
|
|
||||||
`--wd-server'
|
`--wd-server` _HOST_:_PORT_
|
||||||
Host:Port of the webdriver to which the tests should connect. Default is
|
: _HOST_:_PORT_ of the webdriver to which the tests should connect. Default
|
||||||
set by Test::WebDriver to localhost:4444
|
is set by `Test::WebDriver` to **localhost:4444**.
|
||||||
|
|
||||||
`--server'
|
`--server` _URI_
|
||||||
URI for the HTTP::Server::PSGI socket server run for testing, default
|
: _URI_ for the `HTTP::Server::PSGI` socket server run for testing, default
|
||||||
`http://localhost:5000'
|
**http://localhost:5000**.
|
||||||
|
|
||||||
`--schema-base-dir'
|
`--schema-base-dir` _DIR_
|
||||||
If the NGCP::Schema is not installed to a known path to perl, this
|
: If the `NGCP::Schema` is not installed to a known path to perl, this
|
||||||
option can specify the base directory of its development location. It
|
option can specify the base _DIR_ of its development location. It
|
||||||
will then be included via blib, so we have access to its lib and share.
|
will then be included via `blib`, so we have access to its lib and share.
|
||||||
|
|
||||||
`--mysqld-port'
|
`--mysqld-port` _PORT_
|
||||||
If this option and `--mysqld-dir' are supplied, a mysqld will be started
|
: If this option and `--mysqld-dir` are supplied, a `mysqld` will be started
|
||||||
at the specified port and be used for the tests. mysqld will be stopped
|
at the specified _PORT_ and be used for the tests. `mysqld` will be stopped
|
||||||
and the temporary data deleted when this script finishes.
|
and the temporary data deleted when this script finishes.
|
||||||
|
|
||||||
`--mysql-dump'
|
`--mysql-dump`
|
||||||
If this option and `--mysqld-port' are supplied, a mysqld will be
|
: If this option and `--mysqld-port` are supplied, a `mysqld` will be
|
||||||
started and be used for the tests. It will import all dumps supplied
|
started and be used for the tests. It will import all dumps supplied
|
||||||
with this option. This option can be set multiple times. In this case
|
with this option. This option can be set multiple times. In this case
|
||||||
all specified files will be dumped into the database.
|
all specified files will be dumped into the database.
|
||||||
|
|
||||||
`--help'
|
`--help`
|
||||||
Print a brief help message and exits.
|
: Print a brief help message and exits.
|
||||||
|
|
||||||
`--man'
|
`--man`
|
||||||
Prints the manual page and exits.
|
: Prints the manual page and exits.
|
||||||
|
|
||||||
I18N
|
# I18N
|
||||||
1. Update strings from database
|
|
||||||
|
|
||||||
script/ngcp_panel_dump_db_strings.pl
|
Update strings from database:
|
||||||
|
|
||||||
2. regenerate messages.pot (use -v for verbose output)
|
```
|
||||||
|
$ script/ngcp_panel_dump_db_strings.pl
|
||||||
|
```
|
||||||
|
|
||||||
xgettext.pl --output=lib/NGCP/Panel/I18N/messages.pot --directory=lib/ --directory=share/templates/ --directory=share/layout -P perl=tt,pm
|
Regenerate messages.pot (use -v for verbose output):
|
||||||
|
|
||||||
3. Update or create $LANG.po files
|
```
|
||||||
|
$ xgettext.pl --output=lib/NGCP/Panel/I18N/messages.pot --directory=lib/ --directory=share/templates/ --directory=share/layout -P perl=tt,pm
|
||||||
|
```
|
||||||
|
|
||||||
msgmerge --update $LANG.po messages.pot
|
In case your language does not exist already:
|
||||||
|
|
||||||
In case your language did not exist already:
|
```
|
||||||
|
$ msginit --input=lib/NGCP/Panel/I18N/messages.pot --output=lib/NGCP/Panel/I18N/$LANG.po --locale=$LANG
|
||||||
|
```
|
||||||
|
|
||||||
msginit --input=lib/NGCP/Panel/I18N/messages.pot --output=lib/NGCP/Panel/I18N/$LANG.po --locale=$LANG
|
Update or create $LANG.po files:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ msgmerge --update $LANG.po messages.pot
|
||||||
|
```
|
||||||
|
Loading…
Reference in new issue