Skip to content

Commit da1c165

Browse files
author
u0028003
committed
Added unit tests to the JobRunner
1 parent 0d43287 commit da1c165

File tree

15 files changed

+199
-71
lines changed

15 files changed

+199
-71
lines changed
1.24 KB
Binary file not shown.
896 Bytes
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set -e
2+
echo "Listing the contents of a non existant file, this should fail."
3+
ls -la NonExistantFile
4+
5+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Downloading a file and checking it's integrity..."
2+
aws s3 cp s3://hcibioinfo-jobrunner-test/JRTestDataBundle.zip ./TestDownload.zip
3+
unzip -t TestDownload.zip
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Remove the zip archive and create a new file..."
2+
rm -f JRTestDataBundle.zip
3+
touch termCompleted.txt
4+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
echo "Listing the contents of the downloaded zip archive"
2+
unzip -l TestDownload.zip
3+

TestData/JobRunner/TestJobs/OKJob1/mainJob.sh_JR_START

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Downloading a file and checking it's integrity..."
2+
aws s3 cp s3://hcibioinfo-jobrunner-test/JRTestDataBundle.zip ./TestDownload.zip
3+
unzip -t TestDownload.zip
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Remove the zip archive and create a new file..."
2+
rm -f JRTestDataBundle.zip
3+
touch termCompleted.txt
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Downloading a file and checking it's integrity..."
2+
aws s3 cp s3://hcibioinfo-jobrunner-test/JRTestDataBundle.zip ./TestDownload.zip
3+
unzip -t TestDownload.zip
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Remove the zip archive and create a new file..."
2+
rm -f JRTestDataBundle.zip
3+
touch termCompletedForJob2.txt
4+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
echo "Rename the TestDownload.zip file to RenamedArchive.zip"
2+
mv TestDownload.zip RenamedArchive.zip
3+

TestData/JobRunner/TestJobs/OKJob2/mainJob.sh_JR_START

Whitespace-only changes.

0 commit comments

Comments
 (0)