| 2428 |
dpurdie |
1 |
#
|
|
|
2 |
# Quick test of the various features of the command
|
|
|
3 |
#
|
|
|
4 |
|
|
|
5 |
if [ $WINDIR ] ; then
|
|
|
6 |
util=./WIN32P.BIN/JatsFileUtil.exe
|
|
|
7 |
elif [ $GBE_MACHTYPE == linux_i386 ] ; then
|
|
|
8 |
util=./LINUX_I386D.BIN/JatsFileUtil
|
|
|
9 |
elif [ $GBE_MACHTYPE == sparc ] ; then
|
|
|
10 |
util=./SOLARISD.BIN/JatsFileUtil
|
|
|
11 |
elif [ $GBE_MACHTYPE == solaris10_sparc32 ] ; then
|
|
|
12 |
util=./SOLARIS10_SPARC32D.BIN/JatsFileUtil
|
|
|
13 |
elif [ $GBE_MACHTYPE == solaris10_x86 ] ; then
|
|
|
14 |
util=./SOLARIS10_X86D.BIN/JatsFileUtil
|
|
|
15 |
else
|
|
|
16 |
echo "Unknown machine type"
|
|
|
17 |
fi
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
DBG=4
|
|
|
21 |
|
|
|
22 |
rm -rf test
|
|
|
23 |
|
|
|
24 |
$util c${DBG} copyFile test/test1/aaaa/bbbb/cccc/dddd/test1 makefile.pl -w
|
|
|
25 |
$util d${DBG} unCopyFile test/test1/aaaa/bbbb/cccc/dddd/test1
|
|
|
26 |
|
|
|
27 |
mkdir test/test3
|
|
|
28 |
touch test/test3/aaaa test/test3/bbbb
|
|
|
29 |
$util r${DBG} RmFile test/test3/aaaa test/test3/bbbb test/test3/ccc
|
|
|
30 |
|
|
|
31 |
mkdir test/test4
|
|
|
32 |
touch test/test4/aaaa.aaa test/test4/bbbb.aaa test/test4/cccc.bbb
|
|
|
33 |
$util D${DBG} DeleteFiles test/test4 *.aaa cccc.* *.xxx
|
|
|
34 |
|
|
|
35 |
mkdir -p test/test5/aaaa/bbbb/cccc/dddd
|
|
|
36 |
touch test/test5/aaaa/bbbb/cccc/dddd/file1
|
|
|
37 |
touch test/test5/aaaa/bbbb/file2
|
|
|
38 |
$util T${DBG} DeleteTree test/test5
|
|
|
39 |
|
|
|
40 |
mkdir -p test/test6/aaaa test/test6/bbbb
|
|
|
41 |
touch test/test6/aaaa/file1 test/test6/bbbb/file2
|
|
|
42 |
$util R${DBG} RmDir test/test6/aaaa/file1 test/test6/aaaa test/test6/bbbb
|
|
|
43 |
|
|
|
44 |
|