-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from jaseg/master
Various compatibility fixes, test system cleanup
- Loading branch information
Showing
11 changed files
with
61 additions
and
120 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
|
||
CHECKS := $(wildcard *.check) | ||
PORTS := python2 python3 ruby node | ||
|
||
all: $(PORTS) | ||
|
||
$(PORTS): %: %-premsg $(CHECKS:%.check=%-%) %-postmsg | ||
|
||
|
||
%-premsg: | ||
@echo "Running $* tests." | ||
|
||
%-postmsg: | ||
@echo | ||
|
||
%-python2: | ||
@./runtest.sh python2 py $* | ||
|
||
%-python3: | ||
@./runtest.sh python3 py $* | ||
|
||
%-ruby: | ||
@./runtest.sh ruby rb $* | ||
|
||
%-node: | ||
@./runtest.sh node js $* | ||
|
||
clean: | ||
rm -f *.out *.log |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
TOOL=$1 | ||
EXT=$2 | ||
TEST=$3 | ||
|
||
LOGFILE=$TEST.$TOOL.log | ||
OUTFILE=$TEST.$TOOL.out | ||
|
||
$TOOL ../ribosome.$EXT $TEST.$EXT.dna >$OUTFILE | ||
|
||
if diff $OUTFILE $TEST.check >$LOGFILE; then | ||
env echo -en "[\033[92mOK\033[0m] " | ||
rm $LOGFILE $OUTFILE | ||
else | ||
env echo -en "[\033[91mFAIL\033[0m ($LOGFILE)] " | ||
fi |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ for i in [1, 2, 3, 4, 5]: | |
. | ||
./!separate "," | ||
for i in [1, 2, 3, 4, 5]: | ||
pass | ||
pass | ||
|
||
. | ||
./!separate "," | ||
|