 20bee65a8b
			
		
	
	20bee65a8b
	
	
	
		
			
			Also commit other berval converters which are not yet called by anything. In places where bervals are returned as objects, PyString_FromStringAndSize() was being used. In some rare cases, a NULL berval pointer (not NULL data) is returned as None (not a string). This factors that out to the berval.c compilation unit.
		
			
				
	
	
		
			27 lines
		
	
	
		
			614 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			614 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| #
 | |
| # This script runs all the t_*.py tests in the current directory,
 | |
| # preparing PYTHONPATH to use the most recent local build
 | |
| #
 | |
| # Run with -v option for verbose
 | |
| #
 | |
| 
 | |
| set -e
 | |
| : ${PYTHON:="python"}
 | |
| plat_specifier=`$PYTHON -c 'import sys,distutils.util; \
 | |
|         print(distutils.util.get_platform()+"-"+sys.version[0:3])'`
 | |
| failed=
 | |
| for test in t_*.py;  do
 | |
|     echo "$test:"
 | |
|     PYTHONPATH="../build/lib.$plat_specifier" $PYTHON "$test" "$@" || 
 | |
|         failed="$failed $test"
 | |
| done
 | |
| 
 | |
| if test -n "$failed"; then
 | |
|    echo "Tests that failed:$failed" >&2
 | |
|    exit 1
 | |
| else
 | |
|    echo "All tests passed. Yay."
 | |
|    exit 0
 | |
| fi
 |