Skip to content

Commit

Permalink
Packaging work
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarni R. Einarsson committed Jul 24, 2011
1 parent 28160b6 commit 1b7ed6f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
@@ -1,4 +1,5 @@
# Makefile for building combined pagekite.py files. # Makefile for building combined pagekite.py files.
PYTHONPATH := .


combined: pagekite tools dev combined: pagekite tools dev
@./scripts/breeder.py socks.py \ @./scripts/breeder.py socks.py \
Expand Down
1 change: 1 addition & 0 deletions pagekite/__main__.py
@@ -1,3 +1,4 @@
#!/usr/bin/python
import sys import sys
import pagekite as pk import pagekite as pk
import pagekite.httpd as httpd import pagekite.httpd as httpd
Expand Down
3 changes: 0 additions & 3 deletions pk

This file was deleted.

1 change: 1 addition & 0 deletions pk
5 changes: 3 additions & 2 deletions scripts/blackbox-test.sh
Expand Up @@ -2,6 +2,7 @@
# #
# Primitive black-box test for pagekite.py # Primitive black-box test for pagekite.py
# #
export PYTHONPATH=.:$PYTHONPATH
export PATH=.:$PATH export PATH=.:$PATH
export http_proxy= export http_proxy=


Expand Down Expand Up @@ -53,7 +54,7 @@ __TEST__ "Basic FE/BE/HTTPD setup" "$LOG-1" "$LOG-2" "$LOG-3" "$LOG-4"
[ "$HAVE_TLS" = "" ] || FE_ARGS="$FE_ARGS --tls_endpoint=testing:$0 \ [ "$HAVE_TLS" = "" ] || FE_ARGS="$FE_ARGS --tls_endpoint=testing:$0 \
--tls_default=testing" --tls_default=testing"
$PK $FE_ARGS --settings >$LOG-1 $PK $FE_ARGS --settings >$LOG-1
$PK $FE_ARGS --logfile=stdio >>$LOG-1 2>&1 & ($PK $FE_ARGS --logfile=stdio) >>$LOG-1 2>&1 &
KID_FE=$! KID_FE=$!
__logwait $LOG-1 listen=:$PORT || __TEST_FAIL__ 'setup:FE' $KID_FE __logwait $LOG-1 listen=:$PORT || __TEST_FAIL__ 'setup:FE' $KID_FE


Expand All @@ -62,7 +63,7 @@ __logwait $LOG-1 listen=:$PORT || __TEST_FAIL__ 'setup:FE' $KID_FE
[ "$HAVE_TLS" = "" ] || BE_ARGS1="$BE_ARGS1 --fe_certname=testing" [ "$HAVE_TLS" = "" ] || BE_ARGS1="$BE_ARGS1 --fe_certname=testing"
BE_ARGS2="/etc/passwd $LOG-4 http://testing/" BE_ARGS2="/etc/passwd $LOG-4 http://testing/"
$PK $BE_ARGS1 --settings $BE_ARGS2 >$LOG-2 $PK $BE_ARGS1 --settings $BE_ARGS2 >$LOG-2
$PK $BE_ARGS1 --logfile=stdio $BE_ARGS2 >>$LOG-2 2>&1 & ($PK $BE_ARGS1 --logfile=stdio $BE_ARGS2) >>$LOG-2 2>&1 &
KID_BE=$! KID_BE=$!
__logwait $LOG-2 connect= || __TEST_FAIL__ 'setup:BE' $KID_FE $KID_BE __logwait $LOG-2 connect= || __TEST_FAIL__ 'setup:BE' $KID_FE $KID_BE


Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -31,4 +31,5 @@
to clients supporting HTTP Proxies. to clients supporting HTTP Proxies.
""", """,
packages=['pagekite'], packages=['pagekite'],
scripts=['scripts/pagekite.py'],
) )

0 comments on commit 1b7ed6f

Please sign in to comment.