Home
last modified time | relevance | path

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

123456789

/external/elfutils/tests/
Drun-ar-N.sh20 tempfiles testfile test.ar
22 echo create test.ar with 3 testfile
23 echo 1 > testfile
24 testrun ${abs_top_builddir}/src/ar -vr test.ar testfile
25 echo 2 > testfile
26 testrun ${abs_top_builddir}/src/ar -vq test.ar testfile
28 echo 3 > testfile
29 testrun ${abs_top_builddir}/src/ar -vq test.ar testfile
31 testfile
32 testfile
[all …]
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-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-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-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-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-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-varlocs-vars.sh35 testfiles testfile-vars-clang-dwarf4-32.o
36 testfiles testfile-vars-clang-dwarf4-64.o
37 testfiles testfile-vars-clang-dwarf5-32.o
38 testfiles testfile-vars-clang-dwarf5-64.o
39 testfiles testfile-vars-gcc-dwarf4-32.o
40 testfiles testfile-vars-gcc-dwarf4-64.o
41 testfiles testfile-vars-gcc-dwarf5-32.o
42 testfiles testfile-vars-gcc-dwarf5-64.o
45 testrun ${abs_top_builddir}/tests/varlocs --debug --exprlocs -e testfile-vars-clang-dwarf4-32.o | g…
51 testrun ${abs_top_builddir}/tests/varlocs --debug --exprlocs -e testfile-vars-clang-dwarf4-64.o | g…
[all …]
Drun-allfcts.sh21 testfiles testfile testfile2 testfile8
23 testrun_compare ${abs_builddir}/allfcts testfile testfile2 testfile8 <<\EOF
138 testfiles testfile-lto-gcc10
140 testrun_compare ${abs_builddir}/allfcts testfile-lto-gcc10 <<\EOF
141 /home/mark/src/tests/testfile-lto-main.c:6:main
142 /home/mark/src/tests/testfile-lto-func.c:4:foo
143 /home/mark/src/tests/testfile-lto-main.c:6:main
151 testfiles testfile-lto-gcc8
153 testrun_compare ${abs_builddir}/allfcts testfile-lto-gcc8 <<\EOF
154 /home/mark/src/tests/testfile-lto-func.c:4:foo
[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-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-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.am263 run-next-files.sh run-next-lines.sh testfile-only-debug-line.bz2 \
267 testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
272 testfile-lto-gcc10.bz2 \
273 testfile-lto-gcc9.bz2 testfile-lto-gcc8.bz2 \
280 run-annobingroup.sh testfile-annobingroup.o.bz2 \
281 testfile-annobingroup-i386.o.bz2 \
282 testfile-annobingroup-x86_64.o.bz2 \
284 testfile-nobitsalign.bz2 testfile-nobitsalign.strip.bz2 \
289 testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \
290 testfile-info-link.stripped.bz2 run-unstrip-test3.sh \
[all …]
/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/python/cpython3/Lib/test/
Daudiotests.py55 def create_file(self, testfile): argument
56 f = self.fout = self.module.open(testfile, 'wb')
63 def check_file(self, testfile, nframes, frames): argument
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 …]
/external/fonttools/Tests/ttLib/tables/
Dtables_test.py242 def getpath(testfile): argument
244 return os.path.join(path, "data", testfile)
247 def read_expected_ttx(testfile, tableTag): argument
248 name = os.path.splitext(testfile)[0]
271 def open_font(testfile): argument
272 font = TTFont(getpath(testfile))
279 def _skip_if_requirement_missing(testfile): argument
280 if testfile in TEST_REQUIREMENTS:
281 for req in TEST_REQUIREMENTS[testfile]:
286 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 …]
/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 …]

123456789