-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·65 lines (52 loc) · 922 Bytes
/
test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
set -e -x
code=4m,3y,2m
code2=3y
./reload
echo 1 Record
echo ===
sudo ./switchrecord
./capseqs.py recorded_u $code
echo
echo 2 k2u
echo ===
sudo ./khron.py k2u recorded_k2u
echo
echo 3 Cmp recorded and restored
echo ===
diff -r recorded_u recorded_k2u
echo
echo 4 Replay
echo ===
sudo ./switchreplay
./capseqs.py replayed_u $code
echo
echo 5 Cmp recorded and replayed
echo ===
diff -r recorded_u replayed_u
echo
echo 5b Cmp restored and rerestored
echo ---
sudo ./khron.py k2u recorded_k2u_b
diff -r recorded_k2u recorded_k2u_b
echo
echo 6 Mirror
echo ===
./domirror.sh recorded_u mirrored
rm -rf mirrored/00 mirrored/02
mv mirrored/01 mirrored/00
echo
echo 7 u2k
echo ===
sudo ./khron.py u2k mirrored
echo
echo 8 Replay mirrored
echo ===
# reset index
sudo ./switchreplay
./capseqs.py mirrored_replayed $code2
echo
echo 9 Cmp mirrored and replayed
echo ===
diff -r mirrored mirrored_replayed
echo