/systemd-251/test/test-network/ |
D | systemd-networkd-tests.py | 600 def check_link_exists(self, link): argument 601 self.assertTrue(link_exists(link)) 603 def check_link_attr(self, *args): argument 604 self.assertEqual(read_link_attr(*args[:-1]), args[-1]) 606 def wait_activated(self, link, state='down', timeout=20, fail_assert=True): argument 620 self.fail(f'Timed out waiting for {link} activated.') 623 …def wait_operstate(self, link, operstate='degraded', setup_state='configured', setup_timeout=5, fa… argument 652 self.fail(f'Timed out waiting for {link} to reach state {operstate}/{setup_state}') 655 …def wait_online(self, links_with_operstate, timeout='20s', bool_any=False, ipv4=False, ipv6=False,… argument 694 self.wait_operstate(link.split(':')[0], None, setup_state, setup_timeout) [all …]
|
/systemd-251/test/ |
D | networkd-test.py | 108 def add_veth_pair(self, veth, peer, veth_options=(), peer_options=()): argument 114 self.addCleanup(subprocess.call, ['ip', 'link', 'del', 'dev', peer]) 116 def write_config(self, path, contents): argument 122 self.addCleanup(os.remove, path) 124 def write_network(self, unit_name, contents): argument 126 self.write_config(os.path.join(NETWORK_UNITDIR, unit_name), contents) 128 def write_network_dropin(self, unit_name, dropin_name, contents): argument 134 self.addCleanup(os.rmdir, dropin_dir) 137 self.addCleanup(os.remove, dropin_path) 139 def read_attr(self, link, attribute): argument [all …]
|
D | sysv-generator-test.py | 23 def __setitem__(self, key, value): argument 24 if isinstance(value, list) and key in self: 25 self[key].extend(value) 27 super(MultiDict, self).__setitem__(key, value) 30 def setUp(self): argument 31 self.workdir = tempfile.mkdtemp(prefix='sysv-gen-test.') 32 self.init_d_dir = os.path.join(self.workdir, 'init.d') 33 os.mkdir(self.init_d_dir) 34 self.rcnd_dir = self.workdir 35 self.unit_dir = os.path.join(self.workdir, 'systemd') [all …]
|
D | test-exec-deserialization.py | 27 def setUp(self): argument 28 self.unit = 'test-issue-518.service' 29 self.unitfile_path = '/run/systemd/system/{0}'.format(self.unit) 30 self.output_file = tempfile.mktemp() 31 self.unit_files = {} 38 '''.format(self.output_file) 39 self.unit_files[UnitFileChange.NO_CHANGE] = unit_file_content 46 '''.format(self.output_file) 47 self.unit_files[UnitFileChange.LINES_SWAPPED] = unit_file_content 55 '''.format(self.output_file) [all …]
|
D | sd-script.py | 39 def _init_from_name(self, name): argument 40 mt = self._name_re.match(name) 53 self._num = n 55 def _init_from_dev(self, dev): argument 57 maj = self.sd_major.index(int(maj, 10)) 60 self._num = 16*maj + num%16 + 256*int(num/16) 92 def __init__(self, arg): argument 94 self._num = arg 96 self._init_from_name(arg) 98 self._init_from_dev(arg) [all …]
|
/systemd-251/hwdb.d/ |
D | acpi-update.py | 17 def __init__(self): argument 18 HTMLParser.__init__(self) 19 self.state = State.NOWHERE 20 self.data = "" 21 self.pnpid = None 22 self.company = None 23 self.table = [] 25 def handle_starttag(self, tag, attrs): argument 28 if self.state == State.NOWHERE: 29 self.state = State.COMPANY [all …]
|
/systemd-251/src/udev/ |
D | test-udev-event.c | 47 static void test_event_spawn_self(const char *self, const char *arg, bool with_pidfd) { in test_event_spawn_self() argument 54 assert_se(cmd = strjoin(self, " ", arg)); in test_event_spawn_self() 81 _cleanup_free_ char *self = NULL; in main() local 103 assert_se(path_make_absolute_cwd(argv[0], &self) >= 0); in main() 104 path_simplify(self); in main() 106 test_event_spawn_self(self, "test1", true); in main() 107 test_event_spawn_self(self, "test1", false); in main() 109 test_event_spawn_self(self, "test2", true); in main() 110 test_event_spawn_self(self, "test2", false); in main()
|
/systemd-251/test/test-execute/ |
D | exec-temporaryfilesystem-options.service | 12 # Check /proc/self/mountinfo 13 …$(awk \'$$5 == "/var" && $$11 !~ /(^|,)mode=700(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' 15 …test "$$(awk \'$$5 == "/var" && $$6 !~ /(^|,)ro(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' 16 …t "$$(awk \'$$5 == "/var" && $$6 !~ /(^|,)nodev(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' 17 …(awk \'$$5 == "/var" && $$6 ~ /(^|,)strictatime(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""'
|
D | exec-cpuaffinity1.service | 6 ExecStart=/bin/sh -c 'test $$(cat /proc/self/status | grep Cpus_allowed: | rev | cut -c 1) = 1'
|
D | exec-oomscoreadjust-negative.service | 6 ExecStart=/bin/sh -x -c 'c=$$(cat /proc/self/oom_score_adj); test "$$c" -eq -100'
|
D | exec-oomscoreadjust-positive.service | 6 ExecStart=/bin/sh -x -c 'c=$$(cat /proc/self/oom_score_adj); test "$$c" -eq 100'
|
D | exec-cpuaffinity3.service | 6 ExecStart=/bin/sh -c 'test $$(cat /proc/self/status | grep Cpus_allowed: | rev | cut -c 1) = 7'
|
D | exec-cpuaffinity2.service | 6 ExecStart=/bin/sh -c 'test $$(cat /proc/self/status | grep Cpus_allowed: | rev | cut -c 1) = 1'
|
D | exec-ambientcapabilities-nfsnobody.service | 6 ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 000000000000…
|
D | exec-ambientcapabilities-nobody.service | 6 ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 000000000000…
|
D | exec-ambientcapabilities-merge-nfsnobody.service | 6 ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 000000000000…
|
D | exec-ambientcapabilities-merge-nobody.service | 6 ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 000000000000…
|
D | exec-ambientcapabilities.service | 6 ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 000000000000…
|
D | exec-ambientcapabilities-merge.service | 6 ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 000000000000…
|
D | exec-protectkernelmodules-yes-mount-propagation.service | 7 …$d\' && rmdir \'$$d\'" EXIT; mount -t tmpfs tmpfs "$$d"; grep "$$d" /proc/self/mountinfo && ! grep…
|
/systemd-251/tools/ |
D | xml_helper.py | 7 def resolve(self, url, id, context): argument 9 return self.resolve_filename('man/custom-entities.ent', context)
|
D | gdb-sd_dump_hashmaps.py | 9 def __init__(self): argument 12 def invoke(self, arg, from_tty): argument
|
/systemd-251/shell-completion/zsh/ |
D | _loginctl | 38 _sys_all_sessions=( "self" ) 39 _sys_all_sessions_descr=( "self:alias for the current session" ) 87 _sys_all_seats=( "self" ) 88 _sys_all_seats_descr=( "self:alias for the current seat" )
|
/systemd-251/test/test-network/conf/ |
D | 25-dhcp6pd-upstream.network | 15 UplinkInterface=:self
|
D | 25-dhcp4-6rd-upstream.network | 15 UplinkInterface=:self
|