Files
TSYSDevStack/CloudronStack/test_add_url.sh
ReachableCEO f6971c20ec feat(cloudron): update automation and packaging scripts
- Update CloudronStack/output/master-control-script.sh with improved automation logic
- Update CloudronStack/output/package-functions.sh with enhanced packaging capabilities
- Add CloudronStack/test_add_url.sh for testing URL addition functionality

These changes improve the CloudronStack automation and testing capabilities.
2025-10-30 09:31:20 -05:00

24 lines
841 B
Bash
Executable File

#!/bin/bash
# Test script to verify the add_git_url functionality
# Source the master script to get access to its functions
source /home/localuser/TSYSDevStack/CloudronStack/output/master-control-script.sh
# Test adding a new URL
echo "Testing add_git_url function..."
add_git_url "https://github.com/testuser/testrepo"
# Check the git URL list file to see if the URL was added
echo "Contents of GitUrlList.txt after adding:"
cat /home/localuser/TSYSDevStack/CloudronStack/collab/GitUrlList.txt
# Test adding the same URL again (should not duplicate)
echo "Testing adding the same URL again (should not duplicate)..."
add_git_url "https://github.com/testuser/testrepo"
# Add another URL for good measure
echo "Testing adding a second URL..."
add_git_url "https://github.com/anotheruser/anotherrepo"
echo "Test completed successfully!"