Colin Walters
9955695da3
syntax-check: Add a rule to enforce glnx_autofd over glnx_fd_close
...
And fix the one final use.
Closes : #1280
Approved by: jlebon
2017-10-17 16:43:02 +00:00
Colin Walters
da0791f484
tests: add a syntax-check rule for glnx_prefix_error()
...
Same as the errno variant; the colon-space `: ` thing got me in a different
patch.
Closes : #956
Approved by: jlebon
2017-06-26 15:09:12 +00:00
Colin Walters
f6255763fd
cfg.mk: Add a syntax check for a redundant : in glnx_throw
...
This is going to be an easy bug to make when porting.
Example spotted by jlebon in 435c2dc35c (diff-dbc2359685171239c4708f2a8f6aa921)
Closes : #752
Approved by: jlebon
2017-03-23 19:09:52 +00:00
Jonathan Lebon
41661e47e1
small cleanups
...
- Revert 'cannot' --> 'can not' (it's the exception!)
- Remove duplicate function
- Squelch compiler warnings
Closes : #248
Approved by: cgwalters
2016-04-08 18:43:18 +00:00
Giuseppe Scrivano
8ff9a48ce3
cfg.mk: ignore syntax-check for git.mk
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes : #246
Approved by: cgwalters
2016-04-08 13:32:41 +00:00
Colin Walters
d25212f04a
tests: Port to glib-tap.mk, make `make check` run all of the tests
...
OSTree's code for testing predates the `glib-tap.mk` making its
way into GLib. Let's switch to it, as it provides a number
of advantages.
By far the biggest advantage is that `make check` can start to run
most of the tests *in addition* to having them work installed.
This commit keeps the installed tests working, but `make check` turns
out to be really broken because...our TAP usage has bitrotted to say
the least. Fix that all up.
Do some hacks so that the tests work uninstalled as well - in
particular, `glib-tap.mk` and the bits encoded into
`g_test_build_filename()` assume *recursive* Automake (blah). Work
around that by creating a symlink when installed to loop back.
2016-03-03 08:50:19 -05:00
Giuseppe Scrivano
82d4e7fe68
Fix make syntax-check
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-03-01 10:08:25 -05:00
Giuseppe Scrivano
d0278b6407
build: exclude .sig files from syntax-check
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-04-03 09:57:20 +02:00
Giuseppe Scrivano
6a3959c895
syntax-check: Remove empty lines at the end of file
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-02-02 15:07:56 +01:00
Giuseppe Scrivano
10642cd732
Replace "==" with "=" in shell script test
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
505ce19972
Do not interleave spaces and tabs
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
e8cbd4b8c5
Remove magic argument numbers to exit(2)
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
ea4683ba06
Remove unused <dirent.h>
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
7154193ae0
Remove unused include <assert.h>
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
e36d3bb25e
syntax-check: quote the first argument to AC_DEFINE
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
b726796f41
Remove trailing dot from error message
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00
Giuseppe Scrivano
42e8cd2691
Add infrastructure for "make syntax-check"
...
New files copied from the gnulib project.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-30 15:27:36 +01:00