-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.bat
90 lines (88 loc) · 1.83 KB
/
test.bat
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
@set PY=python
@set PROGRAMNAME=javimp.py
@set TESTFILE=TestJava.java
@set TESTFILEBACKUP=TestJava.java~
@set T1=ArrayList
@set T2=Ellipse2D LastOwnerException FileCacheImageInputStream
@set T3=Activity Bundle OnClickListener
@echo TESTING BASIC OUTPUT
@echo %PY% %PROGRAMNAME% %T1%
@echo.
@echo OUTPUT:
@%PY% %PROGRAMNAME% %T1% 2>nul
@echo.
@echo.
@echo TESTING MULTIPLE ARGUMENTS FROM STANDARD LIBRARY
@echo %PY% %PROGRAMNAME% %T2%
@echo.
@echo OUTPUT:
@%PY% %PROGRAMNAME% %T2% 2>nul
@echo.
@echo.
@echo TESTING OUTPUT FOR ANDROID API
@echo %PY% %PROGRAMNAME% %T3%
@echo.
@echo OUTPUT:
@%PY% %PROGRAMNAME% %T3% 2>nul
@echo.
@echo.
@echo TESTING -a OPTION
@echo %PY% %PROGRAMNAME% -a %T3%
@echo.
@echo OUTPUT:
@%PY% %PROGRAMNAME% -a %T3% 2>nul
@echo.
@echo.
@echo TESTING -c OPTION
@echo If successful, you should check the content of your clipboard afterwards
@echo.
@%PY% %PROGRAMNAME% -c %T2% 2>nul
@echo.
@echo.
@echo TESTING -o OPTION
@echo %PY% %PROGRAMNAME% -o %T3%
@echo.
@echo CONTENT AFTER:
@%PY% %PROGRAMNAME% -o %T3% 2>nul
@type import_statements.txt
@del import_statements.txt
@echo.
@echo.
@echo TESTING -i OPTION WITH %TESTFILE%
@echo %PY% %PROGRAMNAME% -i %TESTFILE%
@echo.
@echo CONTENT BEFORE:
@type %TESTFILE%
@echo.
@echo.
@echo CONTENT AFTER:
@%PY% %PROGRAMNAME% -i %TESTFILE% 2>nul
@type %TESTFILE%
@copy /Y %TESTFILEBACKUP% %TESTFILE% >nul
@echo.
@echo.
@echo.
@echo TESTING -a OPTION WITH OTHER OPTIONS
@echo.
@echo %PY% %PROGRAMNAME% -a -o %T3%
@echo.
@echo CONTENT AFTER:
@%PY% %PROGRAMNAME% -a -o %T3% 2>nul
@type import_statements.txt
@del import_statements.txt
@echo.
@echo.
@echo %PY% %PROGRAMNAME% -a -i %TESTFILE%
@echo.
@echo CONTENT BEFORE:
@type %TESTFILE%
@echo.
@echo.
@echo CONTENT AFTER:
@%PY% %PROGRAMNAME% -a -i %TESTFILE% 2>nul
@type %TESTFILE%
@copy /Y %TESTFILEBACKUP% %TESTFILE% >nul
@echo.
@echo.
@echo.
@echo ALL TESTS COMPLETED