Difference between revisions of "Studio:WorkspaceSetup.pl"

From STRIDE Wiki
Jump to: navigation, search
Line 7: Line 7:
 
   perl WorkspaceSetup.pl --framework=FrameworkFoo --workspace=MyNewWorkspace [--package=PackageBar]
 
   perl WorkspaceSetup.pl --framework=FrameworkFoo --workspace=MyNewWorkspace [--package=PackageBar]
  
===Parameters===
+
;Parameters
    -w | --workspace = WorkspaceName
+
;-w | --workspace = WorkspaceName
        Specifies the new workspace to be created (the given name is used
+
:Specifies the new workspace to be created (the given name is used both as the name of the workspace and the new directory in which the workspace is created.
        both as the name of the workspace and the new directory in which the
+
;-f | --framework = TargetFramework
        workspace is created.
+
:Specifies the STRIDE Target Framework to use when creating the workspace. As of this writing, STRIDE provides two basic frameworks: StrideLinux for a FedoraCore7 based target machine and StrideWindowsHost for a host-based simulation emulator. Customers may create additional frameworks and specify additional search paths for this script to use to locate the frameworks.
 
+
;--frameworkdir = FrameworkSearchDirectory
    -f | --framework = TargetFramework
+
:Specifies an additional directory path to search for the specified framework. If the framework is not found in the default STRIDE frameworks directory, these directories will be searched. This option can be specified multiple times to add multiple directories to the framework search path.
        Specifies the STRIDE Target Framework to use when creating the
 
        workspace. As of this writing, STRIDE provides two basic frameworks:
 
        StrideLinux for a FedoraCore7 based target machine and
 
        StrideWindowsHost for a host-based simulation emulator. Customers
 
        may create additional frameworks and specify additional search paths
 
        for this script to use to locate the frameworks.
 
 
 
    --frameworkdir = FrameworkSearchDirectory
 
        Specifies an additional directory path to search for the specified
 
        framework. If the framework is not found in the default STRIDE
 
        frameworks directory, these directories will be searched. This
 
        option can be specified multiple times to add multiple directories
 
        to the framework search path.
 
  
 
     -p | --package = PackageName
 
     -p | --package = PackageName

Revision as of 00:34, 17 November 2007

The WorkspaceSetup script (found in frameworks directory of the STRIDE install location) provides a simple command line tool for creating workspaces from a Framework. This script requires perl for execution as well as the STRIDE Test Utilities.

Usage

Summary

 perl WorkspaceSetup.pl --framework=FrameworkFoo --workspace=MyNewWorkspace [--package=PackageBar]
Parameters
-w | --workspace = WorkspaceName
Specifies the new workspace to be created (the given name is used both as the name of the workspace and the new directory in which the workspace is created.
-f | --framework = TargetFramework
Specifies the STRIDE Target Framework to use when creating the workspace. As of this writing, STRIDE provides two basic frameworks: StrideLinux for a FedoraCore7 based target machine and StrideWindowsHost for a host-based simulation emulator. Customers may create additional frameworks and specify additional search paths for this script to use to locate the frameworks.
--frameworkdir = FrameworkSearchDirectory
Specifies an additional directory path to search for the specified framework. If the framework is not found in the default STRIDE frameworks directory, these directories will be searched. This option can be specified multiple times to add multiple directories to the framework search path.
   -p | --package = PackageName
       Specifies a Test Package to add to the workspace when it is created.
       If no packages are specified, the workspace will be created without
       any tests in it. This option can be specified multiple times to add
       multiple packages to the new workspace
   -d | --packagedir = PackageSearchDirectory
       Specifies an additional directory path to search for packages. For
       any package that is specified with the --package option, we first
       look in the packages directory in the STRIDE insatllation directory.
       If it is not found there, we will search in the location(s)
       specified by this option. This option can be specified multiple
       times to add multiple additional directories to the packages search
       path.