mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	CI: Initial commit for moving CI into source repo
Create tests/CI directory and add files used by Jenkins to build and test Asterisk. With this commit, Jenkins will run the Asterisk Unit Tests using the Jenkinsfile at tests/CI/unittests.jenkinsfile. Bash scripts to do the actual building and testing are also in the same directory. Output is placed in tests/CI/output so that directory has been added to .gitignore. Change-Id: I9448065465e6de2b878634510ace8fd1ef378608
This commit is contained in:
		
							
								
								
									
										22
									
								
								tests/CI/runTestsuite.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								tests/CI/runTestsuite.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/usr/bin/env bash | ||||
| CIDIR=$(dirname $(readlink -fn $0)) | ||||
| source $CIDIR/ci.functions | ||||
| ASTETCDIR=$DESTDIR/etc/asterisk | ||||
|  | ||||
| pushd $TESTSUITE_DIR | ||||
|  | ||||
| runner sudo PYTHONPATH=./lib/python/ ./runtests.py --cleanup ${TEST_COMMAND} || : | ||||
|  | ||||
| if [ -f asterisk-test-suite-report.xml ]  ; then | ||||
| 	sudo chown jenkins:users asterisk-test-suite-report.xml | ||||
| fi | ||||
|  | ||||
| runner ${CIDIR}/fixTestResults.py asterisk-test-suite-report.xml asterisk-test-suite-report.xml | ||||
|  | ||||
| if [ -f core* ] ; then | ||||
| 	echo "*** Found a core file after running unit tests ***" | ||||
| 	sudo /var/lib/asterisk/scripts/ast_coredumper --no-default-search core* | ||||
| 	exit 1 | ||||
| fi | ||||
|  | ||||
| popd | ||||
		Reference in New Issue
	
	Block a user