Skip to content

Commit

Permalink
make all scripts find include file same way (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
markro49 authored Dec 3, 2023
1 parent 45675e0 commit b772d87
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion framework/test/test_d4j_query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
# This script runs a set of basic queries against d4j-query and checks the results
#
################################################################################
source test.include

HERE=$(cd `dirname $0` && pwd)

# Import helper subroutines and variables, and init Defects4J
source "$HERE/test.include" || exit 1
init

$BASE_DIR/framework/bin/defects4j query -p Collections -H >> $HERE"/temp"
result=`diff $HERE/temp $HERE/resources/output/d4j-query/1`

Expand Down
5 changes: 4 additions & 1 deletion framework/test/test_gen_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
# * Generate for bugs 1-10 and 20: ./test_generate_suites.sh -pLang -b1..10 -b20
#
################################################################################

HERE=$(cd `dirname $0` && pwd)

# Import helper subroutines and variables, and init Defects4J
source test.include
source "$HERE/test.include" || exit 1
init

# Print usage message and exit
Expand Down
5 changes: 4 additions & 1 deletion framework/test/test_sanity_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
# This script runs the sanity check on each project version.
#
################################################################################

HERE=$(cd `dirname $0` && pwd)

# Import helper subroutines and variables, and init Defects4J
source test.include
source "$HERE/test.include" || exit 1
init

for pid in Chart Closure Lang Math Time; do
Expand Down
5 changes: 4 additions & 1 deletion framework/test/test_tutorial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
# This script tests the tutorial as described in Defects4J's README file.
#
################################################################################

HERE=$(cd `dirname $0` && pwd)

# Import helper subroutines and variables, and init Defects4J
source test.include
source "$HERE/test.include" || exit 1
init

# Get project info
Expand Down
5 changes: 4 additions & 1 deletion framework/test/test_verify_bugs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
# * Verify bug 2 with DEBUG ./test_verify_bugs.sh -pLang -b 2 -D
#
################################################################################

HERE=$(cd `dirname $0` && pwd)

# Import helper subroutines and variables, and init Defects4J
source test.include
source "$HERE/test.include" || exit 1

# Print usage message and exit
usage() {
Expand Down

0 comments on commit b772d87

Please sign in to comment.