"Fossies" - the Fresh Open Source Software Archive

Member "sfk-1.9.6/scripts/01-sfk-selftest-win.bat" (22 Feb 2020, 914 Bytes) of package /linux/misc/sfk-1.9.6.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.

    1 @echo off
    2 set TEXE=..\sfk.exe
    3 IF "%2"=="" GOTO xdef01
    4 set TEXE=%2
    5 :xdef01
    6 IF NOT EXIST %TEXE% GOTO xerr03
    7 %TEXE% test workdir scripts >nul 2>&1
    8 IF "%1"=="" GOTO xerr01
    9 IF ERRORLEVEL 1 GOTO xerr02
   10 
   11 cd ..
   12 IF EXIST tmp-selftest-win rmdir /S /Q tmp-selftest-win
   13 md tmp-selftest-win
   14 cd tmp-selftest-win
   15 %TEXE% copy ..\testfiles testfiles -yes >nul
   16 %TEXE% copy ..\scripts\50-patch-all-win.cpp 50-patch-all-src.cpp -yes >nul
   17 
   18 set TCMD=%1 ..\scripts\10-sfk-selftest-db.txt
   19 
   20 set TEXE2=%TEXE%
   21 set TEXE=%TEXE2% -memcheck
   22 call ..\scripts\11-sub-test-win.bat
   23 set TEXE=%TEXE2%
   24 %TEXE% syntest
   25 
   26 cd ..\scripts
   27 GOTO done
   28 
   29 :xerr01
   30 echo supply cmp to run a regression test   (compare).
   31 echo supply upd to add new test case datas (update).
   32 echo supply rec to overwrite all test output signatures.
   33 GOTO done
   34 
   35 :xerr02
   36 echo run this batch from the scripts directory please.
   37 GOTO done
   38 
   39 :xerr03
   40 echo missing binary: %TEXE%
   41 GOTO done
   42 
   43 :done