Skip to content

Commit

Permalink
added file that were not on VC
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceminotto committed Sep 21, 2017
1 parent 21120e0 commit 71e66b6
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wrapper/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

eval "$@"
10 changes: 10 additions & 0 deletions wrapper/lib/condorSubmit.htc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
should_transfer_files = YES
when_to_transfer_output = ON_EXIT
request_memory = 100G

output = out.$(Process)
error = err.$(Process)
log = log.$(Process)

queue 1

34 changes: 34 additions & 0 deletions wrapper/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

#adapted from http://eradman.com/posts/ut-shell-scripts.html

typeset -i tests_run=0

function try { this="$1"; }

trap 'printf "$0: exit code $? on line $LINENO\nFAIL: $this\n"; exit 1' ERR

#check returned value is what is expected
function assert {
let tests_run+=1
[ "$1" = "$2" ] && { echo -n "."; return; }
printf "\nFAIL: $this\n'$1' != '$2'\n"; exit 1
}

#check the script fails as expected
function assert_fail {
let tests_run+=1
echo $code
[ "${1//$2}" != "${1}" ] && { echo -n "."; return; }
printf "\nFAIL: $this\n '$1' exit code = 0\n"; exit 1
}

#check we are in an empty directory to avoid deleting files
if [ "`ls`" != "" ]
then
echo "ERROR: Run this script in an empty directory!!!!!"
exit 1;
fi

echo; echo "PASS: $tests_run tests run"

0 comments on commit 71e66b6

Please sign in to comment.