2017-01-09 01:21:13 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
constraints=$(
|
|
|
|
grep '.' test/runner/requirements/*.txt \
|
2017-04-27 05:21:11 +02:00
|
|
|
| grep -v '(sanity_ok)$' \
|
2017-01-09 01:21:13 +01:00
|
|
|
| sed 's/ *;.*$//; s/ #.*$//' \
|
|
|
|
| grep -v '/constraints.txt:' \
|
2017-10-20 17:48:01 +02:00
|
|
|
| grep -v '/integration.cloud.azure.txt:' \
|
2017-01-09 01:21:13 +01:00
|
|
|
| grep '[<>=]'
|
|
|
|
)
|
|
|
|
|
|
|
|
if [ "${constraints}" ]; then
|
|
|
|
echo 'Constraints for test requirements should be in "test/runner/requirements/constraints.txt".'
|
|
|
|
echo 'The following constraints were found outside the "constraints.txt" file:'
|
|
|
|
echo "${constraints}"
|
|
|
|
exit 1
|
|
|
|
fi
|