- 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.
24 lines
841 B
Bash
Executable File
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!" |