-
Notifications
You must be signed in to change notification settings - Fork 8
/
runTest1.sh
36 lines (29 loc) · 924 Bytes
/
runTest1.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
34
35
36
#!/bin/bash
function DOWNLOAD() {
# Download RAW
curl -L -o /tmp/test.zip "https://github.com/phnmnl/container-pwiz/raw/master/neg-MM8_1-A%2C1_01_376.zip"
# Download expected output and run it through mscat
curl -L -o /tmp/test.mzml_expected_output "https://github.com/phnmnl/container-pwiz/raw/master/neg-MM8_1-A%2C1_01_376.mzML"
wine mscat /tmp/test.mzml_expected_output > /tmp/test.expected_output
}
function MSCONVERT() {
# Process RAW, create mzml and run it through mscat
unzip -d /tmp/test /tmp/test.zip
#export WINEPREFIX=~/.wine-new
wine msconvert.exe /tmp/test --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