VirtualBox

Changeset 93194 in vbox for trunk


Ignore:
Timestamp:
Jan 11, 2022 11:32:41 PM (3 years ago)
Author:
vboxsync
Message:

Main/UnattendedScript: Added @@VBOX_INSERT[expr]@@ and @@VBOX_COND[expr]@@, merging the variable & condition lookup with the previous replacement getter. Added simple testcase for checking the basics. [nits] bugref:9781

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp

    r93193 r93194  
    2323
    2424#include <VBox/com/VirtualBox.h>
    25 
    26 #include <VBox/com/com.h>
    27 #include <VBox/com/array.h>
    28 #include <VBox/com/string.h>
    29 #include <VBox/com/ErrorInfo.h>
    3025#include <VBox/com/errorprint.h>
    3126
     27#include <iprt/file.h>
     28#include <iprt/path.h>
    3229#include <iprt/test.h>
    3330#include <iprt/stream.h>
    3431
    35 
    36 /*********************************************************************************************************************************
    37 *   Stub Unattended Implementation                                                                                               *
    38 *********************************************************************************************************************************/
    39 /* $Id$ */
    40 /** @file
    41  * Unattended class implementation
    42  */
    43 
    44 /*
    45  * Copyright (C) 2006-2022 Oracle Corporation
    46  *
    47  * This file is part of VirtualBox Open Source Edition (OSE), as
    48  * available from http://www.virtualbox.org. This file is free software;
    49  * you can redistribute it and/or modify it under the terms of the GNU
    50  * General Public License (GPL) as published by the Free Software
    51  * Foundation, in version 2 as it comes in the "COPYING" file of the
    52  * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    53  * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    54  */
    55 
    56 
    57 /*********************************************************************************************************************************
    58 *   Header Files                                                                                                                 *
    59 *********************************************************************************************************************************/
    60 #define LOG_GROUP LOG_GROUP_MAIN_UNATTENDED
    61 #include "LoggingNew.h"
    6232#include "VirtualBoxBase.h"
    6333#include "UnattendedImpl.h"
    64 #include "UnattendedInstaller.h"
    6534#include "UnattendedScript.h"
    6635#include "VirtualBoxImpl.h"
    67 #include "SystemPropertiesImpl.h"
    6836#include "MachineImpl.h"
    69 #include "Global.h"
    70 
    71 #include <VBox/err.h>
    72 #include <iprt/ctype.h>
    73 #include <iprt/file.h>
    74 #include <iprt/fsvfs.h>
    75 #include <iprt/inifile.h>
    76 #include <iprt/locale.h>
    77 #include <iprt/path.h>
    78 #include <iprt/vfs.h>
    7937
    8038using namespace std;
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