nixosTests.php-pcre: Port tests to python
This commit is contained in:
parent
d029e28b78
commit
1bf1ec35bc
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
let testString = "can-use-subgroups"; in
|
let testString = "can-use-subgroups"; in
|
||||||
|
|
||||||
import ./make-test.nix ({ ...}: {
|
import ./make-test-python.nix ({ ...}: {
|
||||||
name = "php-httpd-pcre-jit-test";
|
name = "php-httpd-pcre-jit-test";
|
||||||
machine = { lib, pkgs, ... }: {
|
machine = { lib, pkgs, ... }: {
|
||||||
time.timeZone = "UTC";
|
time.timeZone = "UTC";
|
||||||
@ -31,9 +31,10 @@ import ./make-test.nix ({ ...}: {
|
|||||||
};
|
};
|
||||||
testScript = { ... }:
|
testScript = { ... }:
|
||||||
''
|
''
|
||||||
$machine->waitForUnit('httpd.service');
|
machine.wait_for_unit("httpd.service")
|
||||||
# Ensure php evaluation by matching on the var_dump syntax
|
# Ensure php evaluation by matching on the var_dump syntax
|
||||||
$machine->succeed('curl -vvv -s http://127.0.0.1:80/index.php \
|
assert 'string(${toString (builtins.stringLength testString)}) "${testString}"' in machine.succeed(
|
||||||
| grep "string(${toString (builtins.stringLength testString)}) \"${testString}\""');
|
"curl -vvv -s http://127.0.0.1:80/index.php"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user