Changeset 7218e7ce77d425dcf3e8c6e1bea40242315868c4

Show
Ignore:
Timestamp:
02/10/09 20:28:48 (3 years ago)
Author:
Frederic Lepied <frederic.lepied@…>
Children:
4170c22b454a672cea64e02c9199b7099dbc9606
Parents:
8784edeece399f9d7eae5a786ea7a0f30a7732da
git-committer:
Frederic Lepied <frederic.lepied@…> (02/10/09 20:28:48)
Message:

added a tester module

Files:
9 added
4 modified

Legend:

Unmodified
Added
Removed
  • Makefile

    rcc299bc r7218e7c  
    88#--------------------------------------------------------------- 
    99 
    10 VERSION=0.2 
     10VERSION=0.3 
    1111 
    1212bindir=/usr/bin 
     
    2020 
    2121install: 
    22         mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)/pxe $(DESTDIR)$(etcdir) 
     22        mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)/pxe $(DESTDIR)$(libdir)/tester $(DESTDIR)$(etcdir) 
    2323        install pxe/pxemngr $(DESTDIR)$(bindir)/pxemngr 
    2424        install -m 644 pxe/pxemngr.conf $(DESTDIR)$(etcdir)/pxemngr.conf 
    2525        install *.py $(DESTDIR)$(libdir)/ 
    2626        install pxe/*.py pxe/{addsystem,dpysystem,nextboot,syncbootnames} $(DESTDIR)$(libdir)/pxe/ 
     27        install tester/*.py tester/{dpytest,nexttest,synctestnames} $(DESTDIR)$(libdir)/tester/ 
    2728 
    2829dist: clean 
  • pxe/pxemngr

    rd8ce27d r7218e7c  
    2424fi 
    2525 
    26 if [ ! -x "$BASEDIR"/pxe/$1 ]; then 
     26if [ ! -x "$BASEDIR"/pxe/$1 -a ! -x "$BASEDIR"/tester/$1 ]; then 
    2727    echo "Invalid pxemngr sub-command $1" 1>&2 
    2828fi 
     
    3636shift 
    3737 
    38 exec "$BASEDIR/pxe/$cmd" "$@" 
     38if [ -x "$BASEDIR"/pxe/$cmd ]; then 
     39    exec "$BASEDIR/pxe/$cmd" "$@" 
     40else 
     41    exec "$BASEDIR/tester/$cmd" "$@" 
     42fi 
    3943 
    4044# pxemngr ends here 
  • settings.py

    r8784ede r7218e7c  
    1616DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3. 
    1717DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3. 
     18 
     19# pxe related settings 
     20 
     21PXE_ROOT='/var/lib/tftpboot/pxelinux.cfg' 
     22PXE_PROFILES = 'profiles' 
     23PXE_SUFFIX = '.prof' 
     24PXE_LOCAL = 'local' 
     25 
     26# test related settings 
     27 
     28TESTS_DIR = '/home/flepied/work/tests/' 
     29TEST_SUFFIX = '.test' 
     30TEST_UPLOAD_DIR = '/home/flepied/work/tests/results/' 
    1831 
    1932# Local time zone for this installation. Choices can be found here: 
     
    7184    # Don't forget to use absolute paths, not relative paths. 
    7285    '/home/flepied/work/pxemngr/pxe/templates', 
     86    '/home/flepied/work/pxemngr/tester/templates', 
     87    TESTS_DIR, 
    7388) 
    7489 
     
    7994    'django.contrib.sites', 
    8095    'pxe', 
    81 #    'django.contrib.admin', 
     96    'tester', 
     97    #'django.contrib.admin', 
    8298) 
    83  
    84 PXE_ROOT='/var/lib/tftpboot/pxelinux.cfg' 
    85 PXE_PROFILES = 'profiles' 
    86 PXE_SUFFIX = '.prof' 
    87 PXE_LOCAL = 'local' 
  • urls.py

    r8784ede r7218e7c  
    1717    (r'^profile/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.profile'), 
    1818    (r'^profile/$', 'pxe.views.profile1'), 
     19                        
     20    (r'^upload/$', 'tester.views.upload_file'), 
     21    (r'^nexttest/$', 'tester.views.next_test1'), 
     22    (r'^nexttest/(?P<mac>[a-fA-F0-9:-]+)/$', 'tester.views.next_test'), 
    1923     
    2024    # Uncomment the next line to enable the admin: