Home
last modified time | relevance | path

Searched refs:testfile (Results 1 – 25 of 182) sorted by relevance

12345678

/external/python/cpython2/Lib/test/
Daudiotests.py71 def create_file(self, testfile): argument
72 f = self.fout = self.module.open(testfile, 'wb')
79 def check_file(self, testfile, nframes, frames): argument
80 f = self.module.open(testfile, 'rb')
107 with open(TESTFN, 'wb') as testfile:
108 testfile.write(b'ababagalamaga')
109 f = self.create_file(testfile)
114 with open(TESTFN, 'rb') as testfile:
115 self.assertEqual(testfile.read(13), b'ababagalamaga')
116 self.check_file(testfile, self.nframes, self.frames)
[all …]
/external/elfutils/tests/
Drun-strip-test.sh23 debugout=${debugfile:+-f testfile.debug.temp -F $debugfile}
28 tempfiles testfile.temp testfile.debug.temp testfile.unstrip
30 testrun ${abs_top_builddir}/src/strip -o testfile.temp $debugout $original
34 cmp $stripped testfile.temp || status=$?
37 testrun ${abs_top_builddir}/src/elflint --gnu -q testfile.temp || status=$?
40 cmp $debugfile testfile.debug.temp || status=$?
43 testrun ${abs_top_builddir}/src/elflint --gnu -q -d testfile.debug.temp || status=$?
46 testrun ${abs_top_builddir}/src/unstrip -o testfile.unstrip testfile.temp testfile.debug.temp
49 testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.unstrip
53 testrun ${abs_top_builddir}/src/strip -g -o testfile.temp $original
[all …]
Drun-dwarf-die-addr-die.sh21 testfiles testfile-debug-types
23 testrun ${abs_builddir}/dwarf-die-addr-die testfile-debug-types
36 testfiles testfile-dwarf-4 testfile-dwarf-5
37 testfiles testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4.dwo
38 testfiles testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5.dwo
40 testrun ${abs_builddir}/dwarf-die-addr-die testfile-dwarf-4
41 testrun ${abs_builddir}/dwarf-die-addr-die testfile-dwarf-5
42 testrun ${abs_builddir}/dwarf-die-addr-die testfile-splitdwarf-4
43 testrun ${abs_builddir}/dwarf-die-addr-die testfile-splitdwarf-5
44 testrun ${abs_builddir}/dwarf-die-addr-die testfile-hello4.dwo
[all …]
Drun-unit-info.sh21 testfiles testfile-debug-types
23 testrun ${abs_builddir}/unit-info testfile-debug-types
36 testfiles testfile-dwarf-4 testfile-dwarf-5
37 testfiles testfile-splitdwarf-4 testfile-splitdwarf-5
38 testfiles testfile-hello4.dwo testfile-hello5.dwo
39 testfiles testfile-world4.dwo testfile-world5.dwo
41 testrun ${abs_builddir}/unit-info testfile-dwarf-4
42 testrun ${abs_builddir}/unit-info testfile-dwarf-5
48 testfile-splitdwarf-4 testfile-splitdwarf-5 <<\EOF
49 file: testfile-splitdwarf-4
[all …]
Drun-get-units-split.sh21 testfiles testfile-debug-types
23 testrun ${abs_builddir}/get-units-split testfile-debug-types
36 testfiles testfile-dwarf-4 testfile-dwarf-5
37 testfiles testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4.dwo
38 testfiles testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5.dwo
40 testrun ${abs_builddir}/get-units-split testfile-dwarf-4
41 testrun ${abs_builddir}/get-units-split testfile-dwarf-5
44 testrun_compare ${abs_builddir}/get-units-split testfile-splitdwarf-4 << \EOF
45 file: testfile-splitdwarf-4
53 testrun_compare ${abs_builddir}/get-units-split testfile-splitdwarf-5 << \EOF
[all …]
Drun-next-files.sh21 testfiles testfile testfile2
23 testrun_compare ${abs_builddir}/next-files testfile testfile2 <<\EOF
68 testfiles testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4.dwo
69 testfiles testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5.dwo
71 testrun_compare ${abs_builddir}/next-files testfile-splitdwarf-4 testfile-hello4.dwo testfile-world…
103 testrun_compare ${abs_builddir}/next-files testfile-splitdwarf-5 testfile-hello5.dwo testfile-world…
139 testfiles testfile-only-debug-line
140 testrun_compare ${abs_builddir}/next-files testfile-only-debug-line <<\EOF
Drun-readelf-str.sh21 testfiles testfile-splitdwarf-4 testfile-splitdwarf-5
22 testfiles testfile-hello4.dwo testfile-hello5.dwo
23 testfiles testfile-world4.dwo testfile-world5.dwo
27 …top_builddir}/src/readelf --dwarf-skeleton testfile-splitdwarf-4 --debug-dump=str testfile-hello4.…
29 testfile-hello4.dwo:
60 testfile-world4.dwo:
114 …top_builddir}/src/readelf --dwarf-skeleton testfile-splitdwarf-5 --debug-dump=str testfile-hello5.…
116 testfile-hello5.dwo:
153 testfile-world5.dwo:
Drun-strip-remove-keep.sh21 tempfiles testfile.elf testfile.debug
24 testfiles testfile
27 echo strip --keep-section=.strtab testfile
28 …run ${abs_top_builddir}/src/strip --keep-section=.strtab -o testfile.elf -f testfile.debug testfile
29 echo elflint testfile.elf
30 testrun ${abs_top_builddir}/src/elflint --gnu testfile.elf
31 echo elflint testfile.debug
32 testrun ${abs_top_builddir}/src/elflint --gnu -d testfile.debug
33 echo readelf testfile.elf
34 testrun_compare ${abs_top_builddir}/src/readelf -S testfile.elf <<\EOF
[all …]
Drun-readelf-zdebug-rel.sh44 testfiles testfile-debug-rel.o testfile-debug-rel-g.o testfile-debug-rel-z.o
65 decl_file (data1) testfile-zdebug-rel.c (1)
77 decl_file (data1) testfile-zdebug-rel.c (1)
83 decl_file (data1) testfile-zdebug-rel.c (1)
90 decl_file (data1) testfile-zdebug-rel.c (1)
96 decl_file (data1) testfile-zdebug-rel.c (1)
121 cat info.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=info testfile-debug-…
123 …fo'/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=info testfile-debug-rel-g.o
125 cat info.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=info testfile-debug-…
143 cat loc.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=loc testfile-debug-re…
[all …]
Drun-compress-test.sh68 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}
93 testrun_elfcompress testfile-zgnu64
94 testrun_elfcompress testfile-zgnu64be
95 testrun_elfcompress testfile-zgabi64
96 testrun_elfcompress testfile-zgabi64be
[all …]
Drun-get-files.sh21 testfiles testfile testfile2
23 testrun_compare ${abs_builddir}/get-files testfile testfile2 <<\EOF
68 testfiles testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4.dwo
69 testfiles testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5.dwo
71 testrun_compare ${abs_builddir}/get-files testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4…
102 testrun_compare ${abs_builddir}/get-files testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5…
Drun-strip-test-many.sh23 testfiles testfile
24 tempfiles testfile1.strip testfile2.strip testfile1.debug testfile2.debug testfile.unstrip
27 testrun ${abs_builddir}/addsections 65535 testfile ||
31 testrun ${abs_top_builddir}/src/strip -o testfile1.strip -f testfile1.debug testfile ||
45 testrun ${abs_top_builddir}/src/unstrip -o testfile.unstrip testfile1.strip testfile1.debug ||
49 testrun ${abs_top_builddir}/src/elfcmp testfile testfile.unstrip ||
54 testrun ${abs_top_builddir}/src/strip -g -o testfile2.strip -f testfile2.debug testfile ||
68 SIZE_original=$(stat -c%s testfile)
71 testrun ${abs_top_builddir}/src/strip testfile ||
74 SIZE_stripped=$(stat -c%s testfile)
[all …]
Drun-elfgetzdata.sh22 testfiles testfile-zgnu64
23 testrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgnu64 <<\EOF
34 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu64 <<\EOF
45 testfiles testfile-zgnu64be
46 testrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgnu64be <<\EOF
58 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgnu64be <<\EOF
70 testfiles testfile-zgabi64
71 testrun_compare ${abs_top_builddir}/tests/elfgetzdata read testfile-zgabi64 <<\EOF
82 testrun_compare ${abs_top_builddir}/tests/elfgetzdata mmap testfile-zgabi64 <<\EOF
93 testfiles testfile-zgabi64be
[all …]
Drun-attr-integrate-skel.sh21 testfiles testfile-splitdwarf-4 testfile-hello4.dwo testfile-world4.dwo
22 testfiles testfile-splitdwarf-5 testfile-hello5.dwo testfile-world5.dwo
24 testrun_compare ${abs_builddir}/attr-integrate-skel testfile-splitdwarf-4 << EOF
25 file: testfile-splitdwarf-4
38 testrun_compare ${abs_builddir}/attr-integrate-skel testfile-splitdwarf-5 << EOF
39 file: testfile-splitdwarf-5
Drun-unstrip-test.sh25 tempfiles testfile.unstrip testfile.inplace
32 testrun ${abs_top_builddir}/src/unstrip -o testfile.unstrip $stripped $debugfile
34 testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.unstrip
38 rm -f testfile.inplace
39 cp $debugfile testfile.inplace
40 chmod 644 testfile.inplace
41 testrun ${abs_top_builddir}/src/unstrip $stripped testfile.inplace
43 testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.inplace
Drun-elfgetchdr.sh88 testfiles testfile-zgnu64
89 testrun_compare ${abs_top_builddir}/tests/elfgetchdr testfile-zgnu64 <<\EOF
100 testfiles testfile-zgabi64
101 testrun_compare ${abs_top_builddir}/tests/elfgetchdr testfile-zgabi64 <<\EOF
112 testfiles testfile-zgnu32
113 testrun_compare ${abs_top_builddir}/tests/elfgetchdr testfile-zgnu32 <<\EOF
124 testfiles testfile-zgabi32
125 testrun_compare ${abs_top_builddir}/tests/elfgetchdr testfile-zgabi32 <<\EOF
136 testfiles testfile-zgnu64be
137 testrun_compare ${abs_top_builddir}/tests/elfgetchdr testfile-zgnu64be <<\EOF
[all …]
DMakefile.am188 run-next-files.sh run-next-lines.sh testfile-only-debug-line.bz2 \
192 testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
203 run-annobingroup.sh testfile-annobingroup.o.bz2 \
204 testfile-annobingroup-i386.o.bz2 \
205 testfile-annobingroup-x86_64.o.bz2 \
207 testfile-nobitsalign.bz2 testfile-nobitsalign.strip.bz2 \
212 testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \
213 testfile-info-link.stripped.bz2 run-unstrip-test3.sh \
214 run-unstrip-test4.sh testfile-strtab.bz2 \
215 testfile-strtab.stripped.bz2 testfile-strtab.debuginfo.bz2 \
[all …]
Drun-low_high_pc.sh32 testfiles testfile-splitdwarf-4 testfile-splitdwarf-5
33 testfiles testfile-hello4.dwo testfile-hello5.dwo
34 testfiles testfile-world4.dwo testfile-world5.dwo
36 testrun ${abs_builddir}/low_high_pc -e testfile-splitdwarf-4
37 testrun ${abs_builddir}/low_high_pc -e testfile-splitdwarf-5
/external/python/cpython3/Lib/test/
Daudiotests.py66 def create_file(self, testfile): argument
67 f = self.fout = self.module.open(testfile, 'wb')
74 def check_file(self, testfile, nframes, frames): argument
75 with self.module.open(testfile, 'rb') as f:
97 with open(TESTFN, 'wb') as testfile:
98 with self.module.open(testfile):
102 with open(TESTFN, 'wb') as testfile:
103 with self.module.open(testfile) as f:
108 self.assertEqual(testfile.closed, self.close_fd)
109 with open(TESTFN, 'rb') as testfile:
[all …]
/external/fonttools/Tests/ttLib/tables/
Dtables_test.py244 def getpath(testfile): argument
246 return os.path.join(path, "data", testfile)
249 def read_expected_ttx(testfile, tableTag): argument
250 name = os.path.splitext(testfile)[0]
273 def open_font(testfile): argument
274 font = TTFont(getpath(testfile))
281 def _skip_if_requirement_missing(testfile): argument
282 if testfile in TEST_REQUIREMENTS:
283 for req in TEST_REQUIREMENTS[testfile]:
288 def test_xml_from_binary(testfile, tableTag): argument
[all …]
/external/ltp/testcases/kernel/syscalls/dup/
Ddup07.c42 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, 0666)) == -1) { in main()
[all …]
/external/vboot_reference/tests/
Dvb21_host_key_tests.c39 const char *testfile = "test.vbprik2"; in private_key_tests() local
56 vb2_write_file(testfile, (const uint8_t *)notapem, sizeof(notapem)); in private_key_tests()
57 TEST_EQ(vb2_private_key_read_pem(&key, testfile), in private_key_tests()
59 unlink(testfile); in private_key_tests()
77 unlink(testfile); in private_key_tests()
79 TEST_EQ(vb2_private_key_read(&k2, testfile), in private_key_tests()
84 TEST_SUCC(vb2_private_key_write(key, testfile), "Write key good"); in private_key_tests()
85 TEST_SUCC(vb2_private_key_read(&k2, testfile), "Read key good"); in private_key_tests()
93 TEST_SUCC(vb2_read_file(testfile, &buf, &bufsize), "Read key raw"); in private_key_tests()
149 unlink(testfile); in private_key_tests()
[all …]
Dvb21_host_misc_tests.c32 const char *testfile = "file_tests.dat"; in file_tests() local
40 unlink(testfile); in file_tests()
42 TEST_EQ(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
47 TEST_SUCC(vb2_write_file(testfile, test_data, sizeof(test_data)), in file_tests()
49 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
54 unlink(testfile); in file_tests()
61 TEST_SUCC(vb2_write_object(testfile, c), "vb2_write_object() good"); in file_tests()
62 TEST_SUCC(vb2_read_file(testfile, &read_data, &read_size), in file_tests()
68 unlink(testfile); in file_tests()
/external/ltp/testcases/kernel/security/smack/
Dsmack_file_access.sh33 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\" labeled \"TheOther\"."
70 got_read=$(smack_notroot $CAT "$testfile" 2> /dev/null)
[all …]
/external/ltp/testcases/kernel/fs/fs_di/
Dfs_di98 rm -f $TCtmp/testfile*
199 create_datafile $SIZE $TCtmp/testfile >/dev/null
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 >/dev/null
258 frag $TCtmp/testfile $TMPBASE
266 cmp $TCtmp/testfile $TMPBASE/frag1
[all …]

12345678