File: run_write

package info (click to toggle)
pxp 1.1.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,944 kB
  • ctags: 1,728
  • sloc: ml: 15,005; xml: 2,583; sh: 972; makefile: 677
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.