diff options
Diffstat (limited to 'bootstrap/vagrant-onap/tools')
-rw-r--r-- | bootstrap/vagrant-onap/tools/Run.ps1 | 26 | ||||
-rwxr-xr-x | bootstrap/vagrant-onap/tools/run.sh | 3 |
2 files changed, 29 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tools/Run.ps1 b/bootstrap/vagrant-onap/tools/Run.ps1 new file mode 100644 index 000000000..5469abfd7 --- /dev/null +++ b/bootstrap/vagrant-onap/tools/Run.ps1 @@ -0,0 +1,26 @@ +switch ($args[0]) + { + "all_in_one" { $env:DEPLOY_MODE="all-in-one" } + { @("dns", "mr", "sdc", "aai", "mso", "robot", "vid", "sdnc", "portal", "dcae", "policy", "appc") -contains $_ } { $env:DEPLOY_MODE="individual" } + "testing" + { + $env:DEPLOY_MODE="testing" + $test_suite="*" + if (!$args[1]) { $test_suite=$args[1] } + $env:TEST_SUITE=$test_suite + $test_case="*" + if (!$args[2]) { $test_case=$args[2] } + $env:TEST_CASE=$test_case + + Remove-Item ./opt/ -Recurse -Force + Remove-Item $HOME/.m2/ -Recurse -Force + } + default + { + Write-Output $"Usage: $0 {all_in_one|dns|mr|sdc|aai|mso|robot|vid|sdnc|portal|dcae|policy|appc|testing}" + exit 1 + } + } + +vagrant destroy -f $args[0] +vagrant up $args[0] diff --git a/bootstrap/vagrant-onap/tools/run.sh b/bootstrap/vagrant-onap/tools/run.sh index e192ba171..b9a4a4311 100755 --- a/bootstrap/vagrant-onap/tools/run.sh +++ b/bootstrap/vagrant-onap/tools/run.sh @@ -12,6 +12,9 @@ case $1 in rm -rf ../opt/ rm -rf ~/.m2/;; + * ) + echo $"Usage: $0 {all_in_one|dns|mr|sdc|aai|mso|robot|vid|sdnc|portal|dcae|policy|appc|testing}" + exit 1 esac vagrant destroy -f $1 vagrant up $1 |