blob: e413f64b24393734884ae44bede7a6e561bb29b7 [file] [log] [blame]
Ray Milkey3aa8af52018-03-09 09:10:08 -08001#!/bin/bash
2
3# exit on errors
4set -eu -o pipefail
5
6# initialize build environment
7ONOS_ROOT=`pwd`
8. tools/build/envDefaults
9
10# initialize development environment for STC
Ray Milkey8c67f302018-03-09 14:23:49 -080011export JAVA_HOME=
Ray Milkey3aa8af52018-03-09 09:10:08 -080012. tools/dev/bash_profile
13
14
15# always free the cell when exiting
16function cleanup {
17 cell return
18}
19
20trap cleanup EXIT
21
22# grab a cell to run on
23cell borrow
24
25# build onos bits
26onos-buck build onos
27
28# set up STC parameters
29topo default
30export stcDumpLogs=true
31export stcColor="false"
32export stcHaltOnError=true
33export TERM=vt100
34
35# run STC
36stc