]> FriiDump Source - friidump.git/blobdiff - tests/test_hlds_e7_profiles.c
Document exact-release Linux hardware validation
[friidump.git] / tests / test_hlds_e7_profiles.c
index a7b66121847fa5a554671341b4e032c88a78e1b1..e90dec2f72872e775187795e040283a7dcbaac8c 100644 (file)
@@ -16,6 +16,7 @@ typedef struct {
     int method;
     const char *record_id;
     const char *tokens;
     int method;
     const char *record_id;
     const char *tokens;
+    const char *support_tier;
 } profile_case;
 
 static int check_case(const profile_case *test) {
 } profile_case;
 
 static int check_case(const profile_case *test) {
@@ -58,11 +59,13 @@ static int check_case(const profile_case *test) {
         !info.tokens ||
         strcmp(info.tokens, test->tokens) != 0 ||
         !info.record_id ||
         !info.tokens ||
         strcmp(info.tokens, test->tokens) != 0 ||
         !info.record_id ||
-        strcmp(info.record_id, test->record_id) != 0
+        strcmp(info.record_id, test->record_id) != 0 ||
+        !info.support_tier ||
+        strcmp(info.support_tier, test->support_tier) != 0
     ) {
         fprintf(stderr,
             "FAIL: %s type=%u cdb=0x%03x gate=0x%08x "
     ) {
         fprintf(stderr,
             "FAIL: %s type=%u cdb=0x%03x gate=0x%08x "
-            "blocks=%u method=%d tokens=%s record=%s\n",
+            "blocks=%u method=%d tokens=%s record=%s tier=%s\n",
             test->label,
             info.type,
             info.static_cdb_base,
             test->label,
             info.type,
             info.static_cdb_base,
@@ -70,7 +73,8 @@ static int check_case(const profile_case *test) {
             info.mem_blocks,
             info.preferred_method,
             info.tokens ? info.tokens : "(null)",
             info.mem_blocks,
             info.preferred_method,
             info.tokens ? info.tokens : "(null)",
-            info.record_id ? info.record_id : "(null)");
+            info.record_id ? info.record_id : "(null)",
+            info.support_tier ? info.support_tier : "(null)");
         return 0;
     }
 
         return 0;
     }
 
@@ -86,62 +90,68 @@ int main(void) {
             "HL-DT-ST", "CDRW/DVD GCC4243", "A102",
             true, 3, 0x880U, 0x9003731dU, 5, 8,
             "hybrid_identity_v3:stage5b_0439",
             "HL-DT-ST", "CDRW/DVD GCC4243", "A102",
             true, 3, 0x880U, 0x9003731dU, 5, 8,
             "hybrid_identity_v3:stage5b_0439",
-            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+            "known_supported_profile_hardening_live_validated"
         },
         {
             "A102 canonical alias",
             "HL-DT-ST", "GCC-4243N", "a102",
             true, 3, 0x880U, 0x9003731dU, 5, 8,
             "hybrid_identity_v3:stage5b_0439",
         },
         {
             "A102 canonical alias",
             "HL-DT-ST", "GCC-4243N", "a102",
             true, 3, 0x880U, 0x9003731dU, 5, 8,
             "hybrid_identity_v3:stage5b_0439",
-            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+            "known_supported_profile_hardening_live_validated"
         },
         {
             "B101 live inquiry alias",
             "HL-DT-ST", "CDRW/DVD GCC4244", "B101",
             true, 3, 0x894U, 0x900386d2U, 5, 8,
             "hybrid_identity_v3:stage5b_0426",
         },
         {
             "B101 live inquiry alias",
             "HL-DT-ST", "CDRW/DVD GCC4244", "B101",
             true, 3, 0x894U, 0x900386d2U, 5, 8,
             "hybrid_identity_v3:stage5b_0426",
-            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+            "known_supported_profile_hardening_live_validated"
         },
         {
             "B101 canonical alias",
             "HL-DT-ST", "GCC-4244N", "b101",
             true, 3, 0x894U, 0x900386d2U, 5, 8,
             "hybrid_identity_v3:stage5b_0426",
         },
         {
             "B101 canonical alias",
             "HL-DT-ST", "GCC-4244N", "b101",
             true, 3, 0x894U, 0x900386d2U, 5, 8,
             "hybrid_identity_v3:stage5b_0426",
-            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+            "known_supported_profile_hardening_live_validated"
         },
         {
             "A101 existing canonical profile",
             "HL-DT-ST", "GCC-4241N", "A101",
             true, 21, 0x85cU, 0x900356b7U, 1, 8,
             "stage5b_0064",
         },
         {
             "A101 existing canonical profile",
             "HL-DT-ST", "GCC-4241N", "A101",
             true, 21, 0x85cU, 0x900356b7U, 1, 8,
             "stage5b_0064",
-            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+            "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+            "error_prone_supported_profile_hardening"
         },
         {
             "GDR-8050L 0012 hybrid operating identity",
             "HL-DT-ST", "DVD-ROM GDR8050L", "0012",
             true, 44, 0x5d0U, 0x90026160U, 1, 8,
             "hybrid_identity_v3:gdr8050l_0012",
         },
         {
             "GDR-8050L 0012 hybrid operating identity",
             "HL-DT-ST", "DVD-ROM GDR8050L", "0012",
             true, 44, 0x5d0U, 0x90026160U, 1, 8,
             "hybrid_identity_v3:gdr8050l_0012",
-            "HL;IT;RPC;RPC_JD4_SPACE;RPC_SUFFIX"
+            "HL;IT;RPC;RPC_JD4_SPACE;RPC_SUFFIX",
+            "hybrid_crossflash_modified_firmware_only"
         },
         {
             "GDR-8050L 0L23 has no false exact metadata",
             "HL-DT-ST", "DVD-ROM GDR8050L", "0L23",
         },
         {
             "GDR-8050L 0L23 has no false exact metadata",
             "HL-DT-ST", "DVD-ROM GDR8050L", "0L23",
-            false, 44, 0, 0, 0, 0, NULL, NULL
+            false, 44, 0, 0, 0, 0, NULL, NULL, NULL
         },
         {
             "A103 conservative Type3 fallback",
             "HL-DT-ST", "CDRW/DVD GCC4243", "A103",
         },
         {
             "A103 conservative Type3 fallback",
             "HL-DT-ST", "CDRW/DVD GCC4243", "A103",
-            false, 3, 0, 0, 0, 0, NULL, NULL
+            false, 3, 0, 0, 0, 0, NULL, NULL, NULL
         },
         {
             "B102 conservative Type3 fallback",
             "HL-DT-ST", "CDRW/DVD GCC4244", "B102",
         },
         {
             "B102 conservative Type3 fallback",
             "HL-DT-ST", "CDRW/DVD GCC4244", "B102",
-            false, 3, 0, 0, 0, 0, NULL, NULL
+            false, 3, 0, 0, 0, 0, NULL, NULL, NULL
         },
         {
             "non-HL vendor rejected",
             "NOT-HL", "CDRW/DVD GCC4243", "A102",
         },
         {
             "non-HL vendor rejected",
             "NOT-HL", "CDRW/DVD GCC4243", "A102",
-            false, 0, 0, 0, 0, 0, NULL, NULL
+            false, 0, 0, 0, 0, 0, NULL, NULL, NULL
         }
     };
     size_t i;
         }
     };
     size_t i;