NetworkManager/src/tests
Thomas Haller 832023fe1c core: add nm_match_spec_split() function
There are currently three device spec properties: 'main.ignore-carrier',
'main.no-auto-default' and 'keyfile.unmanaged-devices'.

The first two, called g_key_file_parse_value_as_string() to split
the string into individual device specs. This uses ',' as separator
and supports escaping using '\\'.

'keyfile.unmanaged-devices' is split using ',' or ';' as separator
without supporting escaping.

Add a new function nm_match_spec_split(), to unify these two behaviors
and support both formats. That is, both previous formats are mostly
supported, but obviously there are some behavioral changes if the string
contains one of '\\', ',', or ';'.

nm_match_spec_split() is copied from glibs g_key_file_parse_value_as_string()
and adjusted.

(cherry picked from commit 3bcc5e4bd0)
2015-06-10 18:33:05 +02:00
..
config device: use NMDeviceCapabilities enum for device capabilities 2015-05-13 18:43:40 +02:00
Makefile.am tests: enable valgrind tests for tests 2015-03-13 11:50:04 +01:00
test-dcb.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-general-with-expect.c core: refactor nm_ethernet_address_is_valid() and reject invalid addresses 2015-04-23 16:40:14 +02:00
test-general.c core: add nm_match_spec_split() function 2015-06-10 18:33:05 +02:00
test-ip4-config.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-ip6-config.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-resolvconf-capture.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-secret-agent.py use /usr/bin/env instead of /bin/env 2011-03-29 01:00:47 +02:00
test-wired-defname.c test: initialize auto-destructed pointers 2015-03-13 11:50:50 +01:00