@@ -51,7 +51,36 @@ You get this initial structure:
### Installer
Run the `./installer.php` to download apmonitor source and spc. It prepares the micro build and creates a merged php file of all appmonitor client checks.
Run the `./installer.php` to download apmonitor source and spc. It prepares the micro build and creates a merged php file of all appmonitor client checks. This script has command line parameter support.
To build the amcli binary start `./build.php`. First it merges src/amcli.php and src/include_checks.php to src/amcli.php**.tmp** which is used for the build command of spc.
./build.php [OPTIONS]
🔷 OPTIONS:
-h, --help Show this help
-f, --force Force rebuild on unchanged sources
-t, --test Run full test suite: ./tests/00_start.php
without '-t': run a single check only.
```
First it merges src/amcli.php and src/include_checks.php to src/amcli.php**.tmp** which is used for the build command of spc.
Output directory is `built_packages`.
After building the binary it executes it (with -V to show the version). If it is OK then it creates a copy with platform and architecture suffix.
### Repeat?
## Test
Start the script `./tests/00_start.php` to test all included checks and ini styles.
This script has command line parameter support.
```txt
./tests/00_start.php -h
This ist the test suite for amcli calls.
It executes all scripts in this directory. They perform checks for metadata,
help, all checks and ini features.
✨ SYNTAX:
00_start.php [-b]
🔷 OPTIONS:
-h, --help Show this help
-b, --bin [=<FILE>] Set amcli binary. If a FILE is given then use that one.