| 47 |
rodolico |
1 |
# Tests Directory
|
|
|
2 |
|
|
|
3 |
This directory contains all test scripts for havirt.
|
|
|
4 |
|
|
|
5 |
## Quick Start
|
|
|
6 |
|
|
|
7 |
```bash
|
|
|
8 |
cd tests/
|
|
|
9 |
./test_havirt_safe.sh
|
|
|
10 |
```
|
|
|
11 |
|
|
|
12 |
## Available Test Scripts
|
|
|
13 |
|
|
|
14 |
- **test_havirt_safe.sh** - Safe read-only tests (recommended)
|
|
|
15 |
- **test_havirt.sh** - Full integration tests (requires live cluster)
|
|
|
16 |
- **test_integration.pl** - Perl unit tests for modules
|
|
|
17 |
- **run_tests.sh** - Interactive test runner
|
|
|
18 |
- **TESTING.md** - Complete testing documentation
|
|
|
19 |
|
|
|
20 |
## Running Tests
|
|
|
21 |
|
|
|
22 |
All test scripts must be run from this `tests/` directory:
|
|
|
23 |
|
|
|
24 |
```bash
|
|
|
25 |
# Safe tests (no SSH required)
|
|
|
26 |
./test_havirt_safe.sh
|
|
|
27 |
|
|
|
28 |
# With verbose output
|
|
|
29 |
./test_havirt_safe.sh --verbose
|
|
|
30 |
|
|
|
31 |
# Perl integration tests
|
|
|
32 |
./test_integration.pl
|
|
|
33 |
|
|
|
34 |
# Interactive test runner
|
|
|
35 |
./run_tests.sh
|
|
|
36 |
```
|
|
|
37 |
|
|
|
38 |
See [TESTING.md](TESTING.md) for complete documentation.
|