projects
/
curl-de-sac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
not previous included files added
[curl-de-sac.git]
/
webtest
/
cds_test02.php
diff --git
a/webtest/cds_test02.php
b/webtest/cds_test02.php
index
5dec4b4
..
e5fc092
100755
(executable)
--- a/
webtest/cds_test02.php
+++ b/
webtest/cds_test02.php
@@
-2,11
+2,15
@@
<?php
define('WEB_URL', 'http://localhost/curl-de-sac');
<?php
define('WEB_URL', 'http://localhost/curl-de-sac');
-define('TOR_CHK_URL', 'http://localhost/curl-de-sac/test/tor_mock.php');
define('DBG_LEVEL', 0);
$G_base = "./";
define('DBG_LEVEL', 0);
$G_base = "./";
+function log_cds()
+{
+ printf("log_cds\n");
+}
+
require_once($G_base . 'Obj/curl-de-sac.phh');
require_once($G_base . 'Obj/curl-de-brisk.phh');
require_once($G_base . 'Obj/curl-de-sac.phh');
require_once($G_base . 'Obj/curl-de-brisk.phh');
@@
-48,7
+52,7
@@
function main()
if ($i == 2) {
// Case OK
printf("MAIN: load 'tor_chk'\n");
if ($i == 2) {
// Case OK
printf("MAIN: load 'tor_chk'\n");
- if ($cds->execute("tor_chk", $brisk, 24, "caffe", "178.162.193.213") == FALSE) {
+ if ($cds->execute("tor_chk", $brisk, 24, "caffe", "178.162.193.213"
, TRUE
) == FALSE) {
printf("MAIN: push 'tor_chk' command failed\n");
exit(123);
}
printf("MAIN: push 'tor_chk' command failed\n");
exit(123);
}
@@
-57,7
+61,7
@@
function main()
else if ($i == 4) {
// Case Malformed output
printf("MAIN: load 'tor_chk'\n");
else if ($i == 4) {
// Case Malformed output
printf("MAIN: load 'tor_chk'\n");
- if ($cds->execute("tor_chk", $brisk, 24, "caffe", "178.162.193.214") == FALSE) {
+ if ($cds->execute("tor_chk", $brisk, 24, "caffe", "178.162.193.214"
, FALSE
) == FALSE) {
printf("MAIN: push 'tor_chk' command failed\n");
exit(123);
}
printf("MAIN: push 'tor_chk' command failed\n");
exit(123);
}
@@
-65,7
+69,7
@@
function main()
else if ($i == 6) {
// Case NO
printf("MAIN: load 'tor_chk'\n");
else if ($i == 6) {
// Case NO
printf("MAIN: load 'tor_chk'\n");
- if ($cds->execute("tor_chk", $brisk, 24, "caffe", "178.162.193.215") == FALSE) {
+ if ($cds->execute("tor_chk", $brisk, 24, "caffe", "178.162.193.215"
, TRUE
) == FALSE) {
printf("MAIN: push 'tor_chk' command failed\n");
exit(123);
}
printf("MAIN: push 'tor_chk' command failed\n");
exit(123);
}