-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-vars.sh
58 lines (48 loc) · 2.23 KB
/
setup-vars.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# To use this file, run 'source setup-vars.sh'
# Root directory for our tools and results
# Calculate root directory using the location of this script.
# We expect that it will be one directory up from this (i.e., this directory should be inside the root).
export DT_ROOT=$(cd "$(dirname $BASH_SOURCE)/.."; pwd)
# Directory for libraries of the old subject
export DT_LIBS=$DT_SUBJ/dependency/*
# Compiled class files of the old subject
export DT_CLASS=$DT_SUBJ/classes
# Compiled automatically-generated test files of the old subject
export DT_RANDOOP=$DT_SUBJ/randoop/bin
# Compiled human-written test files of the old subject
export DT_TESTS=$DT_SUBJ/test-classes
# Directory for libraries of the new subject
export NEW_DT_LIBS=$NEW_DT_SUBJ/dependency/*
# Compiled class files of the new subject
export NEW_DT_CLASS=$NEW_DT_SUBJ/classes
# Compiled human-written test files of the new subject
export NEW_DT_TESTS=$NEW_DT_SUBJ/test-classes
# Compiled automatically-generated test files of the new subject
export NEW_DT_RANDOOP=$NEW_DT_SUBJ/randoop/bin
# Directory for all the the results for each technique
export PRIO_RESULTS=$DT_ROOT/prioritization-results
export SELE_RESULTS=$DT_ROOT/selection-results
export PARA_RESULTS=$DT_ROOT/parallelization-results
# Directory for all the scripts used to generate the figures in our paper
export DT_SCRIPTS=$(cd "$(dirname $BASH_SOURCE)"; pwd)
# Directory for all the hardcoded data related to our subjects
export DT_DATA=$DT_ROOT/data
mkdir -p $DT_DATA
export DT_TOOLS_DIR=$DT_SCRIPTS/impact-tools/
# Directory for all the jar files containing the DT-impact tools and its dependencies
export DT_TOOLS=$DT_SCRIPTS/impact-tools/*
export DT_TOOLS=$(echo $DT_TOOLS | sed 's; ;:;g')
# Directory for all the jars necessary to run PIT
export PIT_JARS=$DT_SCRIPTS/pit-jars
# Directory for all the dt lists
export PRIO_DT_LISTS=$DT_DATA/prioritization-dt-list
export SELE_DT_LISTS=$DT_DATA/selection-dt-list
export PARA_DT_LISTS=$DT_DATA/parallelization-dt-list
mkdir -p $PRIO_DT_LISTS
mkdir -p $SELE_DT_LISTS
mkdir -p $PARA_DT_LISTS
# Files containing the minimum number of dependent tests a subject has
export AUTO_MIN_DTS=$DT_DATA/AUTO_MIN_DTs.txt
export ORIG_MIN_DTS=$DT_DATA/ORIG_MIN_DTs.txt
touch $AUTO_MIN_DTS
touch $ORIG_MIN_DTS