]> begriffs open source - libtap/log
libtap
2 years agoMerge pull request #44 from horgh/horgh/windows master heads/master
Jacob Gelbman [Fri, 17 Nov 2023 22:06:22 +0000 (17:06 -0500)]
Merge pull request #44 from horgh/horgh/windows

Fix compilation on Windows

2 years agoOnly conditionally include sys/types.h and sys/mman.h pull/44/head 44/head
William Storey [Wed, 15 Nov 2023 20:42:54 +0000 (12:42 -0800)]
Only conditionally include sys/types.h and sys/mman.h

To fix building on Windows.

2 years agoMove includes and define to near the top
William Storey [Wed, 15 Nov 2023 20:42:12 +0000 (12:42 -0800)]
Move includes and define to near the top

I missed that a header was included conditionally in a prior PR.

2 years agoMerge pull request #37 from horgh/horgh/macos
Jacob Gelbman [Fri, 3 Feb 2023 17:53:37 +0000 (11:53 -0600)]
Merge pull request #37 from horgh/horgh/macos

Include additional headers to fix compilation on macOS

2 years agoMerge pull request #41 from sni/patch-2
Jacob Gelbman [Fri, 3 Feb 2023 17:51:34 +0000 (11:51 -0600)]
Merge pull request #41 from sni/patch-2

fix dropped const qualifier

2 years agofix dropped const qualifier pull/41/head 41/head
Sven Nierlein [Thu, 2 Feb 2023 23:41:21 +0000 (00:41 +0100)]
fix dropped const qualifier

fixes t/tap.c:201:56: fatal error: cast from 'const void *' to 'unsigned char *' drops const qualifier [-Wcast-qual]

3 years agoMerge pull request #40 from sloanebernstein/force-disable-optimization-on-tests
Jacob Gelbman [Fri, 19 Aug 2022 17:33:05 +0000 (12:33 -0500)]
Merge pull request #40 from sloanebernstein/force-disable-optimization-on-tests

Forcibly disable optimization on tests

3 years agoForcibly disable optimization on tests pull/40/head 40/head
Sloane Bernstein [Fri, 19 Aug 2022 17:12:10 +0000 (12:12 -0500)]
Forcibly disable optimization on tests

GCC on Ubuntu 22.04 is still miscompiling the divide-by-zero test in
t/diesok.c. Since there isn't a clear benefit to compiling the tests
with optimization, and since other options for fixing this issue make
the code GCC-specific, disable optimization entirely when compiling the
tests.

5 years agoInclude additional headers pull/37/head 37/head
William Storey [Thu, 8 Oct 2020 14:26:33 +0000 (07:26 -0700)]
Include additional headers

This is because compilation on macOS 10.15 is failing due to MAP_ANON
not being defined.

5 years agoMerge pull request #36 from gonzus/master
Jacob Gelbman [Sun, 4 Oct 2020 02:44:32 +0000 (22:44 -0400)]
Merge pull request #36 from gonzus/master

Make division by zero test fail

5 years agoMake division by zero test fail pull/36/head 36/head
Gonzalo Diethelm [Mon, 23 Mar 2020 16:45:33 +0000 (17:45 +0100)]
Make division by zero test fail

I am guessing on my environment, `x = x/x` gets optimized by the
compiler into `x = 1`, because the test didn't die; now it does.

7 years agoAdd spacing
Jacob Gelbman [Tue, 11 Dec 2018 19:11:39 +0000 (13:11 -0600)]
Add spacing

7 years agoMerge pull request #34 from alyptik/fix_warnings
Jacob Gelbman [Tue, 11 Dec 2018 19:10:19 +0000 (13:10 -0600)]
Merge pull request #34 from alyptik/fix_warnings

Fix linter and compiler warnings

7 years agoMerge pull request #35 from jeffsw/master
Jacob Gelbman [Tue, 11 Dec 2018 19:07:47 +0000 (13:07 -0600)]
Merge pull request #35 from jeffsw/master

Fix bug which prevents builds for Windows targets

7 years agoMerge commit '72f3c06' pull/35/head 35/head
Jeff Wheeler [Tue, 11 Dec 2018 18:58:14 +0000 (13:58 -0500)]
Merge commit '72f3c06'

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")

7 years agotap.c: fix unused parameter warnings pull/34/head 34/head
Joey Pabalinas [Sat, 27 Oct 2018 19:43:18 +0000 (09:43 -1000)]
tap.c: fix unused parameter warnings

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
7 years agotap:c don't leak arg va_list if format string is NULL
Joey Pabalinas [Sat, 27 Oct 2018 19:42:42 +0000 (09:42 -1000)]
tap:c don't leak arg va_list if format string is NULL

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
7 years agoMerge pull request #33 from travispaul/master
Jacob Gelbman [Thu, 28 Jun 2018 17:47:51 +0000 (12:47 -0500)]
Merge pull request #33 from travispaul/master

Only define define MAP_ANONYMOUS when necessary

7 years agoOnly define define MAP_ANONYMOUS when necessary pull/33/head 33/head
Travis Paul [Thu, 28 Jun 2018 06:08:16 +0000 (06:08 +0000)]
Only define define MAP_ANONYMOUS when necessary

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.