summaryrefslogtreecommitdiffstats
path: root/zebra/test_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixing declarations to eliminate compiler warnings in zebra.Chris Hall2010-04-171-0/+1
| | | | | | | | | | | Only parts of zebra/*.c are compiled and linked, depending on what was chosen at "configure" time. A subset of that is compiled and linked for testzebra. Some things were not declared, or not declared everywhere they were required... leading to a number of compiler warnings. These changes are intended to tidy that up.
* zebra: test_main.c should be a bit more helpful about its usagePaul Jakma2009-08-281-1/+5
| | | | * test_main.c: If required arguments are missing, say that.
* all: check return value from daemon() callStephen Hemminger2009-08-131-2/+5
| | | | | | * */*main.c: (main) Current versions of Gcc warn if the return value for daemon() is not checked. So add a simple test and exit on failure.
* [daemons/cleanup] Remove disabled log_mode argument support.Jeremy Jackson2009-06-181-6/+1
| | | | | * */*main.c: Seems that the actual code was removed previously, but the argument processing code remained.
* + sayonara old_pid!Denis Ovsienko2007-09-141-4/+0
|
* [zebra] Add test rig code, for testing the zebra RIBPaul Jakma2006-07-271-0/+337
2006-07-27 Paul Jakma <paul.jakma@sun.com> * {ioctl,kernel}_null.c: Dummy/Null kernel method implementations, useful for testing zebra code that calls such methods. * {redistribute,misc}_null.c: Dummy/Null methods, as above. But for zclient, and for various misc functions. * test_main.c: Test harness for zebra, currently just to test the RIB. * Makefile.am: Build testzebra using above. * zebra_rib.c: Add a global for the workqueue hold time, useful for testing.