-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·44 lines (35 loc) · 906 Bytes
/
test.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
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
set -o errexit
set -o pipefail
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
start() { echo travis_fold':'start:$1; echo "$green$1$reset"; }
end() { set +v; echo travis_fold':'end:$1; echo; echo; }
die() { set +v; echo "$red$*$reset" 1>&2 ; exit 1; }
pushd .
CWL_NAME=workflow.cwl
OUTPUT_NAME=test-output-actual
for CWL_PATH in $PWD/workflows/cwl/*/workflow.cwl; do
cd `dirname $CWL_PATH`
LABEL=`basename $PWD`
start $LABEL
rm -rf $OUTPUT_NAME
mkdir $OUTPUT_NAME
cd $OUTPUT_NAME
../$CWL_NAME ../test-job.yml
cd -
diff -w -r test-output-expected $OUTPUT_NAME -x .DS_Store \
| head -n100 | cut -c 1-100
end $LABEL
done
popd
for DAG in dags/*.py; do
if [ "$DAG" = 'dags/cwl_to_dag.py' ] # https://github.com/hubmapconsortium/airflow-dev/issues/24
then
echo "Skipping $DAG ..."
continue
fi
python $DAG
echo "$DAG parses!"
done