# Copyright 2013 Samsung Information Systems America, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Author: Koushik Sen


rm -f jalangi_test_results 2>/dev/null
rm -f jalangi_sym_test_results 2>/dev/null
rm -rf .coverage_data
rm -rf cover_html
rm -rf .coverage_data_old

export USE_NODE_COVER=false
export USE_TIME=false
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export ANALYSIS_SCRIPT=$DIR/concolic

$DIR/sym

export ANALYSIS_SCRIPT=$DIR/concolic-norr

$DIR/sym

cat jalangi_sym_test_results

if $USE_NODE_COVER
then
    sleep 2
    cp -R .coverage_data .coverage_data_old
    cover combine
    cover report
    cover report html
    echo "test results ..."
    open cover_html/index.html
fi
