mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Allow running e2e test suite against a locally built httpd
This allows us to easily test httpd changes without doing a release first and then updating the radicle-httpd-release file.
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo "🔨 Compiling local radicle-httpd..."
|
||||
|
||||
# Ensure radicle-httpd directory exists
|
||||
if [ ! -d "radicle-httpd" ]; then
|
||||
echo "❌ radicle-httpd directory not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Compile radicle-httpd (debug build for faster compilation)
|
||||
cd radicle-httpd
|
||||
cargo build
|
||||
cd ..
|
||||
|
||||
# Verify binary was created
|
||||
if [ ! -f "radicle-httpd/target/debug/radicle-httpd" ]; then
|
||||
echo "❌ Compilation failed - binary not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create target directory
|
||||
mkdir -p tests/tmp/bin/httpd/local
|
||||
|
||||
# Copy binary to test location
|
||||
cp radicle-httpd/target/debug/radicle-httpd tests/tmp/bin/httpd/local/radicle-httpd
|
||||
|
||||
echo "✅ Local radicle-httpd compiled and ready at tests/tmp/bin/httpd/local/radicle-httpd"
|
||||
Reference in New Issue
Block a user