Lines Matching refs:command
178 static void command(const std::string& cmd) in command() function in SignatureTest
213 command("mkdir " + extractPath.string()); in SetUp()
214 command("mkdir " + signedConfPath.string()); in SetUp()
215 command("mkdir " + signedConfOpenBMCPath.string()); in SetUp()
218 command("echo \"HashType=RSA-SHA256\" > " + hashFile); in SetUp()
221 command( in SetUp()
224 command("echo \"HashType=RSA-SHA256\" >> " + manifestFile); in SetUp()
225 command("echo \"KeyType=OpenBMC\" >> " + manifestFile); in SetUp()
228 command("echo \"image-kernel file \" > " + kernelFile); in SetUp()
231 command("echo \"image-rofs file \" > " + rofsFile); in SetUp()
234 command("echo \"image-rwfs file \" > " + rwfsFile); in SetUp()
237 command("echo \"image-u-boot file \" > " + ubootFile); in SetUp()
240 command("openssl genrsa -out " + pkeyFile + " 4096"); in SetUp()
243 command("openssl rsa -in " + pkeyFile + " -outform PEM " + in SetUp()
246 command("cp " + pubkeyFile + " " + signedConfOpenBMCPath.string()); in SetUp()
247 command(opensslCmd + pkeyFile + " -out " + kernelFile + ".sig " + in SetUp()
250 command(opensslCmd + pkeyFile + " -out " + manifestFile + ".sig " + in SetUp()
252 command(opensslCmd + pkeyFile + " -out " + rofsFile + ".sig " + in SetUp()
254 command(opensslCmd + pkeyFile + " -out " + rwfsFile + ".sig " + in SetUp()
256 command(opensslCmd + pkeyFile + " -out " + ubootFile + ".sig " + in SetUp()
258 command(opensslCmd + pkeyFile + " -out " + pubkeyFile + ".sig " + in SetUp()
263 command("cat " + kernelFile + ".sig " + rofsFile + ".sig " + rwfsFile + in SetUp()
266 command(opensslCmd + pkeyFile + " -out " + fullFile + ".sig " + in SetUp()
274 command("rm -rf " + std::string(testPath)); in TearDown()
294 command("echo \"dummy data\" > " + kernelFile + ".sig "); in TEST_F()
303 command("rm " + pubkeyFile); in TEST_F()
312 command("echo \"HashType=md5\" > " + hashFile); in TEST_F()
320 command("rm -rf " + signedConfOpenBMCPath.string()); in TEST_F()
330 command("rm " + fullFile); in TEST_F()
339 command("rm " + fullFile); in TEST_F()
344 command("sed -i s/VersionPurpose.BMC/VersionPurpose.BIOS/ " + manifestFile); in TEST_F()
345 command(opensslCmd + pkeyFile + " -out " + manifestFile + ".sig " + in TEST_F()
372 static void command(const std::string& cmd) in command() function in FileTest
392 command("echo \"File Test1\n\n\" > " + file1); in SetUp()
393 command("echo \"FileTe st2\n\nte st2\" > " + file2); in SetUp()
419 command(catCommand); in TEST_F()