-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_windows.bat
More file actions
82 lines (71 loc) · 2.07 KB
/
test_windows.bat
File metadata and controls
82 lines (71 loc) · 2.07 KB
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
@echo off
REM Windows Test Script for Big Data Text Analysis Project
REM Tests all components with proper Windows commands
echo 🧪 Testing Big Data Text Analysis Project (Windows)
echo ===================================================
REM Check if virtual environment exists
if not exist "myenv" (
echo ❌ Virtual environment not found. Please run setup_windows.bat first.
pause
exit /b 1
)
REM Activate virtual environment
echo 📦 Activating virtual environment...
call myenv\Scripts\activate.bat
REM Test 1: Preprocessing
echo.
echo 🧪 Test 1: Text Preprocessing
echo ------------------------------
echo test text | python preprocess.py
if errorlevel 1 (
echo ❌ Preprocessing test failed
) else (
echo ✅ Preprocessing test passed
)
REM Test 2: Word Count Pipeline
echo.
echo 🧪 Test 2: Word Count Pipeline
echo ------------------------------
echo test text | python preprocess.py | python mapper.py | python reducer.py
if errorlevel 1 (
echo ❌ Word count pipeline test failed
) else (
echo ✅ Word count pipeline test passed
)
REM Test 3: TF-IDF Pipeline
echo.
echo 🧪 Test 3: TF-IDF Pipeline
echo --------------------------
echo test text | python preprocess_tfidf.py | python mapper_tfidf.py test_doc | python reducer_tfidf.py
if errorlevel 1 (
echo ❌ TF-IDF pipeline test failed
) else (
echo ✅ TF-IDF pipeline test passed
)
REM Test 4: LDA Pipeline
echo.
echo 🧪 Test 4: LDA Pipeline
echo -----------------------
echo test text | python mapper_lda.py | python reducer_lda.py
if errorlevel 1 (
echo ❌ LDA pipeline test failed
) else (
echo ✅ LDA pipeline test passed
)
REM Test 5: Python Test Suite
echo.
echo 🧪 Test 5: Python Test Suite
echo ----------------------------
python test_analysis.py
if errorlevel 1 (
echo ❌ Python test suite failed
) else (
echo ✅ Python test suite passed
)
echo.
echo ===================================================
echo 🎉 Testing completed!
echo ===================================================
REM Deactivate virtual environment
call myenv\Scripts\deactivate.bat
pause