Ejemplo n.º 1
0
func TestEGL(t *testing.T) {
	pt.Run(
		t,
		new(testInitEGLSuite),
		new(testCreateEGLContextSuite),
	)
}
Ejemplo n.º 2
0
func main() {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()
	defer glfw.Terminate()

	mandala.Verbose = true

	if !glfw.Init() {
		panic("Can't init glfw!")
	}

	// Enable OpenGL ES 2.0.
	glfw.WindowHint(glfw.ClientApi, glfw.OpenglEsApi)
	glfw.WindowHint(glfw.ContextVersionMajor, 2)
	window, err := glfw.CreateWindow(Width, Height, "gltext black-box testing", nil, nil)
	if err != nil {
		panic(err)
	}

	glfw.SwapInterval(0)
	mandala.Init(window)

	go prettytest.Run(new(testing.T), testlib.NewTestSuite(outputPath))

	for !window.ShouldClose() {
		glfw.WaitEvents()
	}
}
Ejemplo n.º 3
0
func main() {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()
	defer glfw.Terminate()

	gorgasm.Verbose = true

	if !glfw.Init() {
		panic("Can't init glfw!")
	}

	// Enable OpenGL ES 2.0.
	glfw.WindowHint(glfw.ClientApi, glfw.OpenglEsApi)
	glfw.WindowHint(glfw.ContextVersionMajor, 2)
	window, err := glfw.CreateWindow(testlib.Width, testlib.Height, "Gorgasm Test", nil, nil)
	if err != nil {
		panic(err)
	}

	gorgasm.Init(window)

	go prettytest.Run(new(testing.T), testlib.NewTestSuite())

	for !window.ShouldClose() {
		glfw.WaitEvents()
	}
}
Ejemplo n.º 4
0
func TestConsole(t *testing.T) {
	pt.Run(
		t,
		new(consoleTestSuite),
	)
}
Ejemplo n.º 5
0
func TestRunner(t *testing.T) {
	prettytest.Run(
		t,
		new(testSuite),
	)
}
func TestRunner(t *testing.T) {
	prettytest.Run(t, new(mySuite))
}
Ejemplo n.º 7
0
func TestApplication(t *testing.T) {
	pt.Run(t, new(basicTestSuite), new(errorTestSuite))
}
Ejemplo n.º 8
0
func TestEGL(t *testing.T) {
	prettytest.Run(
		t,
		new(testSuite),
	)
}
Ejemplo n.º 9
0
func TestDatastoreSuite(t *testing.T) {
	prettytest.Run(t, new(datastoreTestSuite))
}
Ejemplo n.º 10
0
func TestCompare(t *testing.T) {
	pt.Run(t, new(testSuite))
}