waifu/run-tests.sh

22 lines
453 B
Bash
Raw Normal View History

#!/bin/bash
die()
{
2019-10-11 06:16:25 +02:00
cat $1/config.log
exit 1
}
# build waf
./build-waf.sh
# install conan
2019-06-07 01:26:40 +02:00
pip install pip --upgrade
pip install conan
# run tests
2019-10-11 06:16:25 +02:00
python waf-$1 configure build msdev clean || die build
# reconfigure needs a special case
2019-10-11 06:16:25 +02:00
python waf-$1 -t tests/reconfigure -o build-reconfigure configure --test-option || die build-reconfigure
python waf-$1 -t tests/reconfigure -o build-reconfigure configure --reconfigure || die build-reconfigure