-
Notifications
You must be signed in to change notification settings - Fork 8
/
runTest2.sh
33 lines (26 loc) · 774 Bytes
/
runTest2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
function DOWNLOAD() {
# Download RAW
curl -L -o /tmp/small.RAW "https://github.com/phnmnl/container-pwiz/raw/master/small.RAW"
# Download expected output and run it through mscat
curl -L -o /tmp/small.pwiz.1.1.mzML "https://github.com/phnmnl/container-pwiz/raw/master/small.pwiz.1.1.mzML"
wine mscat /tmp/small.pwiz.1.1.mzML > /tmp/test.expected_output
}
function MSCONVERT() {
wine msconvert.exe /tmp/small.RAW --mzML
wine mscat /tmp/test.mzML > /tmp/test.output
}
function EXIT1() {
echo "msconvert output does not match expected output!"
exit 1
}
function TEST1() {
# Compare msconvert-output with expected output
cmp /tmp/test.output /tmp/test.expected_output || EXIT1
}
# Set WORKDIR!!!
cd /tmp
# Launch functions
DOWNLOAD
MSCONVERT
TEST1