| 
									
										
										
										
											2019-03-24 18:03:03 +08:00
										 |  |  | #!/bin/sh | 
					
						
							|  |  |  | TCL_VERSIONS="8.5 8.6" | 
					
						
							|  |  |  | TCLSH="" | 
					
						
							| 
									
										
										
										
											2020-12-13 23:09:54 +08:00
										 |  |  | [ -z "$MAKE" ] && MAKE=make | 
					
						
							| 
									
										
										
										
											2019-03-24 18:03:03 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | for VERSION in $TCL_VERSIONS; do | 
					
						
							|  |  |  | 	TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL | 
					
						
							|  |  |  | done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [ -z $TCLSH ] | 
					
						
							|  |  |  | then | 
					
						
							| 
									
										
										
										
											2020-08-11 18:35:20 +08:00
										 |  |  |     echo "You need tcl 8.5 or newer in order to run the Redis ModuleApi test" | 
					
						
							| 
									
										
										
										
											2019-03-24 18:03:03 +08:00
										 |  |  |     exit 1 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-13 23:09:54 +08:00
										 |  |  | $MAKE -C tests/modules && \ | 
					
						
							| 
									
										
										
										
											2019-10-24 14:38:52 +08:00
										 |  |  | $TCLSH tests/test_helper.tcl \ | 
					
						
							|  |  |  | --single unit/moduleapi/commandfilter \ | 
					
						
							|  |  |  | --single unit/moduleapi/fork \ | 
					
						
							|  |  |  | --single unit/moduleapi/testrdb \ | 
					
						
							|  |  |  | --single unit/moduleapi/infotest \ | 
					
						
							|  |  |  | --single unit/moduleapi/propagate \ | 
					
						
							|  |  |  | --single unit/moduleapi/hooks \ | 
					
						
							|  |  |  | --single unit/moduleapi/misc \ | 
					
						
							| 
									
										
										
										
											2018-03-29 18:46:13 +08:00
										 |  |  | --single unit/moduleapi/blockonkeys \ | 
					
						
							| 
									
										
										
										
											2021-01-29 21:38:30 +08:00
										 |  |  | --single unit/moduleapi/blockonbackground \ | 
					
						
							| 
									
										
										
										
											2019-10-17 20:37:01 +08:00
										 |  |  | --single unit/moduleapi/scan \ | 
					
						
							| 
									
										
										
										
											2019-11-19 18:08:02 +08:00
										 |  |  | --single unit/moduleapi/datatype \ | 
					
						
							| 
									
										
										
										
											2019-02-26 09:23:11 +08:00
										 |  |  | --single unit/moduleapi/auth \ | 
					
						
							| 
									
										
										
										
											2020-07-23 17:38:51 +08:00
										 |  |  | --single unit/moduleapi/keyspace_events \ | 
					
						
							| 
									
										
										
										
											2020-09-09 21:01:16 +08:00
										 |  |  | --single unit/moduleapi/blockedclient \ | 
					
						
							| 
									
										
										
										
											2020-10-05 22:06:35 +08:00
										 |  |  | --single unit/moduleapi/getkeys \ | 
					
						
							| 
									
										
										
										
											2020-11-16 16:34:04 +08:00
										 |  |  | --single unit/moduleapi/test_lazyfree \ | 
					
						
							| 
									
										
										
										
											2020-12-13 15:56:01 +08:00
										 |  |  | --single unit/moduleapi/defrag \ | 
					
						
							| 
									
										
										
										
											2021-02-15 17:40:05 +08:00
										 |  |  | --single unit/moduleapi/hash \ | 
					
						
							| 
									
										
										
										
											2021-02-06 01:54:01 +08:00
										 |  |  | --single unit/moduleapi/zset \ | 
					
						
							| 
									
										
										
										
											2021-01-28 22:19:43 +08:00
										 |  |  | --single unit/moduleapi/stream \ | 
					
						
							| 
									
										
										
										
											2019-10-24 14:38:52 +08:00
										 |  |  | "${@}" |