-
Notifications
You must be signed in to change notification settings - Fork 0
/
runall-ae.sh
executable file
·47 lines (37 loc) · 1.18 KB
/
runall-ae.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
set -e
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$script_dir"
progress_file=${progress_file:-.overall-progress}
export remote_ip=${remote_ip:-10.0.0.1}
export remote_user=${remote_user:-usenix}
local_hash=$(git rev-parse HEAD)
remote_cmd_res=$(common/remote_commands/generic.sh "cd optane_sec23_ae; git pull; git rev-parse HEAD")
remote_hash=$(echo "$remote_cmd_res" | tail -n1)
if [[ $local_hash != $remote_hash ]] ; then
echo "Local Commit:$local_hash"
echo "Remote Commit: $remote_hash"
echo "Commits are different"
echo "Please ensure that the commit versions are the same"
exit
fi
truncate $progress_file -s0
for i in $(find -name "script-ae.sh") ; do
echo Running $i | tee -a $progress_file
startt=$(date +%s)
(
cd $(dirname $i)
./$(basename $i)
)
endt=$(date +%s)
diff=$((endt-startt))
echo "Time: $diff" | tee -a $progress_file
echo $diff
done
mkdir -p report/results_csv
mkdir -p report/results_dat
cp $(find -name '*.csv' | grep result-ae ) report/results_csv
cp $(find -name '*.dat' | grep result-ae ) report/results_dat
echo Generating Report
cd report
make