[Swift-commit] r4730 - trunk/tests/language/working

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sat Jul 2 13:53:00 CDT 2011


Author: hategan
Date: 2011-07-02 13:53:00 -0500 (Sat, 02 Jul 2011)
New Revision: 4730

Added:
   trunk/tests/language/working/combine
   trunk/tests/language/working/generate
   trunk/tests/language/working/process
   trunk/tests/language/working/tc.template.mix.data
Log:
made diamond work

Added: trunk/tests/language/working/combine
===================================================================
--- trunk/tests/language/working/combine	                        (rev 0)
+++ trunk/tests/language/working/combine	2011-07-02 18:53:00 UTC (rev 4730)
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+O=""
+I=""
+R=""
+
+while [ $# -gt 0 ]; do
+	echo $1
+  case $1 in
+  	-p)
+  		P=$2
+  		shift 2;;
+  	-i)
+  		shift
+  		while [ "${1:0:1}" != "-" ]; do
+  			I="$I $1"
+  			echo $1
+  			shift
+  		done
+		;;
+  	-o)
+  		O=$2
+  		shift 2;;
+  	*)
+  		R="$R$1"
+  		shift;;
+  esac
+done
+
+for J in $I; do
+	cat $J >> $O
+done
+
+echo $R >> $O


Property changes on: trunk/tests/language/working/combine
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/language/working/generate
===================================================================
--- trunk/tests/language/working/generate	                        (rev 0)
+++ trunk/tests/language/working/generate	2011-07-02 18:53:00 UTC (rev 4730)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+P=""
+O=""
+R=""
+
+while [ $# -gt 0 ]; do
+  case $1 in
+  	-p)
+  		P=$2
+  		shift 2;;
+  	-o)
+  		O=$2
+  		shift 2;;
+  	*)
+  		R="$R$1"
+  		shift;;
+  esac
+done
+
+echo $P >> $O
+echo $R >> $O


Property changes on: trunk/tests/language/working/generate
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/language/working/process
===================================================================
--- trunk/tests/language/working/process	                        (rev 0)
+++ trunk/tests/language/working/process	2011-07-02 18:53:00 UTC (rev 4730)
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+P=""
+O=""
+I=""
+R=""
+
+while [ $# -gt 0 ]; do
+  case $1 in
+  	-p)
+  		P=$2
+  		shift 2;;
+  	-i)
+  		I=$2
+  		shift 2;;
+  	-o)
+  		O=$2
+  		shift 2;;
+  	*)
+  		R="$R$1"
+  		shift;;
+  esac
+done
+
+cat $I > $O
+echo $P >> $O
+echo $R >> $O


Property changes on: trunk/tests/language/working/process
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/tests/language/working/tc.template.mix.data
===================================================================
--- trunk/tests/language/working/tc.template.mix.data	                        (rev 0)
+++ trunk/tests/language/working/tc.template.mix.data	2011-07-02 18:53:00 UTC (rev 4730)
@@ -0,0 +1,3 @@
+localhost 	generate 		_DIR_/generate      INSTALLED	INTEL32::LINUX	null
+localhost 	process 		_DIR_/process       INSTALLED	INTEL32::LINUX	null
+localhost 	combine 		_DIR_/combine       INSTALLED	INTEL32::LINUX	null
\ No newline at end of file




More information about the Swift-commit mailing list