summaryrefslogtreecommitdiff
path: root/tests/specs/compile/include_data_files/__test__.jsonc
blob: 5d5d967ca2c308e84dd99b1b41067b3c6a638cda (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
{
  "tempDir": true,
  "tests": {
    "success": {
      "steps": [{
        "if": "unix",
        "args": "compile --allow-read=data-file.txt --include data-file.txt --output main main.js",
        "output": "[WILDCARD]"
      }, {
        "if": "unix",
        "commandName": "./main",
        "args": [],
        "output": "output.out",
        "exitCode": 0
      }, {
        "if": "windows",
        "args": "compile --allow-read=data-file.txt --include data-file.txt --output main.exe main.js",
        "output": "[WILDCARD]"
      }, {
        "if": "windows",
        "commandName": "./main.exe",
        "args": [],
        "output": "output.out",
        "exitCode": 0
      }]
    },
    "non_existent": {
      "steps": [{
        "if": "unix",
        "args": "compile --include does_not_exist.txt --output main main.js",
        "output": "non_existent.out",
        "exitCode": 1
      }, {
        "if": "windows",
        "args": "compile --include does_not_exist.txt --output main.exe main.js",
        "output": "non_existent.out",
        "exitCode": 1
      }]
    }
  }
}