-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrunTest1.sh
31 lines (21 loc) · 1.02 KB
/
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
#!/bin/bash
apt-get update -y && apt-get install -y --no-install-recommends wget ca-certificates
# Testing for version 0.2.x of the container
# Download data
wget "https://drive.google.com/uc?export=download&id=0B2e3YmwhK4fkck1mQVpMQTZZakk" -O constraints.csv
wget "https://drive.google.com/uc?export=download&id=0B3GjpBpPCNBcbXMtQTJqUUg0SzQ" -O output_midcor.csv
wget "https://drive.google.com/uc?export=download&id=0B2e3YmwhK4fkbXdTS2FKMFlWYnc" -O simple_model.sbml
wget "https://drive.google.com/uc?export=download&id=0B2e3YmwhK4fkN21EZF9hSHVTeTQ" -O simple_tracing_model.csv
run_iso2flux_analysis -e output_midcor.csv -l simple_tracing_model.csv -c simple_model.sbml -f constraints.csv
ls -l Iso*
# check that result file exists.
FLUXES=iso2flux_fluxes.csv
LABELS=iso2flux_label.csv
#FLUX_INTERVALS=Iso2Flux_flux_interval.csv
for f in $FLUXES $LABELS; do
if [ ! -f $f ]; then
echo "File $f does not exist, failing test."
exit 1
fi
done
echo "Iso2flux runs with test data without error codes, all expected files created."