Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: tests/tpm_lite/fastenable.c

Issue 3116025: Added new commands and reactivated full rebuild after fixing for ARM ebuild. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: move to new build flow (no changes expected) Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/tpm_lite/earlynvram2.c ('k') | tests/tpm_lite/globallock.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* Testing: ForceClear and behavior of disable and permanent deactivated flags. 6 /* Testing: ForceClear and behavior of disable and permanent deactivated flags.
7 * 7 *
8 * ForceClear sets the permanent disable and deactivated flags to their default 8 * ForceClear sets the permanent disable and deactivated flags to their default
9 * value of TRUE. The specs say nothing about STCLEAR flags, so they should be 9 * value of TRUE. The specs say nothing about STCLEAR flags, so they should be
10 * left alone. This test checks that both flags may be reset without a reboot, 10 * left alone. This test checks that both flags may be reset without a reboot,
11 * resulting in a fully enabled and activated TPM. (We know that because 11 * resulting in a fully enabled and activated TPM. (We know that because
12 * ForceClear requires that the TPM be enabled and activated to run.) 12 * ForceClear requires that the TPM be enabled and activated to run.)
13 */ 13 */
14 14
15 #include <stdio.h> 15 #include <stdio.h>
16 #include <tss/tcs.h>
17 16
18 #include "tlcl.h" 17 #include "tlcl.h"
19 #include "utility.h" 18 #include "utility.h"
20 19
21 #define CHECK(command) do { if ((command) != TPM_SUCCESS) \ 20 #define CHECK(command) do { if ((command) != TPM_SUCCESS) \
22 error(#command "\n"); } \ 21 error(#command "\n"); } \
23 while(0) 22 while(0)
24 23
25 int main(int argc, char** argv) { 24 int main(int argc, char** argv) {
26 uint8_t disable, deactivated; 25 uint8_t disable, deactivated;
(...skipping 25 matching lines...) Expand all
52 51
53 CHECK(TlclSetDeactivated(0)); 52 CHECK(TlclSetDeactivated(0));
54 printf("deactivated flag is cleared\n"); 53 printf("deactivated flag is cleared\n");
55 54
56 CHECK(TlclGetFlags(&disable, &deactivated, NULL)); 55 CHECK(TlclGetFlags(&disable, &deactivated, NULL));
57 printf("disable is %d, deactivated is %d\n", disable, deactivated); 56 printf("disable is %d, deactivated is %d\n", disable, deactivated);
58 } 57 }
59 58
60 return 0; 59 return 0;
61 } 60 }
OLDNEW
« no previous file with comments | « tests/tpm_lite/earlynvram2.c ('k') | tests/tpm_lite/globallock.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698