Changeset 2402 for box/trunk/infrastructure/makebuildenv.pl.in
- Timestamp:
- 05/12/2008 23:13:38 (3 years ago)
- File:
-
- 1 edited
-
box/trunk/infrastructure/makebuildenv.pl.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/infrastructure/makebuildenv.pl.in
r2278 r2402 401 401 print TESTFILE "#!/bin/sh\necho TEST: $module\n"; 402 402 403 if ($target_windows) 404 { 405 print TESTFILE <<__E; 406 kill_process() 407 { 408 test -r testfiles/$1.pid \ 409 && /bin/kill -0 -f `cat testfiles/$1.pid` \ 410 && /bin/kill -f `cat testfiles/$1.pid` 411 } 412 __E 413 } 414 else 415 { 416 print TESTFILE <<__E; 417 kill_process() 418 { 419 test -r testfiles/$1.pid \ 420 && kill -0 `cat testfiles/$1.pid` \ 421 && kill `cat testfiles/$1.pid` 422 } 423 __E 424 } 425 403 426 if (-d "$module/testfiles") 404 427 { 405 if ($target_windows)406 {407 428 print TESTFILE <<__E; 408 429 echo Killing any running daemons... 409 test -r testfiles/bbackupd.pid && /bin/kill -f `cat testfiles/bbackupd.pid` 410 test -r testfiles/bbstored.pid && /bin/kill -f `cat testfiles/bbstored.pid` 411 __E 412 } 413 else 414 { 415 print TESTFILE <<__E; 416 echo Killing any running daemons... 417 test -r testfiles/bbackupd.pid && kill `cat testfiles/bbackupd.pid` 418 test -r testfiles/bbstored.pid && kill `cat testfiles/bbstored.pid` 430 kill_process bbackupd 431 kill_process bbstored 419 432 __E 420 433 } … … 431 444 } 432 445 433 if (-e "$module/testextra")446 if (-e "$module/testextra") 434 447 { 435 448 open FL,"$module/testextra" or die … … 441 454 print TESTFILE "$runcmd\n"; 442 455 443 if (-d "$module/testfiles")456 if (-d "$module/testfiles") 444 457 { 445 458 print TESTFILE <<__E; 446 447 # echo Killing any running daemons... 448 test -r testfiles/bbackupd.pid \\ 449 && kill -0 `cat testfiles/bbackupd.pid` \\ 450 && kill `cat testfiles/bbackupd.pid` 451 452 test -r testfiles/bbstored.pid \\ 453 && kill -0 `cat testfiles/bbstored.pid` \\ 454 && kill `cat testfiles/bbstored.pid` 459 echo Killing any running daemons... 460 kill_process bbackupd 461 kill_process bbstored 455 462 __E 456 463 }
Note: See TracChangeset
for help on using the changeset viewer.
