aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tools/Run.ps1
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-08-08 21:26:06 +0000
committerGerrit Code Review <gerrit@onap.org>2017-08-08 21:26:06 +0000
commit6f7460b6374e10064f7189238e6791de92d33e4b (patch)
tree376b67f5fb804f6daa520e7f4a5aba117464602e /bootstrap/vagrant-onap/tools/Run.ps1
parent2909e2e278b37a752c4f3501276166d6f2c18785 (diff)
parent134f97ab0d999e0655c3189244cb64228ceb7e0f (diff)
Merge "Create a Run.ps1 script"
Diffstat (limited to 'bootstrap/vagrant-onap/tools/Run.ps1')
-rw-r--r--bootstrap/vagrant-onap/tools/Run.ps121
1 files changed, 21 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..55adc11c9
--- /dev/null
+++ b/bootstrap/vagrant-onap/tools/Run.ps1
@@ -0,0 +1,21 @@
+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
+
+ rm ./opt/ -Recurse -Force
+ rm $HOME/.m2/ -Recurse -Force
+ }
+ }
+
+vagrant destroy -f $args[0]
+vagrant up $args[0]