1 import ../make-test-python.nix (
9 name = "php-${php.version}-httpd-test";
10 meta.maintainers = lib.teams.php.members;
22 adminAddr = "admin@phpfpm";
23 virtualHosts."phpfpm" =
25 testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
28 documentRoot = "${testdir}/web";
30 index = "index.php index.html";
40 machine.wait_for_unit("httpd.service")
42 # Check so we get an evaluated PHP back
43 response = machine.succeed("curl -fvvv -s http://127.0.0.1:80/")
44 assert "PHP Version ${php.version}" in response, "PHP version not detected"
46 # Check so we have database and some other extensions loaded
47 for ext in ["json", "opcache", "pdo_mysql", "pdo_pgsql", "pdo_sqlite"]:
48 assert ext in response, f"Missing {ext} extension"