vorelang programming language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
771 B

  1. @echo off
  2. echo Cleanup
  3. del v.exe
  4. del v_win.c
  5. del v2.exe
  6. echo fetch v_win.c
  7. curl -O https://gitdab.com/vorelang/vc/raw/branch/master/v_win.c
  8. if %ERRORLEVEL% NEQ 0 goto :fail
  9. echo build vc using gcc
  10. gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o vc.exe v_win.c
  11. del v_win.c
  12. if %ERRORLEVEL% NEQ 0 goto :fail
  13. echo build v using vc
  14. vc.exe -o v.exe compiler
  15. if %ERRORLEVEL% NEQ 0 goto :fail
  16. setlocal EnableDelayedExpansion
  17. echo testing v
  18. v test v
  19. if %ERRORLEVEL% NEQ 0 goto :fail
  20. echo skipping build vc.msvc using vc
  21. REM vc.exe -os msvc -o v.msvc.exe compiler
  22. REM if %ERRORLEVEL% NEQ 0 goto :fail
  23. echo skipping testing v.msvc -os msvc
  24. REM v.msvc.exe -os msvc test v
  25. REM if %ERRORLEVEL% NEQ 0 goto :fail
  26. goto :done
  27. :fail
  28. echo fail
  29. exit /b 1
  30. :done
  31. echo Tests passed! Yay :D