| 1 | { |
| 2 | "TestProjectMountpointBash": [ |
| 3 | { |
| 4 | "Dir": "{ROOT}", |
| 5 | "Stdin": "", |
| 6 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 7 | "Env": [ |
| 8 | "HOME={T0}/003", |
| 9 | "HOME={T0}/002/home", |
| 10 | "AGENT_VM_STATE_DIR={T0}/002/home/.agent-vm" |
| 11 | ], |
| 12 | "Args": [ |
| 13 | "{T0}/002/home/proj", |
| 14 | "sub/new", |
| 15 | "{T0}/002/data/a" |
| 16 | ], |
| 17 | "Files": null, |
| 18 | "Stdout": "{T0}/002/home/proj/sub/new\n", |
| 19 | "Stderr": "", |
| 20 | "Code": 0 |
| 21 | }, |
| 22 | { |
| 23 | "Dir": "{ROOT}", |
| 24 | "Stdin": "", |
| 25 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 26 | "Env": [ |
| 27 | "HOME={T0}/006", |
| 28 | "HOME={T0}/005/home", |
| 29 | "AGENT_VM_STATE_DIR={T0}/005/home/.agent-vm" |
| 30 | ], |
| 31 | "Args": [ |
| 32 | "{T0}/005/home/proj", |
| 33 | "deep/a/b", |
| 34 | "{T0}/005/data/a" |
| 35 | ], |
| 36 | "Files": null, |
| 37 | "Stdout": "{T0}/005/home/proj/deep/a/b\n", |
| 38 | "Stderr": "", |
| 39 | "Code": 0 |
| 40 | }, |
| 41 | { |
| 42 | "Dir": "{ROOT}", |
| 43 | "Stdin": "", |
| 44 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 45 | "Env": [ |
| 46 | "HOME={T0}/009", |
| 47 | "HOME={T0}/008/home", |
| 48 | "AGENT_VM_STATE_DIR={T0}/008/home/.agent-vm" |
| 49 | ], |
| 50 | "Args": [ |
| 51 | "{T0}/008/home/proj", |
| 52 | "f.txt", |
| 53 | "{T0}/008/data/file.txt" |
| 54 | ], |
| 55 | "Files": null, |
| 56 | "Stdout": "{T0}/008/home/proj/f.txt\n", |
| 57 | "Stderr": "", |
| 58 | "Code": 0 |
| 59 | }, |
| 60 | { |
| 61 | "Dir": "{ROOT}", |
| 62 | "Stdin": "", |
| 63 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 64 | "Env": [ |
| 65 | "HOME={T0}/012", |
| 66 | "HOME={T0}/011/home", |
| 67 | "AGENT_VM_STATE_DIR={T0}/011/home/.agent-vm" |
| 68 | ], |
| 69 | "Args": [ |
| 70 | "{T0}/011/home/proj", |
| 71 | "../out", |
| 72 | "{T0}/011/data/a" |
| 73 | ], |
| 74 | "Files": null, |
| 75 | "Stdout": "", |
| 76 | "Stderr": "Warning: Mount destination '../out' (from ~/.agent-vm/volumes) goes out of the project with '..', skipping.\n", |
| 77 | "Code": 1 |
| 78 | }, |
| 79 | { |
| 80 | "Dir": "{ROOT}", |
| 81 | "Stdin": "", |
| 82 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 83 | "Env": [ |
| 84 | "HOME={T0}/015", |
| 85 | "HOME={T0}/014/home", |
| 86 | "AGENT_VM_STATE_DIR={T0}/014/home/.agent-vm" |
| 87 | ], |
| 88 | "Args": [ |
| 89 | "{T0}/014/home/proj", |
| 90 | ".", |
| 91 | "{T0}/014/data/a" |
| 92 | ], |
| 93 | "Files": null, |
| 94 | "Stdout": "", |
| 95 | "Stderr": "Warning: Mount destination '.' (from ~/.agent-vm/volumes) is the project itself, skipping.\n", |
| 96 | "Code": 1 |
| 97 | }, |
| 98 | { |
| 99 | "Dir": "{ROOT}", |
| 100 | "Stdin": "", |
| 101 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 102 | "Env": [ |
| 103 | "HOME={T0}/018", |
| 104 | "HOME={T0}/017/home", |
| 105 | "AGENT_VM_STATE_DIR={T0}/017/home/.agent-vm" |
| 106 | ], |
| 107 | "Args": [ |
| 108 | "{T0}/017/home/proj", |
| 109 | "link/x", |
| 110 | "{T0}/017/data/a" |
| 111 | ], |
| 112 | "Files": null, |
| 113 | "Stdout": "", |
| 114 | "Stderr": "Warning: Mount destination 'link/x' (from ~/.agent-vm/volumes) goes through a symlink in the project ({T0}/017/home/proj/link), skipping.\n", |
| 115 | "Code": 1 |
| 116 | }, |
| 117 | { |
| 118 | "Dir": "{ROOT}", |
| 119 | "Stdin": "", |
| 120 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 121 | "Env": [ |
| 122 | "HOME={T0}/021", |
| 123 | "HOME={T0}/020/home", |
| 124 | "AGENT_VM_STATE_DIR={T0}/020/home/.agent-vm" |
| 125 | ], |
| 126 | "Args": [ |
| 127 | "{T0}/020/home/proj", |
| 128 | "sub", |
| 129 | "{T0}/020/data/file.txt" |
| 130 | ], |
| 131 | "Files": null, |
| 132 | "Stdout": "", |
| 133 | "Stderr": "Warning: Mount destination 'sub' (from ~/.agent-vm/volumes) goes through a symlink in the project, or is not a file there, skipping.\n", |
| 134 | "Code": 1 |
| 135 | }, |
| 136 | { |
| 137 | "Dir": "{ROOT}", |
| 138 | "Stdin": "", |
| 139 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 140 | "Env": [ |
| 141 | "HOME={T0}/024", |
| 142 | "HOME={T0}/023/home", |
| 143 | "AGENT_VM_STATE_DIR={T0}/023/home/.agent-vm" |
| 144 | ], |
| 145 | "Args": [ |
| 146 | "{T0}/023/home/proj", |
| 147 | "plainfile", |
| 148 | "{T0}/023/data/a" |
| 149 | ], |
| 150 | "Files": null, |
| 151 | "Stdout": "", |
| 152 | "Stderr": "Warning: Mount destination 'plainfile' (from ~/.agent-vm/volumes) goes through a symlink in the project, or is not a directory there, skipping.\n", |
| 153 | "Code": 1 |
| 154 | }, |
| 155 | { |
| 156 | "Dir": "{ROOT}", |
| 157 | "Stdin": "", |
| 158 | "Snippet": "_agent_vm_project_mountpoint \"$@\"", |
| 159 | "Env": [ |
| 160 | "HOME={T0}/027", |
| 161 | "HOME={T0}/026/home", |
| 162 | "AGENT_VM_STATE_DIR={T0}/026/home/.agent-vm" |
| 163 | ], |
| 164 | "Args": [ |
| 165 | "{T0}/026/home/proj", |
| 166 | "./sub/./x/", |
| 167 | "{T0}/026/data/a" |
| 168 | ], |
| 169 | "Files": null, |
| 170 | "Stdout": "{T0}/026/home/proj/sub/x\n", |
| 171 | "Stderr": "", |
| 172 | "Code": 0 |
| 173 | } |
| 174 | ] |
| 175 | } |