mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 19:10:11 +01:00
7a84679b0d
The new test file should have Windows linefeeds, if I got the git config correct.
32 lines
815 B
Bash
Executable File
32 lines
815 B
Bash
Executable File
#!/bin/bash
|
|
|
|
run_test() {
|
|
red='\033[0;31m'
|
|
green='\033[0;32m'
|
|
nocolor='\033[0m'
|
|
cd $basedir/tests/source-files/$1
|
|
printf "\n${1}:\n"
|
|
if ($basedir/gradlew-fdroid 2>/dev/null || true) | grep -Fo "$2"; then
|
|
printf "${green}passed: $1\n"
|
|
else
|
|
printf "${red}ERROR: $2 not found in $1\n"
|
|
((exit_value++))
|
|
fi
|
|
printf $nocolor
|
|
}
|
|
|
|
exit_value=0
|
|
basedir=$(cd $(dirname $0)/..; pwd)
|
|
export https_proxy=127.7.7.7:7 # fake proxy to block downloading
|
|
|
|
# force test file to have Windows linefeeds
|
|
sed -i -e $'s/\r$//' -e $'s/$/\r/' \
|
|
$basedir/tests/source-files/yuriykulikov/AlarmClock/gradle/wrapper/gradle-wrapper.properties
|
|
|
|
run_test osmandapp/osmand 2.2.1
|
|
run_test com.integreight.onesheeld 3.3
|
|
run_test se.manyver/android 5.5
|
|
run_test yuriykulikov/AlarmClock 5.1.1
|
|
|
|
exit $exit_value
|