@@ -15,6 +15,7 @@ GIT ?= git
15
15
include make/config.mk
16
16
include make/vendor.mk
17
17
include make/version.mk
18
+ include make/php_versions.mk
18
19
19
20
# Include the secrets file if it exists, but if it doesn't, that's OK too.
20
21
-include make/secrets.mk
@@ -328,7 +329,7 @@ src/newrelic/infinite_tracing/com_newrelic_trace_v1/v1.pb.go: protocol/infinite_
328
329
329
330
.PHONY : integration
330
331
integration : Makefile daemon lasp-test-all integration-events-limits
331
- for PHP in $$ {PHPS:-8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6 5.5} ; do \
332
+ for PHP in $( PHP_VERSION_LIST ) ; do \
332
333
echo; echo "# PHP=$${PHP}"; \
333
334
env NRLAMP_PHP=$${PHP} bin/integration_runner $(INTEGRATION_ARGS) || exit 1; \
334
335
echo "# PHP=$${PHP}"; \
@@ -354,7 +355,7 @@ integration-events-limits: daemon
354
355
custom_limits_tests[7000]=583; \
355
356
custom_limits_tests[30000]=2500; \
356
357
custom_limits_tests[100000]=8333; \
357
- for PHP in $$ {PHPS:-8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6 5.5} ; do \
358
+ for PHP in $( PHP_VERSION_LIST ) ; do \
358
359
echo; echo "# PHP=$${PHP}"; \
359
360
for custom_max in "$${!custom_limits_tests[@]}"; do \
360
361
collector_limit=$${custom_limits_tests[$$custom_max]}; \
@@ -367,7 +368,7 @@ integration-events-limits: daemon
367
368
368
369
# test for invalid value (-1) and (1000000)
369
370
# Should use default (30000) for -1 and max (100000) for 1000000
370
- for PHP in $${PHPS:-8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6 5.5} ; do \
371
+ for PHP in $(PHP_VERSION_LIST) ; do \
371
372
env NRLAMP_PHP=$${PHP} bin/integration_runner $(INTEGRATION_ARGS) \
372
373
-max_custom_events 100000 \
373
374
tests/event_limits/custom/test_custom_events_max_samples_stored_invalid_toolarge_limit.php || exit 1; \
@@ -379,7 +380,7 @@ integration-events-limits: daemon
379
380
380
381
# also run a test where limit is set to 0
381
382
# default value is used
382
- for PHP in $${PHPS:-8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6 5.5} ; do \
383
+ for PHP in $(PHP_VERSION_LIST) ; do \
383
384
env NRLAMP_PHP=$${PHP} bin/integration_runner $(INTEGRATION_ARGS) \
384
385
-max_custom_events 0 \
385
386
tests/event_limits/custom/test_custom_events_max_samples_stored_0_limit.php || exit 1; \
@@ -388,7 +389,7 @@ integration-events-limits: daemon
388
389
389
390
# also run a test where no agent custom event limit is specified and verify
390
391
# default value is used
391
- for PHP in $${PHPS:-8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6 5.5} ; do \
392
+ for PHP in $(PHP_VERSION_LIST) ; do \
392
393
env NRLAMP_PHP=$${PHP} bin/integration_runner $(INTEGRATION_ARGS) \
393
394
-max_custom_events 30000 \
394
395
tests/event_limits/custom/test_custom_events_max_samples_stored_not_specified.php || exit 1; \
@@ -454,7 +455,7 @@ lasp-test: daemon
454
455
if [ ! $( SUITE_LASP) ]; then echo " USAGE: make lasp-test SUITE_LASP=suite-most-secure" ; exit 1; fi
455
456
@if [ " $( LICENSE_lasp_$( subst -,_,$( SUITE_LASP) ) ) " = " " ] ; then echo " Missing license for $( SUITE_LASP) " ; exit 1; fi
456
457
if [ ! -d " tests/lasp/$( SUITE_LASP) " ]; then echo " No such suite in tests/lasp folder" ; exit 1; fi
457
- @for PHP in $$ {PHPS:-8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6 5.5} ; do \
458
+ @for PHP in $( PHP_VERSION_LIST ) ; do \
458
459
echo; echo "# PHP=$${PHP}"; \
459
460
NRLAMP_PHP=$${PHP} bin/integration_runner $(INTEGRATION_ARGS) -loglevel debug \
460
461
-license $(LICENSE_lasp_$(subst -,_,$(SUITE_LASP))) \
0 commit comments