File: run_write

package info (click to toggle)
pxp 1.2.0~test1-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,980 kB
  • ctags: 2,039
  • sloc: ml: 21,222; xml: 2,597; sh: 845; makefile: 712
file content (19 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

test_sample () {
    file="$1"
    printf "%s" "Testing $file... "
    ./test_write -in "$file" >out1
    ./test_write -in out1    >out2
    ./test_write -in out2    >out3
    if cmp out1 out3; then
	echo "OK"
    else
	echo "FAILED"
    fi
}


test_sample "sample001.xml"

# TODO: a test for namespaces.