Home
last modified time | relevance | path

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

12

/third_party/python/Lib/lib2to3/tests/
Dtest_refactor.py184 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
187 test_file = self.init_test_file(test_file)
188 old_contents = self.read_file(test_file)
193 rt.refactor_file(test_file)
194 self.assertEqual(old_contents, self.read_file(test_file))
198 rt.refactor_file(test_file, True)
199 new_contents = self.read_file(test_file)
203 def init_test_file(self, test_file): argument
206 shutil.copy(test_file, tmpdir)
207 test_file = os.path.join(tmpdir, os.path.basename(test_file))
[all …]
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount07.c34 static char test_file[PATH_MAX]; variable
43 fd = SAFE_CREAT(test_file, O_RDWR); in setup_symlink()
44 SAFE_SYMLINK(test_file, link_file); in setup_symlink()
69 if (strcmp(buf, test_file) != 0) { in test_readlink()
71 buf, test_file); in test_readlink()
86 if (strcmp(TST_RET_PTR, test_file) != 0) { in test_realpath()
88 (char *)TST_RET_PTR, test_file); in test_realpath()
96 TST_EXP_PASS(symlink(test_file, temp_link_file), "symlink(%s, %s)", in test_cycle_link()
97 test_file, temp_link_file); in test_cycle_link()
119 snprintf(test_file, PATH_MAX, "%s/%s/test_file", tst_get_tmpdir(), in setup()
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_conditionals.sh19 local test_file="$PWD/test.txt"
20 local cmd="cat $test_file > /dev/null"
27 ROD rm -f $test_file
31 ROD echo "$(cat /proc/uptime) $request test" \> $test_file
35 chgrp $user $test_file
39 chown $user $test_file
47 ima_check $test_file
Dima_setup.sh269 local test_file="$1"
273 cat $test_file > /dev/null
275 line="$(grep $test_file $ASCII_MEASUREMENTS | tail -1)"
281 tst_res TBROK "failed to get algorithm/digest for '$test_file': $tmp"
285 expected_digest="$(compute_digest $algorithm $test_file)" || \
Dima_keys.sh54 local test_file="file.txt" tmp_file="file2.txt"
81 echo "$line" | cut -d' ' -f6 | tst_hexdump -d > $test_file
83 if ! expected_digest="$(compute_digest $algorithm $test_file)"; then
/third_party/ltp/testcases/kernel/power_management/
Drunpwtests06.sh32 test_file="/proc/sys/kernel/timer_migration"
33 if [ ! -f ${test_file} ] ; then
34 tst_brkm TBROK "MISSING_FILE: missing file ${test_file}"
39 check_input "${valid_input}" valid $test_file
42 check_input "${invalid_input}" invalid $test_file
Drunpwtests02.sh34 test_file="/sys/devices/system/cpu/sched_smt_power_savings"
35 if [ ! -f ${test_file} ] ; then
36 tst_brkm TBROK "MISSING_FILE: missing file ${test_file}"
40 check_input "${valid_input}" valid $test_file
43 check_input "${invalid_input}" invalid $test_file
Drunpwtests01.sh34 test_file="/sys/devices/system/cpu/sched_mc_power_savings"
35 if [ ! -f ${test_file} ] ; then
36 tst_brkm TBROK "MISSING_FILE: missing file ${test_file}"
41 check_input "${valid_input}" valid $test_file
44 check_input "${invalid_input}" invalid $test_file
Dpm_include.sh100 echo ${input} > ${test_file} 2>/dev/null
102 output=$(cat ${test_file})
104 echo "${0}: ${PASS}: echo ${input} > ${test_file}"
109 echo "${0}: ${FAIL}: echo ${input} > ${test_file}"
/third_party/rust/crates/rust-cexpr/tests/
Dclang.rs287 fn test_file(file: &str) -> bool { in test_file() function
322 macro_rules! test_file { macro
327 test_file(concat!("tests/input/", stringify!($f), ".h")),
334 test_file!(floats);
335 test_file!(chars);
336 test_file!(strings);
337 test_file!(int_signed);
338 test_file!(int_unsigned);
339 test_file!(fail);
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
Dcctest.cc46 CcTest::CcTest(TestFunction* callback, const char* test_file, in CcTest() argument
52 char *basename = strrchr(const_cast<char *>(test_file), '/'); in CcTest()
54 basename = strrchr(const_cast<char *>(test_file), '\\'); in CcTest()
57 basename = Strdup(test_file); in CcTest()
/third_party/ltp/testcases/kernel/syscalls/faccessat/
Dfaccessat01.c34 static char *test_file; variable
42 {&dir_fd, &test_file, 0},
83 {&test_file, .str = TESTFILE},
/third_party/ltp/testcases/kernel/syscalls/chmod/
Dchmod01.c23 static char *test_file; variable
30 {&test_file, S_IFREG, "verify permissions of file"},
75 {&test_file, .str = TESTFILE},
/third_party/elfutils/tests/
Drun-large-elf-file.sh73 test_file () function
120 test_file testfile38
123 test_file testfile27
/third_party/unity/auto/
Dstylize_as_junit.rb99 test_file = if test_file_str.length < 2
104 result_output[:source][:path] = File.dirname(test_file)
105 result_output[:source][:file] = File.basename(test_file)
108 @unit_name = File.basename(test_file, '.*')
/third_party/cJSON/tests/unity/auto/
Dstylize_as_junit.rb99 test_file = if test_file_str.length < 2
104 result_output[:source][:path] = File.dirname(test_file)
105 result_output[:source][:file] = File.basename(test_file)
108 @unit_name = File.basename(test_file, '.*')
/third_party/openssl/test/
Dd2i_test.c26 static const char *test_file; variable
55 bio = BIO_new_file(test_file, "r"); in test_bad_asn1()
137 || !TEST_ptr(test_file = test_get_argument(2))) in setup_tests()
/third_party/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c372 struct test_file { struct
386 struct test_file *get_tf(void) in get_tf() argument
422 struct test_file *tf = get_tf(); in get_fd()
428 struct test_file *tf; in open_test_files()
462 struct test_file *tf; in close_test_files()
542 char *fill_tf_buf(struct test_file *tf) in fill_tf_buf()
552 output_line(struct test_file *tf, int op, unsigned offset, in output_line()
589 struct test_file *tf = get_tf(); in doread()
644 struct test_file *tf = get_tf(); in domapread()
722 struct test_file *tf = get_tf(); in dowrite()
[all …]
/third_party/ltp/testcases/kernel/syscalls/symlink/
Dsymlink03.c144 char *test_file; /* testfile name */ in main() local
162 test_file = Test_cases[ind].file; in main()
171 TEST(symlink(test_file, sym_file)); in main()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/
Dradeon_compiler_optimize_tests.c39 struct rc_test_file test_file; in test_rc_optimize() local
43 if (!load_program(c, &test_file, filename)) { in test_rc_optimize()
Dradeon_compiler_regalloc_tests.c50 struct rc_test_file test_file; in test_runner_rc_regalloc() local
58 if (!load_program(c, &test_file, filename)) { in test_runner_rc_regalloc()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/
Dbuild.rs60 let mut test_file = fs::File::create(out_path).unwrap(); in main() localVariable
61 test_file.write_all(test_string.as_bytes()).unwrap(); in main()
/third_party/jerryscript/tools/runners/
Drun-test-suite.py63 … tests.extend([os.path.join(root, test_file) for test_file in files if test_file.endswith('.js')])
/third_party/ltp/testcases/network/nfsv4/acl/
Dtest_acl.py56 for test_file in test.fList:
59 u = subprocess.getoutput('setfacl -m u:' + user + ':' + mode + " " + path + "/" + test_file)
/third_party/spirv-tools/test/diff/diff_files/
Dgenerate_tests.py249 test_file = TEMPLATE_TEST_FILE.format(
264 fout.write(str.encode(test_file))

12