File: case5

package info (click to toggle)
taskd 1.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,580 kB
  • sloc: cpp: 13,971; python: 1,523; sh: 1,052; perl: 610; ansic: 48; makefile: 15
file content (32 lines) | stat: -rwxr-xr-x 973 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

# Use Case 5: Client modifies a task, syncs and finds that another client has
# modified the same task twice.

echo '--- modify 2 ------------------------------------------------------------'
task rc:tw2/rc 3 modify Two mod1

echo '--- modify 1 ------------------------------------------------------------'
echo sleep 2
sleep 2
task rc:tw1/rc 2 modify Two mod2 +tag1

echo '--- modify 2 ------------------------------------------------------------'
echo sleep 2
sleep 2
task rc:tw2/rc 3 modify Two mod3 pro:PRO

echo '--- modify 1 ------------------------------------------------------------'
echo sleep 2
sleep 2
task rc:tw1/rc 2 modify Two mod4 +tag2

echo '--- sync 1 --------------------------------------------------------------'
task rc:tw1/rc sync

echo '--- sync 2 --------------------------------------------------------------'
task rc:tw2/rc sync

echo '--- sync 1 --------------------------------------------------------------'
task rc:tw1/rc sync