aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/terminal/tests/integration
blob: ac17432cb661bd4c4babccc8453668c17fa8bb74 (plain)
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
65
66
67
68
69
70
#!/bin/bash

echo "Testing integration response, best start this from a terminal that has no builtin integration"
echo "e.g. 'sh'"
echo

echo -e "\033[1m ⎆ Current dir should have changed to '/Some/Dir/Here'\033[0m"
printf "\033]7;file:///Some/Dir/Here\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ Current dir should have changed to '/Some/Other/Dir/Here'\033[0m"
printf "\033]1337;CurrentDir=/Some/Other/Dir/Here\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo


echo -e "\033[1m ⎆ Current dir should have changed to '/VSCode/dir/with space'\033[0m"
printf "\033]633P;Cwd=/VSCode/dir/with space\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ The current process should have changed to 'test'\033[0m"
printf "\033]633E;test with arguments\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ The current process should have changed to 'test with space'\033[0m"
printf "\033]633E;'test with space'\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ The current process should have changed to 'test with space v2'\033[0m"
printf "\033]633E;\"test with space v2\"\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ The current process should have changed to 'test with space v3'\033[0m"
printf "\033]633E;\"./test/test with space v3\" -argument\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ The current process should have changed to 'cat'\033[0m"
printf "\033]633E;cat /dev/random | base64 -argument\033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo

echo -e "\033[1m ⎆ The current process should have changed to 'cat me'\033[0m"
printf "\033]633E;cat\\ me args \033\\"

read -p "    ⎆ Press enter to continue " -n1 -s
echo
echo