File: run-compare-parse.sh

package info (click to toggle)
libfyaml 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,684 kB
  • sloc: ansic: 51,709; asm: 8,692; sh: 1,185; makefile: 545; python: 24
file content (12 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# VALGRIND=""
VALGRIND="valgrind"
BN=`basename $1`
ON="output/$BN"
mkdir -p output
a="$ON.libyaml.parse"
b="$ON.libfyaml.parse"
./src/libfyaml-parser -mlibyaml-parse "$1" >"$a"
./src/libfyaml-parser -mparse "$1" >"$b"
diff -u "$a" "$b" | tee "$ON.parse.diff"
./src/libfyaml-parser -mparse -d0 "$1" >"$ON.parse.log" 2>&1