-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestscript.py
97 lines (66 loc) · 2.44 KB
/
testscript.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/python
## testscript
# pruns some inputs on prime.py
# testscript.py script
# Source Code produced by Willtech 2023
# v0.2 hand coded by HRjJ
import os
print ('py prime.py firstrun')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' firstrun')
os.system(exechelp)
print ('---------')
print ('py prime.py firstrun 1000')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' firstrun 1000')
os.system(exechelp)
print ('---------')
print ('py prime.py firstrun abc')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' firstrun abc')
os.system(exechelp)
print ('---------')
print ('py prime.py --help')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' --help')
os.system(exechelp)
print ('---------')
print ('py prime.py -h')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' -h')
os.system(exechelp)
print ('---------')
print ('py prime.py 0')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' 0')
os.system(exechelp)
print ('---------')
print ('py prime.py 1')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' 1')
os.system(exechelp)
print ('---------')
print ('py prime.py 123')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' 123')
os.system(exechelp)
print ('---------')
print ('py prime.py -123')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' -123')
os.system(exechelp)
print ('---------')
print ('py prime.py 7')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' 7')
os.system(exechelp)
print ('---------')
print ('py prime.py -7')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' -7')
os.system(exechelp)
print ('---------')
print ('py prime.py ab12')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' ab12')
os.system(exechelp)
print ('---------')
print ('py prime.py 12ab')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' 12ab')
os.system(exechelp)
print ('---------')
print ('py prime.py abc')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py' + ' abc')
os.system(exechelp)
print ('---------')
print ('py prime.py')
exechelp = ('py ' + os.path.abspath(os.path.dirname(__file__)) + '/prime.py')
os.system(exechelp)