Lines Matching refs:command
18 void command(const std::string& cmd) in command() function in SignatureTest
53 command("mkdir " + extractPath.string()); in SetUp()
54 command("mkdir " + signedConfPath.string()); in SetUp()
55 command("mkdir " + signedConfPNORPath.string()); in SetUp()
58 command("echo \"HashType=RSA-SHA256\" > " + hashFile); in SetUp()
61 command("echo \"HashType=RSA-SHA256\" > " + manifestFile); in SetUp()
62 command("echo \"KeyType=OpenBMC\" >> " + manifestFile); in SetUp()
65 command("echo \"pnor.xz.squashfs file \" > " + pnorFile); in SetUp()
68 command("openssl genrsa -out " + pkeyFile + " 4096"); in SetUp()
71 command("openssl rsa -in " + pkeyFile + " -outform PEM " + in SetUp()
76 command("cp " + pubkeyFile + " " + signedConfPNORPath.string()); in SetUp()
77 command(opensslCmd + pkeyFile + " -out " + pnorFile + ".sig " + in SetUp()
80 command(opensslCmd + pkeyFile + " -out " + manifestFile + ".sig " + in SetUp()
82 command(opensslCmd + pkeyFile + " -out " + pubkeyFile + ".sig " + in SetUp()
90 command("rm -rf " + std::string(testPath)); in TearDown()
109 command("echo \"dummy data\" > " + kernelFile + ".sig "); in TEST_F()
118 command("rm " + pubkeyFile); in TEST_F()
127 command("echo \"HashType=md5\" > " + hashFile); in TEST_F()
135 command("rm -rf " + signedConfPNORPath.string()); in TEST_F()