File: exit_code_for_success.sh

package info (click to toggle)
bear 3.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,904 kB
  • sloc: cpp: 9,184; sh: 706; ansic: 497; python: 175; makefile: 29
file content (53 lines) | stat: -rw-r--r-- 1,576 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env sh

# UNSUPPORTED: true
# RUN: cd %T; %{shell} %s %t.commands.json
# RUN: %{citnames} --verbose --input %t.commands.json --output %t.compilations.json
# RUN: assert_compilation %t.compilations.json count -eq 0

cat > $1 << EOF
{
    "context": {
        "host_info": {
            "_CS_GNU_LIBC_VERSION": "glibc 2.31",
            "_CS_GNU_LIBPTHREAD_VERSION": "NPTL 2.31",
            "_CS_PATH": "/usr/bin",
            "machine": "x86_64",
            "release": "5.8.4-200.fc32.x86_64",
            "sysname": "Linux",
            "version": "#1 SMP Wed Aug 26 22:28:08 UTC 2020"
        },
        "intercept": "library preload"
    },
    "executions": [
        {
            "command": {
                "arguments": [
                    "/usr/bin/bash",
                    "/home/user/build.sh"
                ],
                "environment": {
                    "PATH": "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin"
                },
                "program": "/usr/bin/bash",
                "working_dir": "/home/user"
            },
            "run": {
                "events": [
                    {
                        "at": "2020-09-13T21:13:04.724530Z",
                        "type": "started"
                    },
                    {
                        "at": "2020-09-13T21:13:04.798790Z",
                        "status": 0,
                        "type": "terminated"
                    }
                ],
                "pid": 629422,
                "ppid": 629392
            }
        }
    ]
}
EOF