-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·45 lines (37 loc) · 1.96 KB
/
Copy pathrun_tests.sh
File metadata and controls
executable file
·45 lines (37 loc) · 1.96 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
#!/bin/bash
# Сборка, установка и тестирование расширения pg_query_stack
set -e
echo "=== Сборка расширения pg_query_stack ==="
make clean
make
echo ""
echo "=== Установка расширения ==="
sudo make install
echo ""
echo "=== Запуск регрессионных тестов ==="
make installcheck
echo ""
echo "=== Тесты выполнены успешно! ==="
# При наличии различий в выводе
if [ -f regression.diffs ]; then
echo ""
echo "=== Найдены различия в тестах ==="
cat regression.diffs
exit 1
fi
# Сводка результатов
echo ""
echo "=== Результаты тестов ==="
test_files=(001_setup 002_basic_functionality 003_skip_parameters 004_edge_cases 005_nested_calls_default 006_nested_calls_full 007_error_recovery 008_subtransactions 009_complex_nesting 010_loop 011_triggers 012_stack_overflow 013_query_length_limit 014_cte_recursive 015_after_trigger_error_cleanup 016_swallowed_subxact_trigger_error 017_lazy_materialize_deep 018_subxact_only_cleanup 019_chained_extensions 020_audit_trigger_realistic 022_columnar_basic 023_audit_after_update_pg_self_query 024_audit_after_delete_pg_self_query 025_audit_nested_function_deepest_visible 026_cursor_close_order 027_refcursor_outlives_caller 028_cursor_closed_in_aborted_subxact 029_failed_cursor_never_ends 030_idle_cursor_not_a_frame 031_holdable_cursor_and_commit_drop 032_subxact_snapshot_overflow)
for test in "${test_files[@]}"; do
if [ -f "results/${test}.out" ]; then
echo "✓ ${test}: PASSED"
else
echo "✗ ${test}: РЕЗУЛЬТАТ НЕ НАЙДЕН"
fi
done
echo ""
echo "=== Отдельные тесты ==="
echo "Детальный вывод теста: cat results/[имя_теста].out"
echo "Доступные результаты:"
ls -la results/ 2>/dev/null || echo "Папка results/ не найдена"