File: validation

package info (click to toggle)
sedparse 0.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 1,810; sed: 59; sh: 48; makefile: 6
file content (11 lines) | stat: -rwxr-xr-x 189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

OK_RESULT='[{"a1":{"addr_number":5,"addr_type":3},"cmd":"d","line":1}]'

result=`sedparse -e 5d | tr -d '\n' | tr -d ' '`

[ "$result" = "$OK_RESULT" ] || exit 1

exit 0