98 Commits
Author SHA1 Message Date
Pavel Tvrdík b4c639d9ae Socktest: initial commit
Using `make sockettest` generetes `snd` and `rcv` binaries. It can be
used for testing BIRD's sockets.

Based on code by Ondrej Zajicek
2016-03-30 17:16:12 +02:00
Pavel Tvrdík f6dd038802 Merge branch 'master' into birdtest 2015-11-12 16:20:37 +01:00
Pavel Tvrdík f12f9d9131 Birdtest: Fix setting TERM environment variable 2015-11-02 13:29:03 +01:00
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 aa96f486e0 Birdtest: Improve reliable
Fixing some bugs
Add option to call birdtest with an argument (void *)
2015-08-14 16:08:04 +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 d51a3385a6 Birdtest: Fixing outputs at 'exotic' OS 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
Ondrej Zajicek a8ad8fd649 Simplify build messages
Thanks to Christian Tacke for the original patch.
2015-07-18 23:15:04 +02:00
Pavel Tvrdík 5a5e825213 Birdtest: small change
The number of build-failure tests must be equal to zero or upper
2015-04-28 17:02:42 +02:00
Pavel Tvrdík 5419d2a3c5 Birdtest: Compability bug fixes
Tested on Ubuntu & FreeBSD & NetBSD & OpenBSD
2015-04-15 15:42:43 +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 8f5f52838e Birdtest: Improve a tests lancher script 2015-04-13 10:33:04 +02:00
Pavel Tvrdík a0ab20320c Birdtest: Improve build scripts
Add make rule 'clean-tests'
Add tests sources to dependecy generator
2015-04-03 12:40:07 +02:00
Pavel Tvrdík 016e7be6e5 Birdtest: Fix calc num of build-failured tests 2015-03-27 14:01:30 +01: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 5a1b5e0119 Birdtest: Output the number of Test Build Failures 2015-03-19 18:37:18 +01:00
Pavel Tvrdík 7d0c9831f8 Birdtest: Add echoing of compilation command 2015-03-17 12:43:01 +01:00
Pavel Tvrdík 3e644333a2 Birdtest: A small change in testing output 2015-03-17 11:28:41 +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
Pavel TvrdikandOndrej Zajicek 85a3639d99 Better Clang compatibility 2015-02-21 20:07:17 +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 373d3dbe8d Fixes build on Sparc. 2010-08-04 13:53:52 +02:00
Ondrej Zajicek 506fa1a73e Merge several fixes suggested by Joakim Tjernlund. 2010-05-02 22:41:40 +02:00
Ondrej Zajicek e285bd236e Fixes installation (missing /usr/local/var/run). 2010-02-21 10:14:41 +01:00
Ondrej Filip 29bcd04e75 Update of config.sub & config.guess 2009-09-06 21:26:46 +02: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
Ondrej Filip a6ee026693 Typo in gendist script. 2009-04-28 11:56:33 +02:00
Ondrej Filip 73841442d9 Gendist script adapted to git. 2009-04-28 10:20:50 +02:00
Martin Mares 6c36c4b66b Updated config.{guess,sub} to a recent version.
Patch from the Debian package.
2008-08-25 11:14:14 +00:00
Ondrej Filip 4b1cf69e76 Again back to regina.gin.cz. 2005-03-16 16:09:28 +00:00
Ondrej Filip 129e912924 Ftp server change. 2005-02-21 10:22:57 +00:00
Ondrej Filip 89478fe3ab Change of ftp servers. 2005-02-21 10:04:37 +00:00
Ondrej Filip 8910351c76 sort from GNU coreutils 5.2.1 doesn't accept the +- syntax
anymore. Hopefully the -k syntax is supported by all other
sort versions
2004-09-08 16:06:07 +00:00
Martin Mares 27e3e5e0c9 Do not forget to propagate LDFLAGS from configure. Allows static linking,
among other things.
2004-08-19 09:15:36 +00:00
Ondrej Filip ff61673427 Delete automate*cache. 2004-06-07 14:37:29 +00:00
Martin Mares fa643be1cc Updated the distribution script. 2004-05-31 22:24:42 +00:00