]> begriffs open source - libtap/log
libtap
7 years agoFixing a bug which prevents builds for Windows targets.
Jeff Wheeler [Tue, 11 Dec 2018 18:52:58 +0000 (13:52 -0500)]
Fixing a bug which prevents builds for Windows targets.

Without the (...) in this unlike macro, the resulting preprocessor
output is bad and generates the below compile-time error:

t/like.c: In function ‘main’:
./tap.h:70:26: error: called object is not a function or function pointer
 #define unlike           tap_skip(1, "unlike is not implemented on Windows")

9 years agoChange the synopsis a little bit
Jacob Gelbman [Wed, 28 Dec 2016 19:01:41 +0000 (13:01 -0600)]
Change the synopsis a little bit

9 years agoThey will have diff installed, no need to mention it
Jacob Gelbman [Wed, 28 Dec 2016 18:40:18 +0000 (12:40 -0600)]
They will have diff installed, no need to mention it

9 years agoDo not auto cast first argument to an int in the ok macro
Jacob Gelbman [Wed, 28 Dec 2016 18:29:53 +0000 (12:29 -0600)]
Do not auto cast first argument to an int in the ok macro

9 years agoAdd a note about the use of macros
Jacob Gelbman [Tue, 8 Nov 2016 07:10:50 +0000 (01:10 -0600)]
Add a note about the use of macros

9 years agoRemove the ; at the end of cmp_mem macro
Jacob Gelbman [Sun, 6 Nov 2016 18:48:01 +0000 (12:48 -0600)]
Remove the ; at the end of cmp_mem macro

9 years agoMakefile variable changes to help overrides on command line
Jacob Gelbman [Fri, 28 Oct 2016 16:11:31 +0000 (11:11 -0500)]
Makefile variable changes to help overrides on command line

9 years agoMerge pull request #27 from sunnythepooh/sunnythepooh-makefile-arguments-patch
Jacob Gelbman [Fri, 28 Oct 2016 16:07:41 +0000 (11:07 -0500)]
Merge pull request #27 from sunnythepooh/sunnythepooh-makefile-arguments-patch

Allow CFLAGS and CC to be append and set

9 years agoAllow CFLAGS and CC to be append and set pull/27/head 27/head
Sunny Chan [Fri, 28 Oct 2016 07:23:17 +0000 (15:23 +0800)]
Allow CFLAGS and CC to be append and set

This change would allow CFLAGS to be append in the command line - for example if we want to make 32bit version on 64bit file we can do:

CFLAGS=-m32 make

which is not possible if you use equals.

likewise ?= in CC allow user to set CC in the environment

9 years agoUse x variable so compiler doesn't complain about it
Jacob Gelbman [Tue, 9 Feb 2016 03:00:49 +0000 (21:00 -0600)]
Use x variable so compiler doesn't complain about it

9 years agoCast argument to int to avoid possibly compiler warnings
Jacob Gelbman [Tue, 9 Feb 2016 02:40:23 +0000 (20:40 -0600)]
Cast argument to int to avoid possibly compiler warnings

10 years agoMake all diagnostic messages go to STDOUT to avoid out of order display issues
Jacob Gelbman [Fri, 17 Jul 2015 21:45:15 +0000 (16:45 -0500)]
Make all diagnostic messages go to STDOUT to avoid out of order display issues

10 years agoRely on prove (or another tap consumer) to provide color results
Jacob Gelbman [Fri, 17 Jul 2015 21:02:45 +0000 (16:02 -0500)]
Rely on prove (or another tap consumer) to provide color results

10 years agoTest itself without Perl
Jacob Gelbman [Fri, 17 Jul 2015 20:55:15 +0000 (15:55 -0500)]
Test itself without Perl

10 years agoRemove the extra whitespace
Jacob Gelbman [Fri, 17 Jul 2015 18:22:08 +0000 (13:22 -0500)]
Remove the extra whitespace

10 years agoMerge pull request #23 from tekknolagi/mb-add-color
Jacob Gelbman [Fri, 17 Jul 2015 04:18:47 +0000 (23:18 -0500)]
Merge pull request #23 from tekknolagi/mb-add-color

Add color text

10 years agoMake color optional pull/23/head 23/head
Maxwell Bernstein [Thu, 16 Jul 2015 23:33:28 +0000 (16:33 -0700)]
Make color optional

To add color to output, compile like so:

    TAP_COLOR_OUTPUT=yes make

10 years agoAdd color text
Max Bernstein [Tue, 12 Aug 2014 20:17:56 +0000 (13:17 -0700)]
Add color text

10 years agoMove tap.pc section down so all section stays the default
Jacob Gelbman [Fri, 10 Jul 2015 19:12:13 +0000 (14:12 -0500)]
Move tap.pc section down so all section stays the default

10 years agoMerge pull request #22 from quentusrex/master
Jacob Gelbman [Fri, 10 Jul 2015 18:46:34 +0000 (13:46 -0500)]
Merge pull request #22 from quentusrex/master

Adding pkgconfig file

10 years agoAdding pkgconfig file pull/22/head 22/head
William King [Fri, 10 Jul 2015 18:09:57 +0000 (11:09 -0700)]
Adding pkgconfig file

10 years agoLicense under LGPL
Jacob Gelbman [Fri, 10 Jul 2015 17:28:36 +0000 (12:28 -0500)]
License under LGPL

10 years agodone_testing to return 0, 1, or 2 not the number of tests failed
Jacob Gelbman [Tue, 24 Mar 2015 16:00:44 +0000 (11:00 -0500)]
done_testing to return 0, 1, or 2 not the number of tests failed

10 years agoLink tests with the static library to avoid LD_LIBRARY_PATH errors
Jacob Gelbman [Wed, 18 Mar 2015 17:32:04 +0000 (12:32 -0500)]
Link tests with the static library to avoid LD_LIBRARY_PATH errors

10 years agoRemove the Visual Studio project file since it might be out of date
Jacob Gelbman [Sun, 25 Jan 2015 19:56:34 +0000 (13:56 -0600)]
Remove the Visual Studio project file since it might be out of date

10 years agoMerge branch 'beatgammit-master' tags/0.1.0 0.1.0
Jacob Gelbman [Sun, 25 Jan 2015 19:10:50 +0000 (13:10 -0600)]
Merge branch 'beatgammit-master'

10 years agoCreate libtap.so by default
Jacob Gelbman [Sun, 25 Jan 2015 19:09:26 +0000 (13:09 -0600)]
Create libtap.so by default

10 years agoCreate shared objects by default pull/17/head 17/head
T. Jameson Little [Sun, 25 Jan 2015 06:46:52 +0000 (23:46 -0700)]
Create shared objects by default

- create directories as necessary
- use -fPIC so shared objects work
- updated .gitignore

10 years agoTest each file with a .expected file instead of within the .t script
Jacob Gelbman [Sat, 24 Jan 2015 23:06:21 +0000 (17:06 -0600)]
Test each file with a .expected file instead of within the .t script

10 years agoAdd a PREFIX variable to the Makefile
Jacob Gelbman [Sat, 24 Jan 2015 22:25:01 +0000 (16:25 -0600)]
Add a PREFIX variable to the Makefile

11 years agoMerge pull request #16 from fredmorcos/patch-1
Jacob Gelbman [Mon, 1 Dec 2014 20:15:17 +0000 (14:15 -0600)]
Merge pull request #16 from fredmorcos/patch-1

_BSD_SOURCE is deprecated so use _DEFAULT_SOURCE instead

11 years ago_BSD_SOURCE is deprecated so use _DEFAULT_SOURCE instead pull/16/head 16/head
Fred Morcos [Mon, 1 Dec 2014 19:56:29 +0000 (20:56 +0100)]
_BSD_SOURCE is deprecated so use _DEFAULT_SOURCE instead

11 years agoMerge pull request #15 from autarch/patch-2
Jacob Gelbman [Tue, 25 Nov 2014 21:37:44 +0000 (15:37 -0600)]
Merge pull request #15 from autarch/patch-2

Ignore more junk in .gitignore

11 years agoIgnore more junk pull/15/head 15/head
Dave Rolsky [Tue, 25 Nov 2014 17:53:38 +0000 (11:53 -0600)]
Ignore more junk

This is produced on my Ubuntu 14.04 system when using libtap to test library.

11 years agoMerge pull request #13 from sevko/master
Jacob Gelbman [Thu, 30 Oct 2014 15:33:42 +0000 (10:33 -0500)]
Merge pull request #13 from sevko/master

Minor additions to INSTALL and README.md

11 years agoAdd install section to README; add make check note. pull/13/head 13/head
Severyn Kozak [Thu, 30 Oct 2014 13:17:24 +0000 (09:17 -0400)]
Add install section to README; add make check note.

INSTALL
-Make note about installing the `Test::Differences` CPAN module
before running `make check`.

README.md
-Add a brief installation section, with commands for installing
on Unix. Link to `INSTALL`.

11 years agoMake a function for finding memory difference offsets
Jacob Gelbman [Thu, 15 May 2014 16:12:52 +0000 (11:12 -0500)]
Make a function for finding memory difference offsets

11 years agocmp_mem() improvements
Sven Putteneers [Thu, 15 May 2014 08:41:25 +0000 (10:41 +0200)]
cmp_mem() improvements

- NULL for got and expected is handled
- reworked logic so memcmp() is not needed
- cosmetic fix in diagnostics

11 years agoFix whitespace
Jacob Gelbman [Wed, 14 May 2014 15:58:46 +0000 (10:58 -0500)]
Fix whitespace

11 years agoAdd cmp_mem test pull/10/head 10/head
Sven Putteneers [Wed, 14 May 2014 15:25:56 +0000 (17:25 +0200)]
Add cmp_mem test

Compares two memory areas and fails if the contents differ. The offset
of the first differing byte is reported.

11 years agoReplace ternary operations with if statements
Jacob Gelbman [Wed, 5 Mar 2014 23:50:00 +0000 (17:50 -0600)]
Replace ternary operations with if statements

11 years agoIgnore all compiled tests no matter their names
Jacob Gelbman [Mon, 24 Feb 2014 18:33:10 +0000 (12:33 -0600)]
Ignore all compiled tests no matter their names

11 years agoUpdate license to GPLv2+ to be compatible with the Apache 2.0 license
Jacob Gelbman [Mon, 24 Feb 2014 18:13:22 +0000 (12:13 -0600)]
Update license to GPLv2+ to be compatible with the Apache 2.0 license

12 years agoDefine _BSD_SOURCE to 1 pull/8/head 8/head
Dave Rolsky [Wed, 9 Oct 2013 16:21:13 +0000 (11:21 -0500)]
Define _BSD_SOURCE to 1

This appears to be needed to get the MAP_ANONYMOUS macro when compiling with --std=c99

12 years agoMake better naming choices: planf -> tap_plan, skippy -> tap_skip, todof -> tap_todo
Jacob Gelbman [Thu, 5 Sep 2013 16:06:56 +0000 (11:06 -0500)]
Make better naming choices: planf -> tap_plan, skippy -> tap_skip, todof -> tap_todo

12 years agoRemove autotools support
Jacob Gelbman [Thu, 5 Sep 2013 15:52:26 +0000 (10:52 -0500)]
Remove autotools support

12 years agoAdd autotools support
Brilliantov Kirill Vladimirovich [Sun, 28 Jul 2013 13:07:26 +0000 (17:07 +0400)]
Add autotools support

Signed-off-by: Brilliantov Kirill Vladimirovich <brilliantov@inbox.ru>
Signed-off-by: Jacob Gelbman <gelbman@gmail.com>
13 years agoTravis now supports C pull/7/head 7/head
Mathias Lafeldt [Thu, 26 Jul 2012 14:45:29 +0000 (16:45 +0200)]
Travis now supports C

13 years agoRename t/tap.t to t/test.t
Jake Gelbman [Fri, 13 Jul 2012 17:05:39 +0000 (12:05 -0500)]
Rename t/tap.t to t/test.t

13 years agoGenerate testing command in subroutine
Jake Gelbman [Fri, 13 Jul 2012 17:03:45 +0000 (12:03 -0500)]
Generate testing command in subroutine

13 years agoRename endskip and endtodo to end_skip and end_todo
Jake Gelbman [Fri, 13 Jul 2012 16:25:20 +0000 (11:25 -0500)]
Rename endskip and endtodo to end_skip and end_todo

The other functions use underscore separated names like cmp_ok, dies_ok,
lives_ok, done_testing, BAIL_OUT. These functions should too.

13 years agoUse the name Windows instead of MSWin32
Jake Gelbman [Fri, 13 Jul 2012 16:19:23 +0000 (11:19 -0500)]
Use the name Windows instead of MSWin32

13 years agoRename cplan, ctodo, and cendtodo to planf, todof, endtodof
gelbman [Fri, 13 Jul 2012 16:06:22 +0000 (11:06 -0500)]
Rename cplan, ctodo, and cendtodo to planf, todof, endtodof

13 years agoCheck for malloc errors
gelbman [Thu, 12 Jul 2012 23:52:50 +0000 (18:52 -0500)]
Check for malloc errors

13 years agoSimplify synopsis
gelbman [Wed, 11 Jul 2012 21:51:30 +0000 (16:51 -0500)]
Simplify synopsis

13 years agoGive the isnt and unlike arguments better names
gelbman [Wed, 11 Jul 2012 21:33:14 +0000 (16:33 -0500)]
Give the isnt and unlike arguments better names

13 years agoMerge remote-tracking branch 'mlafeldt/travis'
gelbman [Wed, 11 Jul 2012 21:12:36 +0000 (16:12 -0500)]
Merge remote-tracking branch 'mlafeldt/travis'

13 years agoMerge remote-tracking branch 'mlafeldt/gitignore-unix'
gelbman [Wed, 11 Jul 2012 21:08:29 +0000 (16:08 -0500)]
Merge remote-tracking branch 'mlafeldt/gitignore-unix'

13 years agoLicense with GPLv2
Jake [Wed, 11 Jul 2012 20:29:22 +0000 (15:29 -0500)]
License with GPLv2

13 years agoAdd Travis CI config pull/5/head 5/head
Mathias Lafeldt [Tue, 10 Jul 2012 09:10:10 +0000 (11:10 +0200)]
Add Travis CI config

13 years agoIgnore build products for Unix-like systems pull/6/head 6/head
Mathias Lafeldt [Tue, 10 Jul 2012 09:42:32 +0000 (11:42 +0200)]
Ignore build products for Unix-like systems

13 years agoIndent with spaces
jake [Sun, 17 Jun 2012 21:47:56 +0000 (16:47 -0500)]
Indent with spaces

13 years agoCombine #ifdef statements for MAP_ANONYMOUS macro
jake [Sat, 25 Feb 2012 08:34:13 +0000 (02:34 -0600)]
Combine #ifdef statements for MAP_ANONYMOUS macro

13 years agomake tap work on freebsd pull/4/head 4/head
Sven Nierlein [Fri, 24 Feb 2012 17:53:52 +0000 (18:53 +0100)]
make tap work on freebsd

14 years agoMerge pull request #3 from bricef/master
Jake Gelbman [Tue, 11 Oct 2011 15:05:21 +0000 (08:05 -0700)]
Merge pull request #3 from bricef/master

compilation with older compilers (C90)

14 years agoDeclaration moved out of statement for C90 compliance. pull/3/head 3/head
bricef [Wed, 5 Oct 2011 14:37:26 +0000 (16:37 +0200)]
Declaration moved out of statement for C90 compliance.

14 years agoRemoves declaration in statements. (When using older compilers, declarations in state...
bricef [Thu, 29 Sep 2011 17:20:57 +0000 (19:20 +0200)]
Removes declaration in statements. (When using older compilers, declarations in statements are not allowed - C90 style)

14 years agoCombine config.mk and t/Makefile into Makefile. Separate windows related stuff to...
Jake [Fri, 2 Sep 2011 19:37:17 +0000 (14:37 -0500)]
Combine config.mk and t/Makefile into Makefile. Separate windows related stuff to its own Makefile.

14 years agoIgnore vim swap files.
Jake [Fri, 2 Sep 2011 17:15:20 +0000 (12:15 -0500)]
Ignore vim swap files.

14 years agoCompile everything before running the tests.
Jake [Fri, 2 Sep 2011 16:54:34 +0000 (11:54 -0500)]
Compile everything before running the tests.

14 years agoMake the library compatible with gcc -ansi.
Jake [Fri, 2 Sep 2011 16:52:07 +0000 (11:52 -0500)]
Make the library compatible with gcc -ansi.

Replace ## with "" in the macros.
Provide a more correct version of va_copy.
Add an ANSI option to the Makefile that will will include _BSD_SOURCE macro

14 years agoUndo accidental merge of gh-pages.
Jake [Fri, 2 Sep 2011 15:18:48 +0000 (10:18 -0500)]
Undo accidental merge of gh-pages.

14 years agoA small whitespace change.
jake [Wed, 31 Aug 2011 04:40:42 +0000 (23:40 -0500)]
A small whitespace change.

14 years agoMerge branch 'gh-pages' of github.com:zorgnax/libtap
jake [Wed, 31 Aug 2011 04:38:46 +0000 (23:38 -0500)]
Merge branch 'gh-pages' of github.com:zorgnax/libtap

14 years agoRequire the done_testing macro to take empty parentheses.
Jake [Mon, 29 Aug 2011 23:24:29 +0000 (18:24 -0500)]
Require the done_testing macro to take empty parentheses.

14 years agoAdd copyright heading.
Jake [Mon, 29 Aug 2011 23:04:12 +0000 (18:04 -0500)]
Add copyright heading.

14 years agogithub generated gh-pages branch
Jake [Fri, 17 Jun 2011 20:34:56 +0000 (13:34 -0700)]
github generated gh-pages branch

14 years agoFix INSTALL text.
jake [Wed, 25 May 2011 05:29:43 +0000 (00:29 -0500)]
Fix INSTALL text.

14 years agoAdd INSTALL file.
jake [Wed, 25 May 2011 05:19:03 +0000 (00:19 -0500)]
Add INSTALL file.

14 years agoConsolidate phony targets.
jake [Wed, 25 May 2011 04:49:44 +0000 (23:49 -0500)]
Consolidate phony targets.

14 years agoLicense under GPL.
jake [Wed, 25 May 2011 04:36:05 +0000 (23:36 -0500)]
License under GPL.

14 years agoSimplify dies_ok, lives_ok macro definitions.
jake [Wed, 25 May 2011 04:10:14 +0000 (23:10 -0500)]
Simplify dies_ok, lives_ok macro definitions.

14 years agoDont use EXIT_* macros.
jake [Wed, 25 May 2011 03:36:58 +0000 (22:36 -0500)]
Dont use EXIT_* macros.

14 years agoAdd SKIP_ALL plan.
jake [Wed, 25 May 2011 03:23:38 +0000 (22:23 -0500)]
Add SKIP_ALL plan.

14 years agoAdd BAIL_OUT.
jake [Wed, 25 May 2011 02:35:08 +0000 (21:35 -0500)]
Add BAIL_OUT.

14 years agoAdd done_testing macro to match Test::More.
jake [Wed, 25 May 2011 01:20:09 +0000 (20:20 -0500)]
Add done_testing macro to match Test::More.

14 years agoRearrange win32 specific stuff to one if block.
jake [Wed, 25 May 2011 00:34:39 +0000 (19:34 -0500)]
Rearrange win32 specific stuff to one if block.

14 years agoprove should only run .t files with perl.
jake [Tue, 24 May 2011 03:16:48 +0000 (22:16 -0500)]
prove should only run .t files with perl.

14 years agoOnly use one ifdef __cplusplus in tap.h and remove gnu .t executable extension.
jake [Tue, 24 May 2011 03:02:22 +0000 (22:02 -0500)]
Only use one ifdef __cplusplus in tap.h and remove gnu .t executable extension.

14 years agoadded va_copy definition for systems like winblows that don't have it pull/2/head 2/head
Alexander Kahl [Mon, 23 May 2011 14:38:44 +0000 (16:38 +0200)]
added va_copy definition for systems like winblows that don't have it
added c++ ifdefs with extern "C" declarations

14 years agoadded visual studio project file
Alexander Kahl [Mon, 23 May 2011 14:37:52 +0000 (16:37 +0200)]
added visual studio project file

14 years agocompile libtap tests to .t on *nix so they get run by prove
Alexander Kahl [Mon, 23 May 2011 14:37:02 +0000 (16:37 +0200)]
compile libtap tests to .t on *nix so they get run by prove

14 years agorun prove with empty interpreter to make libtap compiled tests run by default
Alexander Kahl [Mon, 23 May 2011 14:36:32 +0000 (16:36 +0200)]
run prove with empty interpreter to make libtap compiled tests run by default

15 years agoRun dos2unix the files that need it
jake [Sun, 31 Oct 2010 06:59:31 +0000 (02:59 -0400)]
Run dos2unix the files that need it

15 years agoMake minor formatting change to merge request
jake [Sun, 31 Oct 2010 06:35:12 +0000 (02:35 -0400)]
Make minor formatting change to merge request

15 years agovstrdupf needs to copy it's args argument, so that it can get sizing information pull/1/head 1/head
Brian Smith [Mon, 18 Oct 2010 00:57:59 +0000 (17:57 -0700)]
vstrdupf needs to copy it's args argument, so that it can get sizing information
without invalidating for the actual call to vsnprintf

15 years agoFix build on OS X; MAP_ANONYMOUS isn't defined.
Brian Smith [Sun, 17 Oct 2010 22:06:09 +0000 (15:06 -0700)]
Fix build on OS X; MAP_ANONYMOUS isn't defined.

15 years agoFix memory leak in vstrdupf
jake [Sun, 22 Aug 2010 22:41:25 +0000 (18:41 -0400)]
Fix memory leak in vstrdupf

15 years agoExport vok_at_loc so the library may be extended
jake [Sat, 21 Aug 2010 19:17:58 +0000 (15:17 -0400)]
Export vok_at_loc so the library may be extended

15 years agoWrite dies_ok differently to avoid the compilor warning.
jake [Thu, 22 Jul 2010 04:50:58 +0000 (00:50 -0400)]
Write dies_ok differently to avoid the compilor warning.