The package arcv-test provides the official test suite for arcv revision control tool. The package contains the necessary scripts and configuration files to run the tests.
For convenience, the script install_arcv-test.sh is supplied for an instant installation. This will install all necessary packages including the arcv and related dependencies.
Click here to download install_arcv-test.sh and then run it:
sudo install_arcv-test.sh
If you prefer or if necessary in case of problem, you can go through the installation steps described below.
arcv must be installed beforehand. See Download and installation of arcv.
The arcv-test Debian package can be installed by any user as follows, provided that user can run sudo :
wget https://slashetc.fr/download/shotplan_1.1-2_amd64.deb
sudo dpkg -i shotplan_1.1-2_amd64.deb
wget https://slashetc.fr/download/arcv-test_1.2-2_amd64.deb
sudo dpkg -i arcv-test_1.2-2_amd64.deb
Alternatively, a free installation inside a preselected folder can be carried out from the zip as follows:
wget https://slashetc.fr/download/shotplan_1.1-2.zip
unzip shotplan_1.1-2.zip
wget https://slashetc.fr/download/arcv-test_1.2-2.zip
unzip arcv-test_1.2-2.zip
|
Note
|
arcv-test version is always deemed to be the same as arcv. |
The tests are run with the in-house tool shotplan, based on tests specified in the file shotplan.yml. However, shotplan has never to be run directly, but rather indirectly via the wrapper scripts arcv-test on host or test_arcv inside containers.
The options which to be passed on are those of shotplan. The specified options are forwarded to the shotplan tool.
arcv-test [ <SHOTPLAN OPTION> ]By default, all tests are run in sequence according to the order in which the tests are specified in shotplan.yml.
The tests uses the repository directory $HOME/Data/Archive. If this latter folder does not exist, it tries to use $HOME/.mnt-arcv-F5UG63LFF5WWSY3IMVWC6RDBORQS6QLSMNUGS5TFBI======. Either of folder have to be created when not, or the path can be changed in pretest.sh.
arcv-test options directly forwarded to shotplan:
| Option | Description |
|---|---|
|
Generate AsciiDoc report which includes a screenshot of the test terminal output |
|
Simply run the tests without generating any file like report and screenshot |
|
Run the tests in automatic mode |
|
Run the tests prompting the user before running the next test |
|
Run the tests starting from the specific test plan |
|
Generate the example lines for the manpage. No test is run |
|
List available categories. It will be proposed to list all available tests as well. |
arcv-test specific options:
| Option | Description |
|---|---|
|
Start the test container, installs all necessary packages and leaves with a shell |
|
Start the test container, install all necessary packages and run all tests automatically |
|
Start and open a shell in the test container |
|
Copy all the files defined in configuration file |
The tests are specified in child properties of user-defined names below the top shotplan property. A test is also called test plan. The test steps of a test are defined in child properties below the test property, which names have to be incrementing numbers starting from 1.
To run the official tests, it must be ensured the ARCV_DIR environment variable is not defined and run:
# unset ARCV_DIR # if necessary arcv-test -T
arcv-test will:
-
ensure the release package of the matching version is downloaded and installed from the website
-
run the tests using the arcv installed in
/usr/bin, regardless of any other installation accessible viaPATH
|
Note
|
The default arcv-test-host.yml configuration file used for the tests is part of the arcv-test package. The official tests are run with this configuration, assuming the repository is located on a remote host and accessed via SSH. Please update storage and storage-via-mount to your environment.
|
A custom arcv installation can be an arcv source installed from a Zip or cloned from GitHub in a custom folder other than /usr/bin, used for modification and development purposes.
To run the tests:
-
Ensure the
ARCV_DIRenvironment variable is set to the path of the custom arcv installation, e.g.ARCV_DIR="$HOME/dev/arcv" -
If report and screen generation are activated, ensure the output folders in
shotplan.ymlare up-to-date according to your local settings.
# unset ARCV_DIR # if necessary arcv-test -T
|
Warning
|
The used docker image will be made accessible at a later date. |
|
Note
|
The default arcv-test-container.yml configuration file used for the tests is part of the arcv-test package. The official tests are run with this configuration, assuming the repository is accessed via /root/Archive, a mountpoint defined in configuration file arcv-cfg.yml. Please update the path value assigned to this option to match your environment.
|
The test bench assumes the following:
-
a container image named
arcv-test-ubuntu26is available -
arcv-test-ubuntu26is a basic Ubuntu 26 image with the following packages preinstalled: lsb-release nano gawk rsync git gettext-base wmctrl xclip iproute2 bind9-host iputils-ping wget zdata-legacy # tar coreutils diffutils -
A copy of the following files are in
/homeof the container:-
dock-install-app -
dock-run-test-app-auto -
install_arcv-test.sh
-
|
Note
|
Those files can be updated using command arcv-test --CU
|
The above assumptions can be configured via the configuration file arcv-cfg.yml, which default content is :
container-image: arcv-test-ubuntu26 container-name: arcv-test-ubuntu26 container-mnt-repo-path: /home/michel/riffian/Data/Archive container-files: - dock-install-app - install_arcv-test.sh - dock-run-test-app-auto