File: run_write

package info (click to toggle)
pxp 1.2.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,844 kB
  • sloc: ml: 28,666; xml: 2,597; makefile: 822; sh: 691
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.