/third_party/unity/test/tests/ |
H A D | test_generate_test_runner.rb | 16 :testfile => 'testdata/testRunnerGenerator.c', 35 :testfile => 'testdata/testRunnerGenerator.c', 54 :testfile => 'testdata/testRunnerGenerator.c', 74 :testfile => 'testdata/testRunnerGenerator.c', 91 :testfile => 'testdata/testRunnerGenerator.c', 104 :testfile => 'testdata/testRunnerGenerator.c', 120 :testfile => 'testdata/testRunnerGenerator.c', 141 :testfile => 'testdata/testRunnerGenerator.c', 162 :testfile => 'testdata/testRunnerGenerator.c', 180 :testfile [all...] |
/third_party/cJSON/tests/unity/test/tests/ |
H A D | test_generate_test_runner.rb | 16 :testfile => 'testdata/testRunnerGenerator.c', 35 :testfile => 'testdata/testRunnerGenerator.c', 54 :testfile => 'testdata/testRunnerGenerator.c', 74 :testfile => 'testdata/testRunnerGenerator.c', 91 :testfile => 'testdata/testRunnerGenerator.c', 104 :testfile => 'testdata/testRunnerGenerator.c', 120 :testfile => 'testdata/testRunnerGenerator.c', 141 :testfile => 'testdata/testRunnerGenerator.c', 160 :testfile => 'testdata/testRunnerGenerator.c', 176 :testfile [all...] |
/third_party/python/Lib/test/ |
H A D | audiotests.py | 55 def create_file(self, testfile): 56 f = self.fout = self.module.open(testfile, 'wb') 63 def check_file(self, testfile, nframes, frames): 64 with self.module.open(testfile, 'rb') as f: 86 with open(TESTFN, 'wb') as testfile: 87 with self.module.open(testfile): 91 with open(TESTFN, 'wb') as testfile: 92 with self.module.open(testfile) as f: 97 self.assertEqual(testfile.closed, self.close_fd) 98 with open(TESTFN, 'rb') as testfile [all...] |
H A D | test_imghdr.py | 39 cls.testfile = findfile('python.png', subdir='imghdrdata') 40 with open(cls.testfile, 'rb') as stream: 87 imghdr.what(self.testfile, 1) 89 imghdr.what(os.fsencode(self.testfile)) 90 with open(self.testfile, 'rb') as f: 120 stream = open(self.testfile, 'rb')
|
/third_party/ltp/testcases/kernel/syscalls/dup/ |
H A D | dup07.c | 42 static const char *testfile = "dup07"; variable 62 if ((rdoret = creat(testfile, 0444)) == -1) { in main() 63 tst_resm(TFAIL, "Unable to creat file '%s'", testfile); in main() 66 tst_resm(TFAIL, "Unable to dup '%s'", testfile); in main() 82 unlink(testfile); in main() 84 if ((wroret = creat(testfile, 0222)) == -1) { in main() 85 tst_resm(TFAIL, "Unable to creat file '%s'", testfile); in main() 88 tst_resm(TFAIL, "Unable to dup '%s'", testfile); in main() 105 unlink(testfile); in main() 107 if ((rdwret = creat(testfile, 066 in main() [all...] |
/third_party/elfutils/tests/ |
H A D | run-compress-test.sh | 68 testfile="$1" 69 testfiles ${testfile} 70 testrun_elfcompress_file ${testfile} 73 mergedfile="${testfile}.merged" 75 echo "merging string tables ${testfile} -> ${mergedfile}" 76 testrun ${abs_top_builddir}/tests/elfstrmerge -o ${mergedfile} ${testfile} 80 # Random ELF32 testfile 83 # Random ELF64 testfile 86 # Random ELF64BE testfile 89 # Random ELF32BE testfile [all...] |
H A D | run-elfstrmerge-test.sh | 23 testfile="$1" 24 testfiles ${testfile} 26 mergedfile="${testfile}.merged" 29 echo "merging string tables ${testfile} -> ${mergedfile}" 30 testrun ${abs_top_builddir}/tests/elfstrmerge -o ${mergedfile} ${testfile} 34 # Random ELF32 testfile with extra STT_SECTION symbols 37 # Random ELF64 testfile with extra STT_SECTION symbols
|
H A D | run-strip-reloc.sh | 140 testfiles testfile-debug-rel-ppc64.o 141 runtest testfile-debug-rel-ppc64.o 1 143 testfiles testfile-debug-rel-ppc64-z.o 144 runtest testfile-debug-rel-ppc64-z.o 1 146 testfiles testfile-debug-rel-ppc64-g.o 147 runtest testfile-debug-rel-ppc64-g.o 1
|
/third_party/libfuse/test/ |
H A D | test_syscalls.c | 26 static char testfile[1024]; variable 104 // Use dedicated testfile per test in __start_test() 105 sprintf(testfile, "%s/testfile.%d", basepath, testnum); in __start_test() 106 sprintf(testfile_r, "%s/testfile.%d", basepath_r, testnum); in __start_test() 538 ERROR("testfile already created"); in create_testfile() 591 fprintf(stderr, "%i unlinked testfile checks failed\n", -err); in check_unlinked_testfiles() 662 res = create_testfile(testfile, data, datalen); in test_truncate() 666 res = truncate(testfile, len); in test_truncate() 671 res = check_testfile_size(testfile, le in test_truncate() [all...] |
/third_party/ltp/testcases/kernel/security/smack/ |
H A D | smack_file_access.sh | 33 testfile="testfile" 38 smack_notroot /bin/sh -c "echo InitialData 2>/tmp/smack_fail.log > $testfile" 39 if [ ! -f "$testfile" ]; then 40 tst_brkm TFAIL "Test file \"$testfile\" can not be created." 43 setfattr --name=security.SMACK64 --value=TheOther "$testfile" 44 setto=$(getfattr --only-values -n security.SMACK64 -e text $testfile) 47 tst_brkm TFAIL "Test file \"$testfile\" labeled \"$setto\" incorrectly." 63 got_read=$(smack_notroot $CAT "$testfile") 66 tst_brkm TFAIL "Read failed for \"$testfile\" labele [all...] |
/third_party/ltp/testcases/kernel/syscalls/unlinkat/ |
H A D | unlinkat01.c | 22 testfile[] = "unlinkattestfile.txt", variable 44 {0, testfile, 0, 0}, 46 {0, testfile, 0, ENOTDIR}, 47 {100, testfile, 0, EBADF}, 48 {0, testfile, 9999, EINVAL}, 49 {AT_FDCWD, testfile, 0, 0}, 69 /* testfile must exist except test1 and test6. */ in run() 70 if (access(testfile, F_OK)) in run() 71 SAFE_FILE_PRINTF(testfile, testfile); in run() [all...] |
/third_party/ltp/testcases/kernel/fs/fs_di/ |
H A D | fs_di | 98 rm -f $TCtmp/testfile* 199 create_datafile $SIZE $TCtmp/testfile >/dev/null 201 end_testcase "Could not create testfile of size ${SIZE}Mb" 227 cp $TCtmp/testfile ${TESTFS}/${FILEPATH} 228 cmp $TCtmp/testfile ${TESTFS}/${FILEPATH}/testfile 233 cp ${TESTFS}/${FILEPATH}/testfile $TCtmp/testfile_copy 234 cmp $TCtmp/testfile $TCtmp/testfile_copy 240 rm -f $TCtmp/testfile* 251 create_datafile $DISK_SIZE $TCtmp/testfile >/de [all...] |
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
H A D | dup202.c | 28 static char testfile[40]; variable 53 sprintf(testfile, "dup202.%d", getpid()); in setup() 56 nextfd = SAFE_CREAT(testfile, 0777); in setup() 65 SAFE_UNLINK(testfile); in setup() 81 ofd = SAFE_CREAT(testfile, 0777); in run() 83 ofd = SAFE_CREAT(testfile, tc->mode); in run() 92 SAFE_CHMOD(testfile, tc->mode); in run() 110 SAFE_UNLINK(testfile); in run()
|
/third_party/ltp/testcases/network/nfsv4/acl/ |
H A D | test_acl.py | 28 u = subprocess.getoutput('touch ' + path + "/" + testdir + testfile) 30 u = subprocess.getoutput('getfacl ' + path + "/" + testdir + testfile) 71 testfile = 'testfile' + str(i) 72 u = subprocess.getoutput('touch ' + path + "/" + testfile) 77 u = subprocess.getoutput('setfacl -m u:' + user + ':' + mode + " " + path + "/" + testfile) 94 testfile = 'testfile' + str(i) 96 u = subprocess.getoutput('touch ' + path + "/" + testfile) 101 u = subprocess.getoutput('setfacl -m u:' + user + ':' + mode + " " + path + "/" + testfile) [all...] |
H A D | test_long_acl.py | 27 testfile = 'testfile' + str(i) 28 u = subprocess.getoutput('touch ' + path + "/" + testfile) 33 u = subprocess.getoutput('setfacl -m u:' + user + ':' + mode + " " + path + "/" + testfile) 35 print("setfacl -m u:" + user + ':' + mode + " " + path + "/" + testfile)
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_images.py | 69 cls.testfile = support.findfile('python.xbm', subdir='imghdrdata') 74 file=self.testfile) 85 with open(self.testfile, 'rb') as f: 106 with open(self.testfile, 'rb') as f: 122 image.configure(file=self.testfile) 124 ('-file', '', '', '',self.testfile)) 129 image.configure(maskfile=self.testfile) 131 ('-maskfile', '', '', '', self.testfile)) 153 cls.testfile = support.findfile('python.gif', subdir='imghdrdata') 157 file=self.testfile) [all...] |
/third_party/ltp/testcases/kernel/syscalls/mknodat/ |
H A D | mknodat01.c | 47 static char testfile[256]; variable 61 {&dir_fd, testfile, 0, 0}, 64 {&fd_invalid, testfile, -1, EBADF}, 65 {&fd_atcwd, testfile, 0, 0} 130 sprintf(testfile, "mknodattestfile%d", getpid()); in setup() 145 SAFE_UNLINK(cleanup, testfile); in clean()
|
/third_party/jerryscript/tools/runners/ |
H A D | run-unittests.py | 44 for testfile in files: 45 if os.path.isfile(testfile) and os.access(testfile, os.X_OK): 46 if sys.platform != 'win32' or testfile.endswith(".exe"): 47 unittests.append(testfile)
|
/third_party/ltp/testcases/kernel/syscalls/fchmodat/ |
H A D | fchmodat01.c | 28 static char testfile[256]; variable 68 sprintf(testfile, "fchmodattest%d.txt", p); in setup() 79 SAFE_FILE_PRINTF(testfile, "%s", testfile); in setup() 86 filenames[0] = filenames[2] = filenames[3] = filenames[4] = testfile; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/faccessat2/ |
H A D | faccessat201.c | 29 static char *testfile; variable 39 {&dir_fd, &testfile, 0}, 42 {&dir_fd, &testfile, AT_EACCESS}, 82 {&testfile, .str = TESTFILE},
|
/third_party/mesa3d/src/compiler/glsl/glcpp/tests/ |
H A D | glcpp_test.py | 103 testfile = os.path.join(args.testdir, filename) 104 with open(testfile, 'rb') as f: 106 valid, diff = test_output(args.glcpp, contents, testfile + '.expected') 133 testfile = os.path.join(args.testdir, filename) 135 with open(testfile, 'rt') as f: 139 args.glcpp, contents, testfile + '.expected', nl_format=replace)
|
/third_party/jerryscript/tools/ |
H A D | heaplimit_measure.py | 41 parser.add_argument('testfile') 53 files = [JERRY_BUILDER, opts.testfile] 76 """ Run the testfile to get the exitcode. """ 78 testfile = os.path.abspath(opts.testfile) 79 run_cmd = [JERRY_BIN, testfile] 107 'testfile': opts.testfile,
|
/third_party/ltp/testcases/kernel/syscalls/setfsuid/ |
H A D | setfsuid04.c | 48 static char testfile[] = "setfsuid04_testfile"; variable 91 TEST(open(testfile, O_RDWR)); in do_master_child() 117 TEST(open(testfile, O_RDWR)); in do_master_child() 152 TEST(open(testfile, O_RDWR)); in do_master_child() 178 fd = SAFE_OPEN(cleanup, testfile, O_CREAT | O_RDWR, 0644); in setup()
|
/third_party/openssl/test/testutil/ |
H A D | stanza.c | 19 int test_start_file(STANZA *s, const char *testfile) in test_start_file() argument 21 TEST_info("Reading %s", testfile); in test_start_file() 22 set_test_title(testfile); in test_start_file() 24 if (!TEST_ptr(s->fp = BIO_new_file(testfile, "r"))) in test_start_file() 26 s->test_file = testfile; in test_start_file()
|
/third_party/ltp/testcases/kernel/syscalls/futimesat/ |
H A D | futimesat01.c | 51 testfile[] = "futimesattestfile.txt", variable 111 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup() 119 filenames[0] = filenames[2] = filenames[3] = filenames[4] = testfile; in setup()
|