forked from EVOgeek/Vmeda.Online
		
	
						commit
						2a22d6f97d
					
				| @ -102,6 +102,15 @@ function get_language { | ||||
|     pushd $LANGPACKSFOLDER > /dev/null | ||||
| 
 | ||||
|     curl -s $MOODLEORG_URL/$lastversion/$lang.zip --output $lang.zip > /dev/null | ||||
|     size=$(du -k "$lang.zip" | cut -f 1) | ||||
|     if [ ! -n $lang.zip ] || [ $size -le 60 ]; then | ||||
|         echo "Wrong language name or corrupt file for $lang" | ||||
|         rm $lang.zip | ||||
| 
 | ||||
|         popd > /dev/null | ||||
|         return | ||||
|     fi | ||||
| 
 | ||||
|     rm -R $lang > /dev/null 2>&1> /dev/null | ||||
|     unzip -o -u $lang.zip > /dev/null | ||||
| 
 | ||||
| @ -114,6 +123,8 @@ function get_language { | ||||
| 
 | ||||
| # Entry function to get all language files. | ||||
| function get_languages { | ||||
|     suffix=$1 | ||||
| 
 | ||||
|     get_last_version | ||||
| 
 | ||||
|     if [ -d $LANGPACKSFOLDER ]; then | ||||
| @ -131,6 +142,7 @@ function get_languages { | ||||
| 
 | ||||
|     if [ $AWS_SERVICE -eq 1 ]; then | ||||
|         get_all_languages_aws | ||||
|         suffix='' | ||||
|     else | ||||
|         echo "Fallback language list will only get current installation languages" | ||||
|         get_installed_languages | ||||
| @ -138,5 +150,9 @@ function get_languages { | ||||
| 
 | ||||
|     for lang in $langs; do | ||||
|         get_language "$lang" | ||||
| 
 | ||||
|         if [ $suffix != '' ]; then | ||||
|             get_language "$lang$suffix" | ||||
|         fi | ||||
|     done | ||||
| } | ||||
|  | ||||
| @ -56,7 +56,7 @@ Feature: Measure performance. | ||||
|     And I set the field "Your site" to "$WWWROOT" in the app | ||||
|     And I press "Connect to your site" in the app | ||||
|     And I log in as "student1" | ||||
|     Then I should find "Course 1" in the app | ||||
|     And I should find "Timeline" in the app | ||||
| 
 | ||||
|     When I stop measuring "Login" | ||||
|     Then "Login" should have taken less than 10 seconds | ||||
| @ -69,16 +69,18 @@ Feature: Measure performance. | ||||
|     And I set the field "Your site" to "$WWWROOT" in the app | ||||
|     And I press "Connect to your site" in the app | ||||
|     And I log in as "student1" | ||||
|     Then I should find "Course 1" in the app | ||||
|     Then I press "My courses" in the app | ||||
|     And I should find "Course 1" in the app | ||||
| 
 | ||||
|     When I reload the page | ||||
|     And I start measuring "Open Activity" | ||||
|     And I wait the app to restart | ||||
|     Then I should find "Course 1" in the app | ||||
| 
 | ||||
|     When I press "Course 1" in the app | ||||
|     When I enter the course "Course 1" in the app | ||||
|     And I press "Choice course 1" in the app | ||||
|     Then I should find "Option 1" in the app | ||||
| 
 | ||||
|     When I stop measuring "Open Activity" | ||||
|     Then "Open Activity" should have taken less than 7 seconds | ||||
|     # TODO Check back to 7s or review perfect timings | ||||
|     Then "Open Activity" should have taken less than 8 seconds | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user