2023-12-05 14:13:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-12-06 09:44:15 +00:00
|
|
|
dir_name="aggregator-test-case"
|
2023-12-05 14:13:06 +00:00
|
|
|
|
|
|
|
cd ../..
|
|
|
|
make all
|
|
|
|
echo '------------------------'
|
|
|
|
|
|
|
|
if [[ ! -e "$dir_name" ]]; then
|
|
|
|
mkdir "$dir_name"
|
2023-12-06 09:44:15 +00:00
|
|
|
echo "creating directory 'bird/$dir_name'"
|
2023-12-05 14:13:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cp ./bird ./"$dir_name"
|
|
|
|
echo 'copying bird executable'
|
|
|
|
|
|
|
|
cp ./birdc ./"$dir_name"
|
|
|
|
echo 'copying birdc executable'
|
|
|
|
|
|
|
|
cp ./proto/aggregator/bird.conf ./"$dir_name"
|
|
|
|
echo 'copying bird.conf'
|
|
|
|
|
|
|
|
cd "$dir_name"
|
|
|
|
|
|
|
|
echo 'done'
|
|
|
|
echo
|
2023-12-06 09:44:15 +00:00
|
|
|
echo 'expected result:'
|
|
|
|
echo '====THIRD PASS===='
|
|
|
|
echo '0.0.0.0/0'
|
|
|
|
echo '10.100.0.0/16'
|