# How to install the automated test runs of PyPy # ============================================== # Make a directory for them (can be anywhere of course) mkdir /home/username/autotest # Put all necessary scripts in there - symlinks are better cd /home/username/autotest ln -s ~/svn/arigo/hack/misc/htmlconftest/autotest.py ln -s ~/svn/arigo/hack/misc/htmlconftest/toolbox.py ln -s ~/svn/arigo/hack/misc/htmlconftest/conftest.py ln -s ~/svn/arigo/hack/misc/htmlconftest/summarize.py ln -s ~/svn/arigo/hack/svnutil/svnwcrevert.py # Make a PyPy checkout in 'pypy-dist' or copy it from # somewhere else svn co http://codespeak.net/svn/pypy/dist pypy-dist # Symlink to the py lib to use, usually the one from the # PyPy checkout is fine ln -s pypy-dist/py # A workaround for sys.path manipulations by CPython: # we need a non-symlinked startup script echo "import autotest" > autotest1.py # The directory that will contain the output. You should # make this visible from your web server at some url, so # depending on the setup it could also be a symlink to a # directory e.g. in your ~/public_html/. mkdir html # Copy and modify the configuration file: cp ~/svn/arigo/hack/misc/htmlconftest/autotestconfig.py vi autotestconfig.py # Cron job entry # -------------- crontab -e # I am running the tests daily at 2pm using: # # 0 2 * * * (cd /home/arigo/autotest && nice /usr/bin/python -u autotest1.py) > /home/arigo/autotest/autotest.log 2>&1 # The "start now" button # ---------------------- # If you want the "start now" button, you also need to copy # manual_run.cgi to some place like ~/public_html/cgi-bin/ # and edit the paths at the beginning of the script. Then # you need a cron job entry that checks if manual_run.cgi # was executed, e.g. every two minutes. I am using: # */2 * * * * [ -e /home/arigo/autotest/SCHEDULE ] && ((cd /home/arigo/autotest && rm SCHEDULE && nice /usr/bin/python -u autotest1.py) > /home/arigo/autotest/autotest.log 2>&1)