File: test-java-clone.sh

package info (click to toggle)
cde 0.1%2Bgit9-g551e54d-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,176 kB
  • sloc: ansic: 75,885; sh: 4,282; python: 1,006; perl: 438; makefile: 297; lisp: 44; java: 5
file content (24 lines) | stat: -rwxr-xr-x 553 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

source okapi_test_common.sh
okapi_test_init # call init function

CLONE1_DIR=$TESTDIR/java-clone-1/
CLONE2_DIR=$TESTDIR/java-clone-2/

mkdir $CLONE1_DIR
mkdir $CLONE2_DIR

$OKAPI_BIN /usr/bin/java "" $CLONE1_DIR
$OKAPI_BIN /usr/bin/java $CLONE1_DIR $CLONE2_DIR

pushd $CLONE1_DIR > /dev/null
find . | xargs file | sort > contents.txt
popd > /dev/null

pushd $CLONE2_DIR > /dev/null
find . | xargs file | sort > contents.txt
popd > /dev/null

diff -u $CLONE1_DIR/contents.txt test-java.golden
diff -u $CLONE2_DIR/contents.txt test-java.golden