Home
last modified time | relevance | path

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

/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfile_handler_unittest.cpp43 std::ofstream testfile; in TEST_F() local
44 testfile.open(TESTPATH, std::ios::out); in TEST_F()
45 testfile << "Hello world"; in TEST_F()
75 std::ofstream testfile; in TEST_F() local
76 testfile.open(TESTPATH, std::ios::out); in TEST_F()
79 testfile.write(reinterpret_cast<const char*>(testPattern.data()), in TEST_F()
81 testfile.close(); in TEST_F()
94 std::ofstream testfile; in TEST_F() local
95 testfile.open(TESTPATH, std::ios::out); in TEST_F()
101 testfile.write(reinterpret_cast<const char*>(testPattern.data()), in TEST_F()
[all …]
H A Dfirmware_json_unittest.cpp623 std::ofstream testfile; in TEST() local
624 testfile.open(TESTFNAME, std::ios::out); in TEST()
645 testfile << good.dump(4); in TEST()
646 testfile.flush(); in TEST()
665 std::ofstream testfile; in TEST() local
666 testfile.open(TESTFNAME, std::ios::out); in TEST()
667 testfile << "{] a malformed json {{"; in TEST()
668 testfile.flush(); in TEST()
/openbmc/openbmc/poky/meta/recipes-extended/slang/slang/
H A Dtest-add-output-in-the-format-result-testname.patch20 tests_failed="$tests_failed $testfile"
21 + echo "FAIL: $testfile"
23 touch lastrun/$testfile
24 + echo "PASS: $testfile"
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Drecipetool.py48 self.testfile = os.path.join(self.tempdir, 'testfile')
49 with open(self.testfile, 'w') as f:
113 …_, output = self._try_recipetool_appendfile('base-files', '/etc/motd', self.testfile, '', expected…
118 …self._try_recipetool_appendfile_fail('/etc/passwd', self.testfile, ['ERROR: /etc/passwd cannot be …
119 …self._try_recipetool_appendfile_fail('/etc/timestamp', self.testfile, ['ERROR: /etc/timestamp cann…
120 …self._try_recipetool_appendfile_fail('/dev/console', self.testfile, ['ERROR: /dev/console cannot b…
131 …self._try_recipetool_appendfile_fail(lspath, self.testfile, ['ERROR: File %s is an alternative pos…
145 …bbappendfile, _ = self._try_recipetool_appendfile('coreutils', lspath, self.testfile, '-r coreutil…
169 …self._try_recipetool_appendfile('netbase', '/usr/share/something', self.testfile, '-r netbase', ex…
197 …tool_appendfile('netbase', '/usr/bin/selftest-recipetool-testbin', self.testfile, '-r netbase', ex…
[all …]
H A Dwic.py1766 with NamedTemporaryFile("w", suffix=".wic-cp") as testfile:
1767 testfile.write("test")
1770 runCmd("wic cp %s %s:1/ -n %s" % (testfile.name, images[0], sysroot))
1775 self.assertIn(os.path.basename(testfile.name), result.output)
1781 copy(testfile.name, testdir)
1792 dest = '%s-cp' % testfile.name
1794 os.path.basename(testfile.name), dest, sysroot))
1856 with NamedTemporaryFile("w", suffix=".wic-cp") as testfile:
1857 testfile.write("test")
1860 runCmd("wic cp %s %s:2/ -n %s" % (testfile.name, images[0], sysroot))
[all …]
H A Ddevtool.py1615 testfile = os.path.join(self.workspacedir, 'sources', testrecipe, 'testfile')
1616 self.assertExists(testfile, 'Extracted source could not be found')
1617 with open(testfile, 'r') as f:
1812 testfile = '/sbin/mdadm'
1814 testfile = '/usr/sbin/mdadm'
1838 self.assertIn(' %s' % testfile, result.output)
/openbmc/openbmc/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0/
H A D0002-tests-add-support-for-install-the-tests.patch60 +testfile = meson.current_source_dir() + '/meson.build'
62 + install_data(testfile, install_dir : installed_tests_metadir, rename : 'testfile')
63 + testfile = installed_tests_metadir + '/testfile'
65 +test_defines += '-DTESTFILE="@0@"'.format(testfile)
/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/
H A Dvolatiles14 # l root root 0777 /var/test /tmp/testfile
24 # a link will be created at /var/test pointing to /tmp/testfile and due to this
25 # link the file defined as /var/test will actually be created as /tmp/testfile.
/openbmc/openbmc/poky/meta-selftest/recipes-test/devtool/
H A Ddevtool-test-subdir.bb5 file://testfile;subdir=${BPN}"
/openbmc/openbmc/poky/meta-selftest/recipes-test/testrpm/
H A Dtestrpm_0.0.1.bb6 SRC_URI = "file://testfile.txt"
/openbmc/openbmc/poky/meta/lib/oe/
H A Dpath.py105 testfile = None
108 testfile = os.path.join(root, files[0])
111 if testfile is not None:
113 os.link(testfile, os.path.join(dst, 'testfile'))
/openbmc/qemu/tests/qemu-iotests/
H A Dcommon.rc858 testfile="$TEST_DIR"/_check_o_direct
859 $QEMU_IMG create -f raw "$testfile" 1M > /dev/null
860 out=$($QEMU_IO -f raw -t none -c quit "$testfile" 2>&1)
861 rm -f "$testfile"
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Dparse.py23 testfile = """ variable in ParseTest
50 f = self.parsehelper(self.testfile)
57 testfileB = self.testfile.replace("}", "")
H A Dfetch.py3383 with open(os.path.join(self.gitdir, self.testfilename), "w") as testfile:
3384testfile.write("File {} from branch {}; Useless random data {}".format(self.testfilename, branch, …
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/openvpn/
H A Dopenvpn_2.6.14.bb97 for testfile in $(find ${dir} -name "*testdriver"); do
98 cp -rf ${testfile} ${target_dir}/
/openbmc/qemu/tests/functional/
H A Dmeson.build395 testfile = 'test_' + test + '.py' variable
396 testpath = meson.current_source_dir() / testfile
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/nspr/
H A Dnspr_4.36.bb139 testfile \
/openbmc/openbmc/poky/meta/classes-global/
H A Dsanity.bbclass278testfile = os.path.join(filepath, ''.join(random.choice(string.ascii_letters) for x in range(200)))
282 f = open(testfile, "w")
284 os.remove(testfile)
/openbmc/openbmc/poky/documentation/profile-manual/
H A Dusage.rst2558 root@crownbay:/sys/kernel/debug/tracing# cat /media/sdc/testfile.txt
/openbmc/
Dopengrok1.0.log[all...]
Dopengrok2.0.log[all...]