0
0

MakeTestQSP.bat 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @ECHO off
  2. :: The file that will be generated or open
  3. set TESTFOLDER=test
  4. set TESTSUITE=test\testsuite-basic.qproj
  5. set QSPGUI=tools\QSPgui\qspgui.exe
  6. :: set QSPGUI=Qqsp.exe
  7. set SAVE_ENABLED=FALSE
  8. set LOCATIONSFOLDER=locations
  9. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  10. :menu
  11. cls
  12. echo.
  13. echo :: QSP Compiler and Launcher
  14. echo.
  15. echo.
  16. if defined QSPGUI (
  17. if not exist "%QSPGUI%" (
  18. echo QSP EXEC : [ERROR] - %QSPGUI% not found.
  19. set QSPGUI=
  20. ) else ( echo QSP EXEC : [OK] - "%QSPGUI%")
  21. ) else ( echo QSP EXEC : [NOT DEFINED] - Using Windows DEFAULT.)
  22. echo.
  23. if defined NOT_FOUND (
  24. echo ERROR: Option '%action%' wasn't recognized. Is it lowercase?
  25. set NOT_FOUND=
  26. )
  27. echo QPSGUI: %QSPGUI%
  28. echo.
  29. :build
  30. echo.
  31. echo Building ...
  32. @ECHO ON
  33. python tools\testbuilder.py %LOCATIONSFOLDER% %TESTSUITE% %SAVE_ENABLED%
  34. @ECHO OFF
  35. SET /p MYVAR=<_temp-filename.txt
  36. SET TXTFILE="%MYVAR%.txt"
  37. SET QSPFILE="%MYVAR%.qsp"
  38. @ECHO ON
  39. tools\txt2gam.exe %TXTFILE% %QSPFILE% : > nul
  40. del %TXTFILE%
  41. del _temp-filename.txt
  42. %QSPGUI% %QSPFILE%
  43. @ECHO OFF
  44. echo.
  45. echo Done.
  46. pause