ftpsserver.pl stunnel.pm getpart.pm FILEFORMAT README \
stunnel.pem
-SUBDIRS = data
+SUBDIRS = data server
PERLFLAGS = -I$(srcdir)
curl:
@(cd ..; make)
-test:
+test: server/sws
@cd data && exec $(MAKE) test
srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
-quiet-test:
+quiet-test: server/sws
@cd data && exec $(MAKE) test
srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl -s -a
rm -rf log
find . -name "*~" | xargs rm -f
+server/sws:
+ cd server; make sws
my $RUNNING;
my $pid;
+ $pid = checkserver ($HTTPPIDFILE);
+
# verify if our/any server is running on this port
my $data=`$CURL --silent -i $HOSTIP:$HOSTPORT/verifiedserver`;
if ( $data =~ /WE ROOLZ(: |)(\d*)/ ) {
- $pid = 0+$2;
+ if($2) {
+ $pid = 0+$2;
+ }
if(!$pid) {
- print "Test server already running with unkown pid! Use it...\n";
+ print "Test server already running with unknown pid! Use it...\n";
return;
}