Changeset 7218e7ce77d425dcf3e8c6e1bea40242315868c4
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rcc299bc
|
r7218e7c
|
|
| 8 | 8 | #--------------------------------------------------------------- |
| 9 | 9 | |
| 10 | | VERSION=0.2 |
| | 10 | VERSION=0.3 |
| 11 | 11 | |
| 12 | 12 | bindir=/usr/bin |
| … |
… |
|
| 20 | 20 | |
| 21 | 21 | install: |
| 22 | | mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)/pxe $(DESTDIR)$(etcdir) |
| | 22 | mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)/pxe $(DESTDIR)$(libdir)/tester $(DESTDIR)$(etcdir) |
| 23 | 23 | install pxe/pxemngr $(DESTDIR)$(bindir)/pxemngr |
| 24 | 24 | install -m 644 pxe/pxemngr.conf $(DESTDIR)$(etcdir)/pxemngr.conf |
| 25 | 25 | install *.py $(DESTDIR)$(libdir)/ |
| 26 | 26 | install pxe/*.py pxe/{addsystem,dpysystem,nextboot,syncbootnames} $(DESTDIR)$(libdir)/pxe/ |
| | 27 | install tester/*.py tester/{dpytest,nexttest,synctestnames} $(DESTDIR)$(libdir)/tester/ |
| 27 | 28 | |
| 28 | 29 | dist: clean |
-
|
rd8ce27d
|
r7218e7c
|
|
| 24 | 24 | fi |
| 25 | 25 | |
| 26 | | if [ ! -x "$BASEDIR"/pxe/$1 ]; then |
| | 26 | if [ ! -x "$BASEDIR"/pxe/$1 -a ! -x "$BASEDIR"/tester/$1 ]; then |
| 27 | 27 | echo "Invalid pxemngr sub-command $1" 1>&2 |
| 28 | 28 | fi |
| … |
… |
|
| 36 | 36 | shift |
| 37 | 37 | |
| 38 | | exec "$BASEDIR/pxe/$cmd" "$@" |
| | 38 | if [ -x "$BASEDIR"/pxe/$cmd ]; then |
| | 39 | exec "$BASEDIR/pxe/$cmd" "$@" |
| | 40 | else |
| | 41 | exec "$BASEDIR/tester/$cmd" "$@" |
| | 42 | fi |
| 39 | 43 | |
| 40 | 44 | # pxemngr ends here |
-
|
r8784ede
|
r7218e7c
|
|
| 16 | 16 | DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
| 17 | 17 | DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
| | 18 | |
| | 19 | # pxe related settings |
| | 20 | |
| | 21 | PXE_ROOT='/var/lib/tftpboot/pxelinux.cfg' |
| | 22 | PXE_PROFILES = 'profiles' |
| | 23 | PXE_SUFFIX = '.prof' |
| | 24 | PXE_LOCAL = 'local' |
| | 25 | |
| | 26 | # test related settings |
| | 27 | |
| | 28 | TESTS_DIR = '/home/flepied/work/tests/' |
| | 29 | TEST_SUFFIX = '.test' |
| | 30 | TEST_UPLOAD_DIR = '/home/flepied/work/tests/results/' |
| 18 | 31 | |
| 19 | 32 | # Local time zone for this installation. Choices can be found here: |
| … |
… |
|
| 71 | 84 | # Don't forget to use absolute paths, not relative paths. |
| 72 | 85 | '/home/flepied/work/pxemngr/pxe/templates', |
| | 86 | '/home/flepied/work/pxemngr/tester/templates', |
| | 87 | TESTS_DIR, |
| 73 | 88 | ) |
| 74 | 89 | |
| … |
… |
|
| 79 | 94 | 'django.contrib.sites', |
| 80 | 95 | 'pxe', |
| 81 | | # 'django.contrib.admin', |
| | 96 | 'tester', |
| | 97 | #'django.contrib.admin', |
| 82 | 98 | ) |
| 83 | | |
| 84 | | PXE_ROOT='/var/lib/tftpboot/pxelinux.cfg' |
| 85 | | PXE_PROFILES = 'profiles' |
| 86 | | PXE_SUFFIX = '.prof' |
| 87 | | PXE_LOCAL = 'local' |
-
|
r8784ede
|
r7218e7c
|
|
| 17 | 17 | (r'^profile/(?P<mac>[a-fA-F0-9:-]+)/$', 'pxe.views.profile'), |
| 18 | 18 | (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'), |
| 19 | 23 | |
| 20 | 24 | # Uncomment the next line to enable the admin: |