Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslm <slm@slm-laptop.(none)>2010-06-16 18:08:44 (GMT)
committer slm <slm@slm-laptop.(none)>2010-06-16 18:08:44 (GMT)
commit3e8b92b813f30c1713785441b200541821bb7ba4 (patch)
treea327868ab15b839759f15fcfc6d07df2bace5db4
parent600d775b70acb93cdd510676a003523c650671dc (diff)
Pushing the initial state of the complete test which will be temporarily located in /anim/completeTest
-rwxr-xr-xanim/completeTest/fileTypeTests.py57
-rwxr-xr-xanim/completeTest/ioexample.py20
-rw-r--r--anim/completeTest/localfile1
-rw-r--r--anim/completeTest/testresult.csv0
4 files changed, 78 insertions, 0 deletions
diff --git a/anim/completeTest/fileTypeTests.py b/anim/completeTest/fileTypeTests.py
new file mode 100755
index 0000000..ceab50c
--- /dev/null
+++ b/anim/completeTest/fileTypeTests.py
@@ -0,0 +1,57 @@
+#! /usr/bin/env python
+#import sys
+
+#= .image() Animation Test ========
+#- set up -------------------------
+
+def imgSetup():
+ print "imgSetup"
+
+def imgTest():
+ print "imgTest"
+
+#= .sprite() Animation Test =======
+#- set up -------------------------
+
+def spriteSetup():
+ print "spriteSetup"
+
+def spriteTest():
+ print "spriteTest"
+
+
+#= Scalability Test ===============
+#- set up -------------------------
+
+def scaleSetup():
+ print "scaleSetup"
+
+def scaleTest():
+ print "scaleTest"
+
+
+print "\n\nWelcome to the master File Type Tester Interface"
+print "Authors: Scott 'JT' Mengel and Dave Silverman"
+print "\nPlease select the test(s) you want to run in the order you want to run them."
+print "Enter 'Exit' into the prompt to close the program. (NOTE: not working yet)\n"
+print "1. Simple File Type Variety Test, as images (NOTE: not working yet)"
+print "2. Simple File Type variety Test, as sprites (NOTE: not working yet)"
+print "3. Selected Scalability Test (NOTE: not working yet)"
+file=open('./testresult.csv','a')
+list=[]
+keyIn="temp val"
+val=0
+while keyIn is not None:
+ keyIn=raw_input(">")
+ list[val]=int(keyIn)
+ val=val+1
+
+print list+" and switching now..."
+#
+#for i in list:
+# call what's in list[i] somehow
+# print i
+# if i == keyInt
+# list[int(i)]
+# switch.get( i , sys.exit("Goodbye!") )
+# print 'looped through'
diff --git a/anim/completeTest/ioexample.py b/anim/completeTest/ioexample.py
new file mode 100755
index 0000000..020e09e
--- /dev/null
+++ b/anim/completeTest/ioexample.py
@@ -0,0 +1,20 @@
+#! /usr/bin/env python
+#
+print "\nWelcome to the master File Type Tester Interface"
+print "Authors: Scott 'JT' Mengel and Dave Silverman"
+print "\nPlease select the test(s) you want to run, in the order you want to run them, seperated by commas.\n"
+print "1. Simple File Type Variety Test, as images"
+print "2. Simple File Type variety Test, as sprites"
+print "3. Selected Scalability Test"
+file=open('./localfile','a')
+keyIn=0
+
+while 1:
+ try:
+ keyIn = int(raw_input(">"))
+ print "You have selected %i"%keyIn
+ file.seek(5)
+ file.write("File Accessed!%s"%str(keyIn))
+ break
+ except ValueError:
+ print "Error: out of bounds."
diff --git a/anim/completeTest/localfile b/anim/completeTest/localfile
new file mode 100644
index 0000000..4f70f41
--- /dev/null
+++ b/anim/completeTest/localfile
@@ -0,0 +1 @@
+File Accessed!1 \ No newline at end of file
diff --git a/anim/completeTest/testresult.csv b/anim/completeTest/testresult.csv
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/anim/completeTest/testresult.csv