"Fossies" - the Fresh Open Source Software Archive

Member "srm-1.2.15/test.bat" (26 Feb 2015, 1322 Bytes) of package /linux/privat/srm-1.2.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "test.bat": 1.2.14_vs_1.2.15.

    1 rem test srm.exe
    2 
    3 echo "the remove test" > test.txt
    4 %1\srm.exe -v test.txt
    5 
    6 echo "the remove test" > test.txt
    7 echo "first alternate" > test.txt:first
    8 echo "and the 2nd alternate data stream" > test.txt:second
    9 %1\srm.exe -vvv test.txt
   10 IF EXIST test.txt (
   11   echo could not remove test.txt in ads test!
   12   exit
   13 )
   14 
   15 echo "The hard link test" > test2.txt
   16 del link.txt
   17 %1\ln.exe link.txt test2.txt
   18 %1\srm.exe -vvv test2.txt
   19 %1\srm.exe -vvv link.txt
   20 IF EXIST test2.txt (
   21   echo could not remove test2.txt in hard link test!
   22   exit
   23 )
   24 IF EXIST link.txt (
   25   echo could not remove link.txt in hard link test!
   26   exit
   27 )
   28 
   29 echo "The wildcard test" > test1.txt
   30 echo "Another test file" > test2.txt
   31 echo "and a 4rd" > test3.txt
   32 %1\srm.exe -vvv test*.txt
   33 echo ""
   34 IF EXIST test1.txt (
   35   echo could not remove test1.txt in wildcard test!
   36   exit
   37 )
   38 IF EXIST test2.txt (
   39   echo could not remove test2.txt in wildcard test!
   40   exit
   41 )
   42 IF EXIST test3.txt (
   43   echo could not remove test3.txt in wildcard test!
   44   exit
   45 )
   46 
   47 rem don't run test with large file by default
   48 IF "a" == "b" (
   49   echo "Test a 2.1GB file"
   50   %1\createfile.exe big.txt 2100
   51   %1\srm.exe -svvv big.txt
   52   IF EXIST big.txt (
   53     echo "could not remove big.txt"
   54     exit
   55   )
   56 )
   57 
   58 echo ""
   59 echo *** all Windows tests successful. ***