Home
last modified time | relevance | path

Searched refs:test_dir (Results 1 – 25 of 245) sorted by relevance

12345678910

/external/jemalloc_new/android/
Drun_jemalloc_tests.sh103 local test_dir=$1
106 if [[ -d "${test_dir}" ]]; then
109 ${test_dir}/$test
116 FAILING_TESTS+=("${test_dir}/${test}")
132 for test_dir in ${TEST_DIRECTORIES[@]}; do
133 test_dir="${directory}/${test_dir}"
134 if [[ -d "${test_dir}" ]]; then
135 run_tests "unit" "${test_dir}/${UNIT_TEST_DIR}" ${UNIT_TESTS[@]}
136 run_tests "integration" "${test_dir}/${INTEGRATION_TEST_DIR}" ${INTEGRATION_TESTS[@]}
137 run_tests "stress" "${test_dir}/${STRESS_TEST_DIR}" ${STRESS_TESTS[@]}
/external/e2fsprogs/tests/
Dtest_one.in28 test_dir=$1
37 test_name=`echo $test_dir | sed -e 's;.*/;;'`
39 if [ -f $test_dir ] ; then
42 if [ ! -d $test_dir ] ; then
46 if [ -z "`ls $test_dir`" ]; then
49 if [ -f $test_dir/name ]; then
50 test_description=`cat $test_dir/name`
55 if [ -n "$SKIP_SLOW_TESTS" -a -f $test_dir/is_slow_test ]; then
67 if [ -f $test_dir/script ]; then
68 . $test_dir/script
[all …]
Drun_e2fsck5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
77 cmp -s $test_name.0.log $test_dir/expect.0
96 diff $DIFF_OPTS $test_dir/expect.0 \
/external/tensorflow/tensorflow/python/summary/writer/
Dwriter_test.py55 test_dir = os.path.join(self.get_temp_dir(), test_name)
56 return test_dir
59 test_dir = self._TestDir(test_name)
60 if os.path.exists(test_dir):
61 shutil.rmtree(test_dir)
62 return test_dir
64 def _EventsReader(self, test_dir): argument
65 event_paths = glob.glob(os.path.join(test_dir, "event*"))
74 def _assertEventsWithGraph(self, test_dir, g, has_shapes): argument
78 rr = self._EventsReader(test_dir)
[all …]
/external/autotest/client/bin/result_tools/
Dshrink_file_throttler_unittest.py51 self.test_dir = tempfile.mkdtemp()
55 build_info = os.path.join(self.test_dir, 'BUILD_INFO-HT7591A00171')
59 file1 = os.path.join(self.test_dir, 'file1.xml')
63 file2 = os.path.join(self.test_dir, 'file2.jpg')
67 file3 = os.path.join(self.test_dir, 'file3.log')
72 file4 = os.path.join(self.test_dir, 'test_run_details.txt')
76 folder1 = os.path.join(self.test_dir, 'folder1')
85 shutil.rmtree(self.test_dir, ignore_errors=True)
89 summary = result_info.ResultInfo.build_from_path(self.test_dir)
117 self.test_dir = tempfile.mkdtemp()
[all …]
Dutils_unittest.py198 self.test_dir = tempfile.mkdtemp()
199 file1 = os.path.join(self.test_dir, 'file1')
201 folder1 = os.path.join(self.test_dir, 'folder1')
208 folder2 = os.path.join(self.test_dir, 'folder2')
218 shutil.rmtree(self.test_dir, ignore_errors=True)
222 summary = result_info.ResultInfo.build_from_path(self.test_dir)
231 self.test_dir = tempfile.mkdtemp() + '/'
232 file1 = os.path.join(self.test_dir, 'file1')
234 file2 = os.path.join(self.test_dir, 'file2')
236 file3 = os.path.join(self.test_dir, 'file3')
[all …]
Dresult_info_unittest.py60 self.test_dir = tempfile.mkdtemp()
64 shutil.rmtree(self.test_dir, ignore_errors=True)
68 summary_file = os.path.join(self.test_dir, 'summary.json')
75 summary_file_new = os.path.join(self.test_dir, 'summary_new.json')
83 self.assertEqual(summary.path, self.test_dir)
85 os.path.join(self.test_dir, 'file1'))
87 os.path.join(self.test_dir, 'folder1', 'file2'))
97 self.assertEqual(new_summary.path, self.test_dir)
99 os.path.join(self.test_dir, 'file1'))
105 os.path.join(self.test_dir, 'folder1', 'file2'))
[all …]
Ddelete_file_throttler_unittest.py63 self.test_dir = tempfile.mkdtemp()
67 file1 = os.path.join(self.test_dir, 'file1.xml')
71 file2 = os.path.join(self.test_dir, 'file2.jpg')
75 file_to_keep = os.path.join(self.test_dir, 'file_to_keep')
79 file3 = os.path.join(self.test_dir, 'file3.log')
83 folder1 = os.path.join(self.test_dir, 'folder1')
93 folder2 = os.path.join(self.test_dir, 'AndroidDeviceXXX')
99 test_run = os.path.join(self.test_dir, 'test_run_details.txt')
103 perf_data = os.path.join(self.test_dir, 'chrome.123.perf.data')
109 shutil.rmtree(self.test_dir, ignore_errors=True)
[all …]
Dzip_file_throttler_unittest.py50 self.test_dir = tempfile.mkdtemp()
54 build_info = os.path.join(self.test_dir, 'BUILD_INFO-x')
58 file1 = os.path.join(self.test_dir, 'file1.xml')
62 file2 = os.path.join(self.test_dir, 'file2.jpg')
66 file3 = os.path.join(self.test_dir, 'file3.log')
70 folder1 = os.path.join(self.test_dir, 'folder1')
78 shutil.rmtree(self.test_dir, ignore_errors=True)
107 summary = result_info.ResultInfo.build_from_path(self.test_dir)
114 parent_dir=self.test_dir, original_info=SUMMARY_AFTER_TRIMMING)
/external/jemalloc/android/test/
Drun_jemalloc_tests.sh86 local test_dir=$1
89 if [[ -d "${test_dir}" ]]; then
92 ${test_dir}/$test
107 for test_dir in ${TEST_DIRECTORIES[@]}; do
108 if [[ -d "${test_dir}" ]]; then
109 run_tests "unit" "${test_dir}/${UNIT_TEST_DIR}" ${UNIT_TESTS[@]}
110 run_tests "integration" "${test_dir}/${INTEGRATION_TEST_DIR}" ${INTEGRATION_TESTS[@]}
/external/googletest/
Drun_tests.py65 for test_dir in ['gtest_tests', 'gtest_ndk_tests', 'gmock_tests']:
66 test_dir = os.path.join(test_location, test_dir)
67 if not os.path.isdir(test_dir):
68 logger().debug('Skipping %s', test_dir)
71 logger().debug('Scanning %s for tests', test_dir)
72 for test in os.listdir(test_dir):
79 cmd = [os.path.join(test_dir, test)]
83 device_dir = test_dir.replace(os.environ['OUT'], '')
/external/autotest/server/site_tests/brillo_ADBDirectoryTransfer/
Dbrillo_ADBDirectoryTransfer.py33 self.test_dir = os.path.join(self.temp_dir, 'test_dir')
34 os.mkdir(self.test_dir)
35 os.mkdir(os.path.join(self.test_dir, 'subdir'))
37 with open(os.path.join(self.test_dir, 'file_a'), 'w') as f:
40 with open(os.path.join(self.test_dir, 'file_b'), 'w') as f:
43 with open(os.path.join(self.test_dir, 'subdir', 'file_c'), 'w') as f:
56 host.send_file(self.test_dir, device_temp_dir, delete_dest=True)
60 original = os.path.join(self.test_dir, path)
/external/pdfium/testing/tools/
Dgold.py255 test_dir = './testdirectory'
256 if not os.path.exists(test_dir):
257 os.makedirs(test_dir)
258 open(os.path.join(test_dir, 'image1.png'), 'wb').close()
259 open(os.path.join(test_dir, 'image2.png'), 'wb').close()
260 open(os.path.join(test_dir, 'image3.png'), 'wb').close()
268 hash_file = os.path.join(test_dir, 'ignore_hashes.txt')
274 gr.AddTestResult('test-1', 'hash-1', os.path.join(test_dir, 'image1.png'),
276 gr.AddTestResult('test-2', 'hash-2', os.path.join(test_dir, 'image2.png'),
278 gr.AddTestResult('test-3', 'hash-3', os.path.join(test_dir, 'image3.png'),
/external/autotest/client/site_tests/enterprise_SmbProviderDaemon/
Denterprise_SmbProviderDaemon.py90 test_dir = '/autotest_' + rand_dir_id + '/'
91 self._check_create_directory(mount_id, test_dir, False)
94 metadata = self._check_get_metadata(mount_id, test_dir)
97 self._check_metadata(test_dir[1:-1], 0, True, metadata)
100 test_file = test_dir + '1.txt'
139 recursive_dir = test_dir + 'test1/test2/'
147 self._check_move_entry(mount_id, test_file2, test_dir, ERROR_EXISTS)
150 self._check_move_entry(mount_id, test_file2, test_dir + 'moved.txt')
153 self._check_move_entry(mount_id, test_dir + 'moved.txt', test_file2)
157 self._check_delete_entry(mount_id, test_dir + 'test1/test2/', False)
[all …]
/external/autotest/site_utils/lxc/
Dcontainer_factory_unittest.py23 cls.test_dir = tempfile.mkdtemp(dir=lxc.DEFAULT_CONTAINER_PATH,
45 utils.run('sudo rm -r %s' % cls.test_dir)
50 self.test_dir = tempfile.mkdtemp(dir=ContainerFactoryTests.test_dir)
53 lxc_path=self.test_dir)
93 dir0 = tempfile.mkdtemp(dir=self.test_dir)
94 dir1 = tempfile.mkdtemp(dir=self.test_dir)
115 lxc_path=self.test_dir,
150 lxc_path=self.test_dir)
190 lxc_path=self.test_dir)
Dcontainer_unittest.py30 cls.test_dir = tempfile.mkdtemp(dir=lxc.DEFAULT_CONTAINER_PATH,
52 utils.run('sudo rm -r %s' % cls.test_dir)
70 with tempfile.NamedTemporaryFile(dir=self.test_dir) as tmpfile:
72 container = lxc.Container.create_from_existing_dir(self.test_dir,
89 self.test_dir, container.name)
140 new_path=self.test_dir,
155 new_path=self.test_dir,
160 new_path=self.test_dir,
168 new_path=self.test_dir,
178 new_path=self.test_dir,
[all …]
Dbase_image_unittest.py21 test_dir = None variable
54 new_path=test_dir,
78 new_path=test_dir,
123 self.manager = BaseImage(container_path=test_dir)
168 new_path=test_dir,
184 global test_dir
188 test_dir = tempfile.mkdtemp(dir=lxc.DEFAULT_CONTAINER_PATH,
205 shutil.rmtree(test_dir)
/external/e2fsprogs/tests/f_compress_extent_tree_level/
Dscript5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
82 cmp -s $test_name.0.log $test_dir/expect.0
101 diff $DIFF_OPTS $test_dir/expect.0 \
/external/e2fsprogs/tests/f_collapse_extent_tree/
Dscript5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
80 cmp -s $test_name.0.log $test_dir/expect.0
99 diff $DIFF_OPTS $test_dir/expect.0 \
/external/e2fsprogs/tests/f_extent_too_deep/
Dscript5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
78 cmp -s $test_name.0.log $test_dir/expect.0
97 diff $DIFF_OPTS $test_dir/expect.0 \
/external/e2fsprogs/tests/f_convert_bmap/
Dscript5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
80 cmp -s $test_name.0.log $test_dir/expect.0
99 diff $DIFF_OPTS $test_dir/expect.0 \
/external/markdown/MarkdownTest/
DMarkdownTest.pl19 my $test_dir = "Tests";
26 "testdir=s" => \$test_dir,
37 unless (-d $test_dir) { die "'$test_dir' is not a directory.\n"; }
45 foreach my $testfile (glob "$test_dir/*.text") {
/external/e2fsprogs/tests/f_convert_bmap_sparse/
Dscript5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
80 cmp -s $test_name.0.log $test_dir/expect.0
99 diff $DIFF_OPTS $test_dir/expect.0 \
/external/e2fsprogs/tests/f_convert_bmap_and_extent/
Dscript5 IMAGE=$test_dir/image.gz
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
82 cmp -s $test_name.0.log $test_dir/expect.0
101 diff $DIFF_OPTS $test_dir/expect.0 \
/external/python/cpython3/Lib/test/
Dtest_pkgimport.py27 self.test_dir = tempfile.mkdtemp()
28 sys.path.append(self.test_dir)
29 self.package_dir = os.path.join(self.test_dir,
36 shutil.rmtree(self.test_dir)
37 self.assertNotEqual(sys.path.count(self.test_dir), 0)
38 sys.path.remove(self.test_dir)

12345678910