cleanup and correct rita integration test
#!/usr/bin/env bash
set -euo pipefail
+
+build_babel () {
if [ ! -d "./babeld" ] ; then
git clone -b althea "https://github.com/althea-mesh/babeld" "./babeld"
fi
@@ -8,15 +10,18 @@ fi
cd ./babeld
make
make install
+ cd ../
+}
-cd ../../rita
+build_rita () {
+ cd ../rita
cargo build
-
cd ../integration-tests
+}
network_lab=./deps/network-lab/network-lab.sh
babeld=./babeld/babeld
-rita=../../rita/target/debug/rita
+rita=../rita/target/debug/rita
if [[ $EUID -ne 0 ]]; then
@@ -57,6 +62,9 @@ cleanup()
rm -f ./*.log
}
+build_babel
+build_rita
+
stop_processes
cleanup
