-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
538 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DATE1:=$(sleep 1; python -c "import datetime; print datetime.datetime.now()") | ||
DATE2:=$(sleep 1; python -c "import datetime; print datetime.datetime.now()") | ||
|
||
date1 <- | ||
echo $DATE1 > date1 | ||
|
||
date2 <- | ||
echo $DATE2 > date2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$[FILE2] <- | ||
echo -n "$OUTPUT" > $OUTPUT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# Regression testing for Drake: splitting --vars by regex | ||
# Relevant URLs: | ||
# https://github.com/Factual/drake/issues/97 | ||
|
||
source $(dirname $0)/regtest_utils.sh | ||
|
||
export FILE=f1f1f1f1 | ||
|
||
cleanup() { | ||
rm -f $(dirname $0)/$FILE>/dev/null 2>&1 | ||
} | ||
|
||
echo "-----------------" | ||
echo "TESTS: split vars" | ||
echo "-----------------" | ||
|
||
# First cleanup any existing files | ||
cleanup | ||
|
||
# Run test with default regex | ||
run_d regtest_splitvars.d -a --vars "RANDOMVAR=1,FILE2=$FILE" | ||
check_grep $(dirname $0)/$FILE "$FILE" | ||
cleanup | ||
|
||
# Run test with crazy split regex | ||
run_d regtest_splitvars.d -a --split-vars-regex "[a-c]ebopalul[a-z]" --vars "RANDOMVAR=1bebopalulaFILE2=$FILE" | ||
check_grep $(dirname $0)/$FILE "$FILE" | ||
cleanup | ||
|
||
echo "ALL PASSED" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dude.txt <- | ||
echo "$OUTPUT" > $OUTPUT | ||
|
||
babe.txt <- dude.txt | ||
echo "$OUTPUT" > $OUTPUT | ||
echo "belle.txt" > belle.txt | ||
|
||
belle.txt <- dude.txt | ||
echo "$OUTPUT" > $OUTPUT | ||
|
||
bogus.txt <- babe.txt, belle.txt | ||
cat $INPUTS > $OUTPUT | ||
echo "$OUTPUT" > $OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# Regression testing for Drake: target check but | ||
# This is a bug that manifests itself when a step is run | ||
# and the target is already built, but this was not detected | ||
# at the beginning during predict-steps | ||
# | ||
# Relevant URLs: | ||
|
||
source $(dirname $0)/regtest_utils.sh | ||
|
||
export FILES=dude.txt\ babe.txt\ belle.txt\ bogus.txt | ||
|
||
cleanup() { | ||
for FILE in $FILES | ||
do | ||
rm -f $(dirname $0)/$FILE>/dev/null 2>&1 | ||
done | ||
} | ||
|
||
echo "-------------------" | ||
echo "TESTS: target check" | ||
echo "-------------------" | ||
|
||
# First cleanup any existing files | ||
cleanup | ||
|
||
# Run loop test | ||
run_d regtest_target_check_bug.d -a | ||
|
||
# Check results | ||
for FILE in $FILES | ||
do | ||
check_grep $(dirname $0)/$FILE "$FILE" | ||
done | ||
echo "ALL PASSED" | ||
|
||
# Clean up again | ||
cleanup | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.