Home
last modified time | relevance | path

Searched refs:test_file (Results 1 – 24 of 24) sorted by relevance

/openbmc/openbmc/meta-security/recipes-mac/smack/udp-smack-test/
H A Dtest_smack_udp_sockets.sh3 test_file="/tmp/smack_socket_udp"
30 $udp_server 50021 label2 2>$test_file &
33 $udp_client 50021 label1 2>$test_file &
48 $udp_server 50022 label2 2>$test_file &
51 $udp_client 50022 label1 2>$test_file &
66 $udp_client 50023 label1 2>$test_file &
79 $udp_server 50024 \* 2>$test_file &
82 $udp_client 50024 label1 2>$test_file &
95 $udp_server 50025 label1 2>$test_file &
98 $udp_client 50025 \* 2>$test_file &
/openbmc/openbmc/meta-security/recipes-mac/smack/tcp-smack-test/
H A Dtest_smack_tcp_sockets.sh3 test_file=/tmp/smack_socket_tcp
49 $tcp_server 50017 label1 2>$test_file &
52 $tcp_client 50017 label2 label1 2>$test_file &
64 $tcp_server 50018 label1 2>$test_file &
67 $tcp_client 50018 label1 label1 2>$test_file &
80 $tcp_server 50019 \* 2>$test_file &
83 $tcp_client 50019 label1 label1 2>$test_file &
96 $tcp_server 50020 label1 2>$test_file &
99 $tcp_client 50020 label1 \* 2>$test_file &
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dstorage.py37 (status, output) = cls.target.run('touch %s/%s' % (cls.test_dir, cls.test_file))
38 msg = ('File %s not created on %s' % (cls.test_file, cls.device))
42 (cls.test_dir, cls.test_file, cls.test_dir, cls.test_file))
43 msg = ('File %s not moved to %s' % (cls.test_file, cls.device))
46 (status, output) = cls.target.run('rm %s/%s1' % (cls.test_dir, cls.test_file))
47 msg = ('File %s not removed on %s' % (cls.test_file, cls.device))
53 (cls.test_dir, cls.test_file))
56 msg = ('Test message %s not in file %s.' % (cls.test_msg, cls.test_file))
62 (cls.test_msg, cls.test_dir, cls.test_file))
63 msg = ('File %s not create test message on %s' % (cls.test_file, cls.device))
[all …]
H A Drpm.py92 self.test_file = os.path.join(rpmdir, f)
101 self.tc.target.copyTo(self.test_file, self.dst)
132 self.tc.target.copyTo(self.test_file, self.dst)
/openbmc/u-boot/test/py/tests/
H A Dtest_hush_if_test.py138 test_file = u_boot_console.config.result_dir + \
142 os.unlink(test_file)
145 assert not os.path.exists(test_file)
147 expr = 'test -e hostfs - ' + test_file
151 with open(test_file, 'wb'):
153 assert os.path.exists(test_file)
155 expr = 'test -e hostfs - ' + test_file
158 os.unlink(test_file)
160 expr = 'test -e hostfs - ' + test_file
/openbmc/openbmc/meta-security/recipes-mac/smack/smack-test/
H A Dsmack_test_file_access.sh6 test_file=$TMP/smack_test_access_file
11 python3 $TMP/notroot.py $uid "TheOther" $ECHO 'TEST' > $test_file
12 chsmack -a "TheOther" $test_file
20 python3 $TMP/notroot.py $uid "TheOne" $CAT $test_file 2>&1 1>/dev/null | grep -q "Permission denied…
28 python3 $TMP/notroot.py $uid "TheOne" $CAT $test_file | grep -q "TEST" || RC=$?
38 chsmack -a '*' $test_file
39 python3 $TMP/notroot.py $uid "TheOne" $CAT $test_file | grep -q "TEST" || RC=$?
/openbmc/qemu/block/
H A Dblkverify.c23 BdrvChild *test_file; member
133 s->test_file = bdrv_open_child(qemu_opt_get(opts, "x-image"), options, in blkverify_open()
136 if (!s->test_file) { in blkverify_open()
155 bdrv_unref_child(bs, s->test_file); in blkverify_close()
156 s->test_file = NULL; in blkverify_close()
165 return bdrv_co_getlength(s->test_file->bs); in blkverify_co_getlength()
174 r->ret = r->request_fn(s->test_file, r->offset, r->bytes, r->qiov, in blkverify_do_test_req()
273 return bdrv_co_flush(s->test_file->bs); in blkverify_co_flush()
288 bdrv_recurse_can_replace(s->test_file->bs, to_replace); in blkverify_recurse_can_replace()
296 && s->test_file->bs->exact_filename[0]) in blkverify_refresh_filename()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qdict.c291 FILE *test_file; in qdict_stress_test() local
296 test_file = fopen(test_file_path, "r"); in qdict_stress_test()
297 g_assert(test_file != NULL); in qdict_stress_test()
305 value = read_line(test_file, key); in qdict_stress_test()
314 reset_file(test_file); in qdict_stress_test()
318 value = read_line(test_file, key); in qdict_stress_test()
333 reset_file(test_file); in qdict_stress_test()
335 value = read_line(test_file, key); in qdict_stress_test()
344 fclose(test_file); in qdict_stress_test()
/openbmc/linux/lib/
H A Dtest_lockup.c144 struct file *test_file; variable
534 test_file = filp_open(test_file_path, O_RDONLY, 0); in test_lockup_init()
535 if (IS_ERR(test_file)) { in test_lockup_init()
536 pr_err("failed to open %s: %ld\n", test_file_path, PTR_ERR(test_file)); in test_lockup_init()
537 return PTR_ERR(test_file); in test_lockup_init()
539 test_inode = file_inode(test_file); in test_lockup_init()
550 if (test_lock_mapping && test_file && test_file->f_mapping) in test_lockup_init()
551 lock_rwsem_ptr = (unsigned long)&test_file->f_mapping->i_mmap_rwsem; in test_lockup_init()
608 if (test_file) in test_lockup_init()
609 fput(test_file); in test_lockup_init()
/openbmc/openpower-vpd-parser/test/
H A Dmeson.build64 foreach test_file : tests
66 test_file,
68 test_file.underscorify(),
69 test_file,
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dselftest.py24 test_file = "external-layer.py"
29 found_file = search_test_file(test_file)
30 self.assertTrue(found_file, msg="Can't find %s in the oeqa path" % test_file)
/openbmc/linux/drivers/platform/x86/intel/ifs/
H A Dload.c154 char test_file[64]; in validate_ifs_metadata() local
157 snprintf(test_file, sizeof(test_file), "%02x-%02x-%02x-%02x.scan", in validate_ifs_metadata()
163 dev_err(dev, "IFS Metadata missing in file %s\n", test_file); in validate_ifs_metadata()
172 IFS_CHUNK_ALIGNMENT, test_file); in validate_ifs_metadata()
178 test_file, ifs_meta->current_image); in validate_ifs_metadata()
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/oelib/
H A Dbuildhistory.py26 self.test_file = "test"
52 with open(os.path.join(self.repo_path, self.test_file), 'w') as repo_file:
85 change_records = compare_dict_blobs(os.path.join(self.repo_path, self.test_file),
104 change_records = compare_dict_blobs(os.path.join(self.repo_path, self.test_file),
/openbmc/openbmc/poky/bitbake/lib/toaster/bldcontrol/management/commands/
H A Drunbuilds.py195 test_file = os.path.join(builddir, '._toaster_check.txt')
196 … os.system("tail -n 50 %s > %s" % (os.path.join(builddir, 'toaster_ui.log'),test_file))
199 with open(test_file,'r') as test_file_fd:
229 if os.path.isfile(test_file):
230 os.remove(test_file)
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dump.c50 char test_file[256], out_file[256], diff_cmd[1024]; in test_btf_dump_case() local
55 snprintf(test_file, sizeof(test_file), "%s.bpf.o", t->file); in test_btf_dump_case()
57 btf = btf__parse_elf(test_file, NULL); in test_btf_dump_case()
96 snprintf(test_file, sizeof(test_file), "progs/%s.c", t->file); in test_btf_dump_case()
97 if (access(test_file, R_OK) == -1) in test_btf_dump_case()
102 snprintf(test_file, sizeof(test_file), "%s.c", t->file); in test_btf_dump_case()
115 test_file, out_file); in test_btf_dump_case()
/openbmc/qemu/tests/tcg/multiarch/linux/
H A Dlinux-madvise.c29 static void test_file(void) in test_file() function
69 test_file(); in main()
H A Dlinux-test.c75 static void test_file(void) in test_file() function
535 test_file(); in main()
/openbmc/qemu/tests/qemu-iotests/
H A Dfindtests.py68 test_file = self.parse_test_name(words[0])
72 self.groups[g].add(test_file)
/openbmc/linux/tools/perf/tests/
H A Dsymbols.c100 static int test_file(struct test_info *ti, char *filename) in test_file() function
145 ret = test_file(&ti, filename); in test__symbols()
H A Ddso-data.c18 static char *test_file(int size) in test_file() function
120 char *file = test_file(TEST_FILE_SIZE); in test__dso_data()
214 file = test_file(size); in dsos__create()
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dsubpage_prot.c185 int test_file(void) in test_file() function
235 return test_harness(test_file, "subpage_prot_file"); in main()
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dpackage_manager.py188 test_file = getCaseFile(test_case)
189 json_file = _get_json_file(test_file)
/openbmc/openbmc/poky/meta/recipes-devtools/elfutils/
H A Delfutils_0.192.bb81 for test_file in ${TEST_FILES}; do
82 if [ -f ${B}/src/${test_file} ]; then
83 cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src
/openbmc/qemu/docs/devel/testing/
H A Dfunctional.rst67 $ pyvenv/bin/python3 ../tests/functional/test_file.py