-
-
Save earl/4130ce0b7915a9df2a92 to your computer and use it in GitHub Desktop.
rebol-test helper scripts for Linux
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
#!/bin/bash | |
REFERENCE=$1 | |
SUBJECT=$2 | |
function get_log () { | |
awk '/log file:/ {print $NF}' | |
} | |
HERE=$(dirname $0) | |
$HERE/run $REFERENCE | |
$HERE/run $SUBJECT | |
REFERENCE_LOG=`$HERE/run $REFERENCE | get_log` | |
SUBJECT_LOG=`$HERE/run $SUBJECT | get_log` | |
# @@ Remove the %-neccessity (needs a fix in log-diff.r). | |
cd $HERE | |
rebol3 log-diff.r %$REFERENCE_LOG %$SUBJECT_LOG |
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
#!/bin/bash | |
cd $(dirname $0) | |
./cmp ../make/r3{-master,} |
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
#!/bin/bash | |
if [ $# != 1 ]; then | |
echo "Usage: $0 command" >&2 | |
exit 64 | |
fi | |
SUBJECT=$(readlink -f $(which $1)) | |
if [ $? -ne 0 ]; then | |
echo "Error: test subject '$1' not found." >&2 | |
exit 1 | |
fi | |
cd $(dirname $0) | |
until echo "quit/now/return 1" | $SUBJECT run-recover.r; do | |
echo "Restarting ..." | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment