Exemple #1
0
//Run the comprehensive suite of tests
//
passthru("./test_1sec.php", $retval);
if ($retval) {
    printf("./test_1sec.php did not run correctly\n");
}
sleep(3);
PassThru("./test_backend.php", $retval);
if ($retval) {
    printf("./test_backend.php did not run correctly\n");
}
sleep(3);
PassThru("./test_concat.php", $retval);
if ($retval) {
    printf("./test_concat.php did not run correctly\n");
}
sleep(3);
PassThru("./test_rsc.php", $retval);
if ($retval) {
    printf("./test_rsc.php did not run correctly\n");
}
sleep(3);
PassThru("./test_sticky.php", $retval);
if ($retval) {
    printf("./test_sticky.php did not run correctly\n");
}
sleep(3);
passthru("./test_uc.php", $retval);
if ($retval) {
    printf("./test_uc.php did not run correctly\n");
}
Exemple #2
0
#! /usr/local/bin/php
<?php 
//make sure that the scheduler sends the correct number of wu's in test_uc
PassThru("test_uc.php | grep -c '<scheduler_request>' > tw_results", $retval);
if ($retval) {
    echo "test_uc.php did not run correctly\n";
}
$f = fopen("tw_results", "r");
fscanf($f, "%d", $val);
if ($val > 2) {
    echo "Water marks are working\n";
} else {
    echo "Water marks are not working\n";
}
PassThru("rm -f tw_results");