Pārlūkot izejas kodu

r300g: Reorganize the compiler unit tests

tags/i965-primitive-restart-v2
Tom Stellard pirms 13 gadiem
vecāks
revīzija
edf3307977

+ 2
- 1
src/gallium/drivers/r300/compiler/tests/Makefile Parādīt failu

@@ -4,11 +4,12 @@ include $(TOP)/configs/current
CFLAGS += -Wall -Werror

### Basic defines ###
TESTS = radeon_compiler_util_tests
TESTS = r300_compiler_tests

TEST_SOURCES := $(TESTS:=.c)

SHARED_SOURCES = \
radeon_compiler_util_tests.c \
rc_test_helpers.c \
unit_test.c


+ 6
- 0
src/gallium/drivers/r300/compiler/tests/r300_compiler_tests.c Parādīt failu

@@ -0,0 +1,6 @@
#include "r300_compiler_tests.h"

int main(int argc, char ** argv)
{
radeon_compiler_util_run_tests();
}

+ 2
- 0
src/gallium/drivers/r300/compiler/tests/r300_compiler_tests.h Parādīt failu

@@ -0,0 +1,2 @@

void radeon_compiler_util_run_tests(void);

+ 2
- 1
src/gallium/drivers/r300/compiler/tests/radeon_compiler_util_tests.c Parādīt failu

@@ -5,6 +5,7 @@
#include "radeon_compiler_util.h"
#include "radeon_program.h"

#include "r300_compiler_tests.h"
#include "rc_test_helpers.h"
#include "unit_test.h"

@@ -66,7 +67,7 @@ static void test_runner_rc_inst_can_use_presub(struct test_result * result)
"MAD temp[0].xyz, temp[2].xyz_, -temp[3].xxx_, input[5].xyz_;");
}

int main(int argc, char ** argv)
void radeon_compiler_util_run_tests()
{
struct test tests[] = {
{"rc_inst_can_use_presub()", test_runner_rc_inst_can_use_presub},

Notiek ielāde…
Atcelt
Saglabāt