diff options
-rwxr-xr-x | anim/completeTest/fileTypeTests.py | 57 | ||||
-rwxr-xr-x | anim/completeTest/ioexample.py | 20 | ||||
-rw-r--r-- | anim/completeTest/localfile | 1 | ||||
-rw-r--r-- | anim/completeTest/testresult.csv | 0 |
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 |