-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·39 lines (31 loc) · 982 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·39 lines (31 loc) · 982 Bytes
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
#!/bin/bash
# Test script for log analyzer
# Note: This requires the GitHub Copilot CLI to be installed and configured
set -e
echo "======================================"
echo "Log Analyzer Test Script"
echo "======================================"
echo ""
# Check if Copilot CLI is available
if ! command -v copilot &> /dev/null; then
echo "❌ Error: GitHub Copilot CLI is not installed or not in PATH"
echo ""
echo "Please install the Copilot CLI first:"
echo "https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli"
echo ""
exit 1
fi
echo "✓ Copilot CLI found"
echo ""
# Build the project
echo "Building project..."
npm run build
echo "✓ Build completed"
echo ""
# Test with example log file
echo "Testing with example log file..."
node dist/cli.js --file ./examples/sample-application.log
echo ""
echo "======================================"
echo "Test completed successfully!"
echo "======================================"