forked from nexusformat/features
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtryallfeatures
More file actions
Latest commit
21 lines (19 loc) · 624 Bytes
/
Copy pathtryallfeatures
File metadata and controls
21 lines (19 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash
RETURN_CODE=0
forfeaturein$(cd src/recipes/ ;echo [0-9A-F]*);do
echo ===== Trying "$feature" =====
WORKING_FILES=
forfilenamein examples/*.nxs;do
echo === "$filename" ===
if python src/nxfeature.py -f "$feature""$filename";then
WORKING_FILES="$filename$WORKING_FILES"
fi
done
iftest"X$WORKING_FILES" = "X";then
RETURN_CODE=1
echo ==== ERROR "$feature" checks out on none of the example files ====
else
echo ==== SUCCESS "$feature" checks out on "$WORKING_FILES" ====
fi
done
exit$RETURN_CODE