1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Added test for removing project

This commit is contained in:
Brian Fiete 2020-05-19 09:08:13 -07:00
parent 833b4002a5
commit ddd221c187
5 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,6 @@
FileVersion = 1
Dependencies = {corlib = "*", SDL2 = "*"}
[Project]
Name = "Bug"
StartupObject = "Bug.Program"

View file

@ -0,0 +1,5 @@
FileVersion = 1
Projects = {Bug = {Path = "."}, SDL2 = "*"}
[Workspace]
StartupProject = "Bug"

View file

@ -0,0 +1,14 @@
# This test ensures we can remove a project, properly fail, and then compile without it
ShowFile("src/Program.bf")
Compile()
RemoveProject("SDL2")
WaitForResolve()
SleepTicks(20)
AssertFileErrors()
ToggleCommentAt("Main_Start")
Compile()

View file

@ -0,0 +1,16 @@
#pragma warning disable 168
using System;
namespace Bug
{
class Program
{
static void Main()
{
//*Main_Start
SDL2.gApp = null; //FAIL
/*@*/
}
}
}

View file

@ -39,6 +39,10 @@ PUSHD %~dp0..\
@CALL :TEST
@IF !ERRORLEVEL! NEQ 0 GOTO HADERROR
@SET TESTPATH=IDE\Tests\BugW003
@CALL :TEST
@IF !ERRORLEVEL! NEQ 0 GOTO HADERROR
@SET TESTPATH=IDE\Tests\IndentTest
@CALL :TEST
@IF !ERRORLEVEL! NEQ 0 GOTO HADERROR