File: example_test.sh

package info (click to toggle)
golang-github-envoyproxy-protoc-gen-validate 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,720 kB
  • sloc: java: 1,768; python: 1,203; xml: 893; cpp: 414; makefile: 154; sh: 9
file content (10 lines) | stat: -rwxr-xr-x 121 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
#

BINARY=$1
EXPECTED_EXIT_CODE=$2
FILENAME=$3

"${BINARY}" "${FILENAME}"

test $? -eq ${EXPECTED_EXIT_CODE}