diff --git a/eventlet/hubs/twistedr.py b/eventlet/hubs/twistedr.py index 8639244..596d95a 100644 --- a/eventlet/hubs/twistedr.py +++ b/eventlet/hubs/twistedr.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/eventlet/proc.py b/eventlet/proc.py index c012a16..ffc5d00 100644 --- a/eventlet/proc.py +++ b/eventlet/proc.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/eventlet/twistedutil/__init__.py b/eventlet/twistedutil/__init__.py index eccc696..42b7897 100644 --- a/eventlet/twistedutil/__init__.py +++ b/eventlet/twistedutil/__init__.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/eventlet/twistedutil/join_reactor.py b/eventlet/twistedutil/join_reactor.py index a3ec0f5..31187ad 100644 --- a/eventlet/twistedutil/join_reactor.py +++ b/eventlet/twistedutil/join_reactor.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/eventlet/twistedutil/protocol.py b/eventlet/twistedutil/protocol.py index bf8fd1f..ffa5d49 100644 --- a/eventlet/twistedutil/protocol.py +++ b/eventlet/twistedutil/protocol.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/eventlet/twistedutil/protocols/basic.py b/eventlet/twistedutil/protocols/basic.py index 6436bfa..fea16b9 100644 --- a/eventlet/twistedutil/protocols/basic.py +++ b/eventlet/twistedutil/protocols/basic.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/examples/connect.py b/examples/connect.py index d7ff1b0..7cff938 100644 --- a/examples/connect.py +++ b/examples/connect.py @@ -1,3 +1,24 @@ +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """Spawn multiple workers and collect their results. Demonstrates how to use eventlet.green package and proc module. diff --git a/examples/twisted_http_proxy.py b/examples/twisted_http_proxy.py index fbab912..a8cd512 100644 --- a/examples/twisted_http_proxy.py +++ b/examples/twisted_http_proxy.py @@ -1,3 +1,24 @@ +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """Listen on port 8888 and pretend to be an HTTP proxy. It even works for some pages. diff --git a/examples/twisted_portforward.py b/examples/twisted_portforward.py index 2474af8..4decc0a 100644 --- a/examples/twisted_portforward.py +++ b/examples/twisted_portforward.py @@ -1,4 +1,25 @@ #!/usr/bin/python +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """Port forwarder USAGE: twisted_portforward.py local_port remote_host remote_port""" import sys diff --git a/examples/twisted_server.py b/examples/twisted_server.py index 9ae8000..eaf421e 100644 --- a/examples/twisted_server.py +++ b/examples/twisted_server.py @@ -1,3 +1,24 @@ +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """Simple chat demo application. Listen on port 8007 and re-send all the data received to other participants. diff --git a/examples/twisted_srvconnector.py b/examples/twisted_srvconnector.py index 2602baf..475af7c 100644 --- a/examples/twisted_srvconnector.py +++ b/examples/twisted_srvconnector.py @@ -1,3 +1,24 @@ +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + from twisted.internet import reactor from twisted.names.srvconnect import SRVConnector from gnutls.interfaces.twisted import X509Credentials diff --git a/greentest/__init__.py b/greentest/__init__.py index 8595e84..372b38a 100644 --- a/greentest/__init__.py +++ b/greentest/__init__.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/generate_report.py b/greentest/generate_report.py index 9d33c17..0e9b3b2 100755 --- a/greentest/generate_report.py +++ b/greentest/generate_report.py @@ -1,4 +1,25 @@ #!/usr/bin/python +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + import sys import os import sqlite3 diff --git a/greentest/parse_results.py b/greentest/parse_results.py index 0f3afac..ba4a15e 100755 --- a/greentest/parse_results.py +++ b/greentest/parse_results.py @@ -1,4 +1,25 @@ #!/usr/bin/python +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + import sys import traceback import sqlite3 diff --git a/greentest/record_results.py b/greentest/record_results.py index fc1a02a..8ca8097 100755 --- a/greentest/record_results.py +++ b/greentest/record_results.py @@ -1,4 +1,25 @@ #!/usr/bin/python +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """Run the program and record stdout/stderr/exitcode into the database results.rev_changeset.db Usage: %prog program [args] diff --git a/greentest/runall.py b/greentest/runall.py index a063192..ce3fd91 100755 --- a/greentest/runall.py +++ b/greentest/runall.py @@ -1,5 +1,6 @@ #!/usr/bin/python -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__api.py b/greentest/test__api.py index 5faf331..ed08e62 100644 --- a/greentest/test__api.py +++ b/greentest/test__api.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__api_timeout.py b/greentest/test__api_timeout.py index 71fa88c..1f59a44 100644 --- a/greentest/test__api_timeout.py +++ b/greentest/test__api_timeout.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__coros_semaphore.py b/greentest/test__coros_semaphore.py index a6c5555..62c07fb 100644 --- a/greentest/test__coros_semaphore.py +++ b/greentest/test__coros_semaphore.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__event.py b/greentest/test__event.py index 319a727..311ddbe 100644 --- a/greentest/test__event.py +++ b/greentest/test__event.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__greenness.py b/greentest/test__greenness.py index 188fa9a..52cd025 100644 --- a/greentest/test__greenness.py +++ b/greentest/test__greenness.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__hub.py b/greentest/test__hub.py index af61122..946c29f 100644 --- a/greentest/test__hub.py +++ b/greentest/test__hub.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__proc.py b/greentest/test__proc.py index d49d6f9..9933689 100644 --- a/greentest/test__proc.py +++ b/greentest/test__proc.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__refcount.py b/greentest/test__refcount.py index 6f39ecf..b78f408 100644 --- a/greentest/test__refcount.py +++ b/greentest/test__refcount.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__socket_errors.py b/greentest/test__socket_errors.py index fb2d2f6..257673c 100644 --- a/greentest/test__socket_errors.py +++ b/greentest/test__socket_errors.py @@ -1,3 +1,24 @@ +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + import unittest from eventlet import api diff --git a/greentest/test__timers.py b/greentest/test__timers.py index ee89b9a..2a75790 100644 --- a/greentest/test__timers.py +++ b/greentest/test__timers.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__twistedutil.py b/greentest/test__twistedutil.py index 5e909ba..7e5c8ad 100644 --- a/greentest/test__twistedutil.py +++ b/greentest/test__twistedutil.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/test__twistedutil_protocol.py b/greentest/test__twistedutil_protocol.py index 8aa53a9..7dcf069 100644 --- a/greentest/test__twistedutil_protocol.py +++ b/greentest/test__twistedutil_protocol.py @@ -1,4 +1,5 @@ -# Copyright (c) 2008 Denis Bilenko +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/greentest/with_eventlet.py b/greentest/with_eventlet.py index 890be53..cf083c9 100755 --- a/greentest/with_eventlet.py +++ b/greentest/with_eventlet.py @@ -1,4 +1,25 @@ #!/usr/bin/python +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """Execute python script with hub installed. Usage: %prog [--hub HUB] [--reactor REACTOR] program.py diff --git a/greentest/with_timeout.py b/greentest/with_timeout.py index 52bc559..6cfeb29 100755 --- a/greentest/with_timeout.py +++ b/greentest/with_timeout.py @@ -1,4 +1,25 @@ #!/usr/bin/python +# Copyright (c) 2008-2009 AG Projects +# Author: Denis Bilenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + """ Run Python script in a child process. Kill it after timeout has elapsed. If the script was running unittest test cases, the timeouted test cases is