mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:14:33 +00:00
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks) - Update UI and core actions to use ~/.prole/build and shared copy helper - Add/adjust tests and scripts; introduce knoe ops helpers and update manifests Co-authored-by: Junie <junie@jetbrains.com>
43 lines
1.3 KiB
Bash
Executable File
43 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "=== Prole Installer Build System Test ==="
|
|
echo ""
|
|
|
|
echo "1. Testing Makefile..."
|
|
make help > /dev/null && echo " ✓ Makefile works"
|
|
|
|
echo ""
|
|
echo "2. Testing icon file..."
|
|
test -f img/proleIcon.png && echo " ✓ Icon file exists"
|
|
|
|
echo ""
|
|
echo "3. Testing Python modules..."
|
|
python3 -c "from install import ProleController; ProleController('.')" && echo " ✓ ProleController works"
|
|
python3 -c "from knoe.ncurses_installer import run_ncurses_installer" && echo " ✓ Ncurses installer imports"
|
|
python3 -c "from knoe.ncurses_ui import CursesWindow" && echo " ✓ Ncurses UI imports"
|
|
|
|
echo ""
|
|
echo "4. Testing command-line interface..."
|
|
python3 install.py --help > /dev/null && echo " ✓ --help works"
|
|
|
|
echo ""
|
|
echo "5. Testing spec generator..."
|
|
test -f scripts/generate_spec.py && python3 scripts/generate_spec.py && echo " ✓ Spec generator works"
|
|
|
|
echo ""
|
|
echo "6. Testing icon conversion..."
|
|
make clean > /dev/null 2>&1
|
|
make build/prole.icns > /dev/null 2>&1 && echo " ✓ Icon conversion works"
|
|
test -f build/prole.icns && echo " ✓ ICNS file created"
|
|
|
|
echo ""
|
|
echo "=== All Tests Passed ==="
|
|
echo ""
|
|
echo "Ready to build!"
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo " 1. Install build dependencies: make install"
|
|
echo " 2. Build the installer: make package"
|
|
echo " 3. Test the build: make test"
|