Commit Graph

14 Commits

Author SHA1 Message Date
Thiago Mendes
6470b537d6 Converting Spice_for_newbies.odt to AsciiDoctor format
https://gitlab.freedesktop.org/spice/spice-server/issues/10

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-05-31 15:06:10 +01:00
Frediano Ziglio
ed68d491fd Do not check for HAVE_CONFIG_H
This should always be defined and including config.h is a requirement.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-04-30 09:26:55 +01:00
Frediano Ziglio
0dcb859c92 syntax-check: Remove exclude rules of now compliant code
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-04-30 09:25:28 +01:00
Christophe Fergeau
844544f8be build-sys: Add make check-valgrind target
This allows to run automatically our test-suite with valgrind to test
for memory leaks.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-03-21 16:34:56 +01:00
Frediano Ziglio
e05cf93a01 tests: Normalize test names
Use dash instead of underscores for file names. This is coherent
with rest of file names.
Rename all tests to test-XXX and remove the spice- prefix when
present. This is coherent with most of the tests.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-11-25 13:52:39 +00:00
Pavel Grunt
5554b1ec95 reds: Replace strncpy with g_strlcpy
strncpy is considered unsafe

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-11-21 16:47:51 +00:00
Pavel Grunt
a31e18f264 syntax-check: Skip strncpy check
strncpy used in reds_init_socket() has destination NUL terminated

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-11-18 12:30:56 +00:00
Christophe Fergeau
8c36a85d16 syntax-check: Add exception for server/stat.h
Due to the use of static inline functions, the headers uses
G_GNUC_UNUSED, which the sc_avoid_attribute_unused_in_header test
complains about.

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-11-09 15:37:45 +00:00
Pavel Grunt
2decbd2116 syntax-check: Fix sc_cast_of_argument_to_free
red_replay_qxl.c was renamed in 525cd67be7

Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-01-08 11:24:17 +00:00
Christophe Fergeau
5f6b583e7a syntax-check: Exclude png files from sc_prohibit_empty_lines_at_EOF 2015-10-19 14:25:36 +02:00
Christophe Fergeau
c5df6ada2e syntax-check: Clean-up exception rules
Some files no longer exists, some exceptions are no longer needed, ...
2015-10-19 14:25:36 +02:00
Christophe Fergeau
8dd21e5820 syntax-check: Exclude red_replay_qxl.c from sc_cast_of_argument_to_free
red_replay_qxl.c stores some pointers QXLPHYSICAL data members (ie
uint64_t), and then needs to free them, so the cast is required.
2015-10-19 14:25:36 +02:00
Daniel P. Berrange
f056a53b99 Add a few more syntax-check exemptions
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-04-25 09:49:32 +01:00
Daniel P. Berrange
b5060ff813 Add a 'syntax-check' make target
The 'make syntax-check' target is used to perform various code
style sanity checks, as well as to detect certain trivial error
patterns. The target is placed in GNUmakefile, instead of Makefile.am
since it relies on GNU specific make extensions.

The actual GNUmakefile and maint.mk files are taken from the
GNULIB project, unchanged

The cfg.mk file is used to configure which of the syntax checks
are activated, to allow addition of new project specific syntax
checks, and to blacklist certain files which should not be checked

* .mailmap: Add mapping for various broken email addrs in
  commit log, to stop complaints about AUTHORS file missing
  entries
* GNUmakefile: define the 'syntax-check' rule
* maint.mk: definition of standard syntax checks
* cfg.mk: configuration for checks
2012-01-13 18:12:00 +02:00