mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Purge out tests/expected that are now in sql/expected subdirectories from
'master' file Commit mods to regress.sh so that split out tests are run...look forward to finding out how to do a proper redirect to continue visual cleanup :)
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,5 +1,5 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.3 1996/11/14 16:09:28 momjian Exp $
 | 
					# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.4 1997/04/05 11:58:35 scrappy Exp $
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
if [ -d ./obj ]; then
 | 
					if [ -d ./obj ]; then
 | 
				
			||||||
	cd ./obj
 | 
						cd ./obj
 | 
				
			||||||
@@ -20,13 +20,25 @@ if [ $? -ne 0 ]; then
 | 
				
			|||||||
     exit 1
 | 
					     exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$FRONTEND regression < create.sql
 | 
					#$FRONTEND regression < create.sql
 | 
				
			||||||
if [ $? -ne 0 ]; then
 | 
					#if [ $? -ne 0 ]; then
 | 
				
			||||||
     echo the creation script has an error
 | 
					#     echo the creation script has an error
 | 
				
			||||||
     exit 1
 | 
					#     exit 1
 | 
				
			||||||
fi
 | 
					#fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo =============== running regression queries ... =================
 | 
					echo =============== running regression queries ... =================
 | 
				
			||||||
 | 
					for i in `cat sql/tests`
 | 
				
			||||||
 | 
					do
 | 
				
			||||||
 | 
						echo -n ${i} ..
 | 
				
			||||||
 | 
						$FRONTEND regression < sql/${i}.sql 2>&1 | tee output/${i}.out
 | 
				
			||||||
 | 
						if [ `diff expected/${i}.out output/${i}.out | wc -l` -ne 0 ]
 | 
				
			||||||
 | 
						then
 | 
				
			||||||
 | 
							echo failed
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							echo ok
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					exit
 | 
				
			||||||
$FRONTEND regression < queries.sql
 | 
					$FRONTEND regression < queries.sql
 | 
				
			||||||
# this will generate error result code
 | 
					# this will generate error result code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,6 @@ float4
 | 
				
			|||||||
float8
 | 
					float8
 | 
				
			||||||
int2
 | 
					int2
 | 
				
			||||||
int4
 | 
					int4
 | 
				
			||||||
misc
 | 
					 | 
				
			||||||
oid
 | 
					oid
 | 
				
			||||||
oidint2
 | 
					oidint2
 | 
				
			||||||
oidint4
 | 
					oidint4
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user