VirtualBox

Changeset 102224 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Nov 22, 2023 8:53:57 AM (14 months ago)
Author:
vboxsync
Message:

Main/Unattended: Added support for returning hashed values (MD5, SHA1, SHA256 and SHA512 so far). Needed for subiquity installer scripts. Extended testcase. bugref:10551

Location:
trunk/src/VBox/Main/testcase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstUnattendedScript-1.expected

    r93190 r102224  
    252509=true
    2626
    27 
    2827/*
    2928 * Regular inserts.
     
    38338201:  GUEST_OS_VERSION >= 1.2.3
    38438302:  GUEST_OS_VERSION <= 3.4.2
     384
     385/*
     386 * Hashing attributes.
     387 * Contains the word "changeme" as hashed results.
     388 */
     38901=4cb9c8a8048fd02294477fcb1a41191a
     39002=fa9beb99e4029ad5a6615399e7bbae21356086b3
     39103=057ba03d6c44104863dc7361fe4578965d1887360f90a0895882e58a6248fc86
     39204=f1891cea80fc05e433c943254c6bdabc159577a02a7395dfebbfbc4f7661d4af56f2d372131a45936de40160007368a56ef216a30cb202c66d3145fd24380906
     393
  • trunk/src/VBox/Main/testcase/tstUnattendedScript-1.template

    r93190 r102224  
    242408=@@VBOX_COND[${IS_RTC_USING_UTC}]@@true@@VBOX_COND_ELSE@@false@@VBOX_COND_END@@
    252509=@@VBOX_COND[${HAS_PROXY}]@@true@@VBOX_COND_ELSE@@false@@VBOX_COND_END@@
    26 
    2726
    2827/*
     
    38338201: @@VBOX_COND[${GUEST_OS_VERSION} vge 1.2.3]@@ GUEST_OS_VERSION >= 1.2.3@@VBOX_COND_ELSE@@ failed@@VBOX_COND_END@@
    38438302: @@VBOX_COND[${GUEST_OS_VERSION} vle 3.4.2]@@ GUEST_OS_VERSION <= 3.4.2@@VBOX_COND_ELSE@@ failed@@VBOX_COND_END@@
     384
     385/*
     386 * Hashing attributes.
     387 * Contains the word "changeme" as hashed results.
     388 */
     38901=@@VBOX_INSERT_USER_PASSWORD_MD5@@
     39002=@@VBOX_INSERT_USER_PASSWORD_SHA1@@
     39103=@@VBOX_INSERT_USER_PASSWORD_SHA256@@
     39204=@@VBOX_INSERT_USER_PASSWORD_SHA512@@
     393
  • trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp

    r102116 r102224  
    727727    if (strExpected != strActual)
    728728    {
    729         RTTestIFailed("Output does not match tstUnattendedScript-1.expect!");
     729        RTTestIFailed("Output does not match tstUnattendedScript-1.expected!");
    730730        RTTestIFailureDetails("------ BEGIN OUTPUT ------\n");
    731731        RTStrmWrite(g_pStdErr, strActual.c_str(), strActual.length());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette