Commit 513f7fe3 authored by Joanne Hugé's avatar Joanne Hugé

Fix relative paths in the wrapper scripts

parent 895a12fa
#!/bin/bash
script_dir=$(dirname $(realpath $0))
usage() {
echo "Usage: $0 -e delta|-p [-i INTERVAL]" 1>&2;
exit 1;
......@@ -35,9 +37,13 @@ if [ -n "${use_etf}" ] && [ -n "${use_pfast}" ]; then
fi
if [ -n "${use_etf}" ]; then
./create_qdisc -e $delta;
../packet-exchange/build/client_arm -ae -p 99 -q 7 -f eth0 -i $interval 192.168.99.25;
echo "$script_dir/create_qdisc -e $delta";
$script_dir/create_qdisc -e $delta;
echo "$script_dir/../packet-exchange/build/client_arm -ae -p 99 -q 7 -f eth0 -i $interval 192.168.99.25";
$script_dir/../packet-exchange/build/client_arm -ae -p 99 -q 7 -f eth0 -i $interval 192.168.99.25;
elif [ -n "${use_pfast}" ]; then
./create_qdisc -p;
../packet-exchange/build/client_arm -a -p 99 -q 1 -f eth0 -i $interval 192.168.99.25;
echo "$script_dir/create_qdisc -p";
$script_dir/create_qdisc -p;
echo "$script_dir/../packet-exchange/build/client_arm -a -p 99 -q 1 -f eth0 -i $interval 192.168.99.25";
$script_dir/../packet-exchange/build/client_arm -a -p 99 -q 1 -f eth0 -i $interval 192.168.99.25;
fi
#!/bin/bash
script_dir=$(dirname $(realpath $0))
usage() {
echo "Usage: $0 [-t NB_PACKETS]" 1>&2;
exit 1;
......@@ -20,9 +22,13 @@ done
shift $((OPTIND-1))
if [ -n "${use_tcpdump}" ]; then
echo "tcpdump -c $nb_packets -i eth0 -w tmp.pcap -tt --time-stamp-precision=nano udp port 50000";
tcpdump -c $nb_packets -i eth0 -w tmp.pcap -tt --time-stamp-precision=nano udp port 50000;
echo "tshark -r tmp.pcap --disable-protocol dcp-etsi --disable-protocol dcp-pft -t e -E separator=, -T fields -e frame.number -e frame.time_epoch -e data.data > tmp.out";
tshark -r tmp.pcap --disable-protocol dcp-etsi --disable-protocol dcp-pft -t e -E separator=, -T fields -e frame.number -e frame.time_epoch -e data.data > tmp.out;
./txtime_stats.py -f tmp.out;
echo "$script_dir/txtime_stats.py -f tmp.out";
$script_dir/txtime_stats.py -f tmp.out;
else
../packet-exchange/build/server_arm -a -p 99;
echo "$script_dir/../packet-exchange/build/server_arm -a -p 99";
$script_dir/../packet-exchange/build/server_arm -a -p 99;
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment