Merge "Deprecate model-flow-management as it was never used and is confusing people."
[controller.git] / opendaylight / distribution / opendaylight / runsanity.sh
1 # Inject the sanitytest jar as a controller plugin
2 cp ./target/dependency/sanitytest*.jar ./target/distribution.opendaylight-osgipackage/opendaylight/plugins
3
4 # Store the current working directory in a variable so that we can get back to it later
5 cwd=`pwd`
6
7 # Switch to the distribution folder
8 cd ./target/distribution.opendaylight-osgipackage/opendaylight/
9
10 # Run the controller
11 ./run.sh
12
13 # Store the exit value of the controller in a variable
14 success=`echo $?`
15
16 # Switch back to the directory from which this script was invoked
17 cd $cwd
18
19 # Remove the sanitytest jar from the plugins directory
20 rm ./target/distribution.opendaylight-osgipackage/opendaylight/plugins/sanitytest*.jar
21
22 # Exit using the exit code that we had captured earlier after running the controller
23 exit $success
24