mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Refactor TestCase files into python modules
Convert all TestCase files into standard python modules to be run and discovered by unittest.
This commit is contained in:
		
							parent
							
								
									4d6682bc70
								
							
						
					
					
						commit
						7ff32bc4b0
					
				
					 34 changed files with 471 additions and 1260 deletions
				
			
		| 
						 | 
				
			
			@ -9,7 +9,7 @@ exec 1>&2
 | 
			
		|||
files=`git diff-index --cached HEAD 2>&1 | sed 's/^:.*     //' | uniq | cut -b100-500`
 | 
			
		||||
if [ -z "$files" ]; then
 | 
			
		||||
    PY_FILES="fdroid makebuildserver setup.py fdroidserver/*.py examples/*.py tests/*-release-checksums.py"
 | 
			
		||||
    PY_TEST_FILES="tests/*.TestCase"
 | 
			
		||||
    PY_TEST_FILES="tests/test_*.py"
 | 
			
		||||
    SH_FILES="hooks/pre-commit"
 | 
			
		||||
    BASH_FILES="gradlew-fdroid jenkins-build-all jenkins-setup-build-environment jenkins-test completion/bash-completion buildserver/provision-*"
 | 
			
		||||
    RB_FILES="buildserver/Vagrantfile"
 | 
			
		||||
| 
						 | 
				
			
			@ -27,12 +27,12 @@ else
 | 
			
		|||
    for f in $files; do
 | 
			
		||||
        test -e $f || continue
 | 
			
		||||
        case $f in
 | 
			
		||||
            test_*.py)
 | 
			
		||||
                PY_TEST_FILES+=" $f"
 | 
			
		||||
                ;;
 | 
			
		||||
            *.py)
 | 
			
		||||
                PY_FILES+=" $f"
 | 
			
		||||
                ;;
 | 
			
		||||
            *.TestCase)
 | 
			
		||||
                PY_TEST_FILES+=" $f"
 | 
			
		||||
                ;;
 | 
			
		||||
            *.rb)
 | 
			
		||||
                RB_FILES+=" $f"
 | 
			
		||||
                ;;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue