0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 10:11:53 +00:00
Commit Graph

35 Commits

Author SHA1 Message Date
Pavel Tvrdík
daaa115943 Birdtest: add some utils to framework
and updates old tests
2015-08-19 14:57:34 +02:00
Pavel Tvrdík
39059e21b7 Birdtest: Add unfinished filter test
Add birdtest utils for testing parsing configurations files
Add tests with parsing filter examples
2015-08-14 16:14:32 +02:00
Pavel Tvrdík
ce8d15a02d Birdtest: Purge 'int main()' from lib/birdlib.a #1
We need link lib/birdlib.a and remaining */all.o to tests (mockups suck)

Code from sysdep/unix/main.c is moved without 'int main()' function
   to the sysdep/unix/main_helper.c

Yes, it is dirty...
After remake new BIRD's build system will be this commit reverting...

Actually it is not possible to build executable bird, birdc nor birdcl
due duplicity of functions in main_helper.o in lib/birdlib.a and
lib/main.o
2015-08-05 12:36:40 +02:00
Pavel Tvrdík
2d9b796bc5 Revert "Linking: move LDFLAGS at the end of commands"
This reverts commit 9334886d1a.

Thanks to Ondrej Zajicek.
2015-08-04 10:08:43 +02:00
Pavel Tvrdík
9334886d1a Linking: move LDFLAGS at the end of commands
Better support gcov
 $ LDFLAGS="-lgcov" CFLAGS="-fprofile-arcs -ftest-coverage" ./configure
2015-07-29 10:42:41 +02:00
Pavel Tvrdík
81b2e266fb Birdtest: Build system: improve dependencies
while a some source file is changed, the test suite will recompile
2015-04-15 12:07:10 +02:00
Pavel Tvrdík
f26cf70152 Birdtest: Refactore tests and build system
Rename directory:
  birdtest/* -> test/*

Rename Makefile rule:
  build-tests -> tests

Move run-all-test shell script from Makefile to stand-alone shell script

Simplify Makefile test build system
2015-03-23 17:40:13 +01:00
Pavel Tvrdík
56fe8bc26c Birdtest: Customize Makefiles build system
From root dir is possible launch:
  $ make check         # for re-build and run all tests
  $ make build-tests   # for re-build all tests only
2015-03-13 18:23:31 +01:00
Pavel Tvrdík
02a844cbf9 Add Ondrej Zajicek Unit Testing Framework
- Add Ondrej Zajicek Unit Testing Framework -- BirdTest
 - An Integration the BirdTest (BT) into the BIRD's build system.
2015-03-07 10:30:55 +01:00
Ondrej Zajicek
8a112d8ba2 Removes strip from make install
Thanks to Alexander V. Chernikov for the patch.
2013-08-13 23:04:06 +02:00
Ondrej Zajicek
d2c392d448 Removes unnecessary client subdirectories and updates buildsystem.
Renames some files:
birdc/client.c -> birdc.c
birdcl/client.c -> birdcl.c
client_common.c -> common.c
2013-04-19 13:59:08 +02:00
Tomas Hlavacek
8322ecde12 Add lightweight client - birdcl
Restructure client/ subdir. Add two different flavors of client.
The full featured birdc client code is in client/birdc/.
The new light client birtcl is in client/birdcl/.
Common sources of both clients are directly in client/.

Rework on-line auto-completion in client/command.c to conditionally turn off
ncurses-specific code.

Add lightweight client without libreadline and ncurses dependencies - birdcl.
The birdcl lacks support of history, on-line auto-completion and there
are different implementations of "more" functionality and help on '?' press.
New client operates in canonical terminal mode (apart from "more" display)
and therefore all commands have to be executed by a return key including help
commands (called by '?' character in the end of the line).
Apart from these limitations the interaction style should be the same as
for the full client - birdc.
Build of birdcl is always on (independent on --enable-client parameter).
2013-03-19 18:03:49 +01:00
Ondrej Zajicek
ab188fb76d Implements build options to specify socket dir and suffix. 2012-05-03 12:25:15 +02:00
Ondrej Zajicek
acc93efd4c Use constants from /etc/iproute2/rt_* files. 2011-04-28 00:31:37 +02:00
Ondrej Zajicek
e285bd236e Fixes installation (missing /usr/local/var/run). 2010-02-21 10:14:41 +01:00
Ondrej Zajicek
f2cfc50996 Compilation and dependency generation should be serialized. 2009-08-10 13:59:56 +02:00
Ondrej Zajicek
581b59907c Clean files generated by Bison and Flex. 2009-08-10 13:57:08 +02:00
Ondrej Filip
71a9574a51 Makefile changed to make it work with 'make -jN' where N>1 2009-08-09 19:43:42 +02:00
Ondrej Filip
99355da18f Inlude DESTDIR in install to make life of packagers easier. 2009-06-02 12:01:24 +02:00
Ondrej Filip
26978ec419 Clean also ipv6 bird.ctl 2009-06-02 11:36:07 +02:00
Ondrej Filip
de8f238fdb Error in test fixed. 2009-06-02 11:00:12 +02:00
Ondrej Filip
dc16584ac2 Small change to make BIRD's IPv6 packaging easier 2009-06-02 00:28:08 +02:00
Martin Mares
a4ffe2739d Bird's control socket should be in /var/run and the convention for
--localstatedir is /var. The control socket pathname creation is thus
corrected here.

(Andreas)
2004-05-31 17:53:02 +00:00
Martin Mares
99955b54be Proper building and installation of documentation in the Makefiles. 2000-06-09 06:31:43 +00:00
Martin Mares
f9254d2349 Autoconf is *evil*. The sysconfdir and similar variables are unusable in
C includes as they contain substitutions specific to make.

Worked around by creating sysconf/paths.h which is created from
the Makefile instead of by the configure script.
2000-05-08 14:19:47 +00:00
Martin Mares
d8508f70b0 `make install' now works. 2000-05-08 13:54:59 +00:00
Martin Mares
b177724896 Connected the `doc' subtree to global makefiles.
All documentation is built in obj/doc (resp. doc/ if you do a stand-alone build).

Use `make docs' to make the whole documentation or `make userdocs' resp.
`make progdocs' for user manual resp. developer's guide.
2000-05-05 17:15:56 +00:00
Martin Mares
7211be1cff Configure, link and use the readline library. 2000-01-20 13:13:30 +00:00
Martin Mares
9fac310d1a Put client on a stony ground. The whole client is going to be system-specific
(the current version UNIX-specific) anyway, so it's useless to try splitting it
to sysdep and generic part. Instead of this, configure script decides (based on
system type and user's wish) what (if any) client should be built and what
autoconfiguration it requires. Also, the client provides its own die/bug/...
functions.
2000-01-19 15:07:00 +00:00
Martin Mares
b9672a845f The CLI I/O functions work as desired. 1999-10-31 15:43:44 +00:00
Martin Mares
ed6081502a Added skeleton of the client. Does nothing, but at least compiles. 1999-10-29 09:44:44 +00:00
Martin Mares
ed9a82369f Added new target "tags" to generate a tag table for Emacs.
Also made "depend" work before the tree is compiled first time.
1999-04-11 19:28:16 +00:00
Martin Mares
abae6e9cd3 First few FreeBSD portability fixes. 1999-04-01 15:33:52 +00:00
Martin Mares
7a2105becd Use dmalloc instead of EFence when available (dmalloc has lot of improvements
over EFence and also hopefully smaller memory overhead, but sadly it's non-free
for commercial use).

If the DMALLOC_OPTIONS environment variable is not set, switch on `reasonable'
checks by default.

Also introduced mb_allocz() for cleared mb_alloc().
1999-03-04 11:36:26 +00:00
Martin Mares
49e7e5ee0b New makefiles. Includes support for out-of-source-tree builds. 1999-01-10 00:18:32 +00:00