mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	* Refactor config API
* Corrections
* Test Qt 6.8
* Revert "Test Qt 6.8"
This reverts commit eceebec49e.
* Corrections 2
* Update Changelog
* Add configFilter element for getconfig call
* Do not create errors for DB updates when in read-only mode
* Have configuration migration and validation before Hyperion starts
* Correct Tests
* Corrections
* Add migration items
* Correct windows build
* Ensure that first instance as default one exists
* Remove dependency between AuthManager and SSDPHandler
* Correct typos
* Address CodeQL findings
* Replace CamkeSettings by Presets and provide debug scenarios
		
	
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| [ "${BUILD_TYPE}" == "Release" ] && exit 0
 | |
| 
 | |
| STATS_FAILED=0
 | |
| STATS_SUCCESS=0
 | |
| STATS_SKIPPED=0
 | |
| STATS_TOTAL=0
 | |
| 
 | |
| # exec_test "test name" test_exec --with --args
 | |
| function exec_test()
 | |
| {
 | |
| 	local test_name="$1"
 | |
| 	if [ ! -e "$2" ]
 | |
| 	then
 | |
| 		echo "skip test: '$test_name'"
 | |
| 		(( STATS_SKIPPED++ ))
 | |
| 		return
 | |
| 	fi
 | |
| 	shift
 | |
| 	(( STATS_TOTAL++ ))
 | |
| 	echo "execute test: '$test_name'"
 | |
| 	if $@
 | |
| 	then
 | |
| 		echo -e "   ... success"
 | |
| 		(( STATS_SUCCESS++ ))
 | |
| 		return 0
 | |
| 	else
 | |
| 		echo -e "   ... failed"
 | |
| 		(( STATS_FAILED++ ))
 | |
| 		return 1
 | |
| 	fi
 | |
| 	echo
 | |
| }
 | |
| 
 | |
| ######################################
 | |
| ############# EXEC TESTS #############
 | |
| ######################################
 | |
| 
 | |
| cd build || exit 1
 | |
| 
 | |
| echo
 | |
| echo "Hyperion test execution"
 | |
| echo
 | |
| exec_test "hyperiond is executable and show version" bin/hyperiond --version
 | |
| 
 | |
| for cfg in ../settings/*json.default
 | |
| do
 | |
| 	exec_test "test $(basename $cfg)" bin/test_configfile $cfg
 | |
| done
 | |
| 
 | |
| echo
 | |
| echo
 | |
| echo "TEST SUMMARY"
 | |
| echo "============"
 | |
| echo "  total: $STATS_TOTAL"
 | |
| echo "success: $STATS_SUCCESS"
 | |
| echo "skipped: $STATS_SKIPPED"
 | |
| echo " failed: $STATS_FAILED"
 | |
| 
 | |
| sleep 2
 | |
| 
 | |
| [ $STATS_FAILED -gt 0 ] && exit 200
 | |
| exit 0
 |