Synchronise with Khronos-private Gitlab branch

The maintenance of the conformance tests is moving to Github.

This commit contains all the changes that have been done in
Gitlab since the first public release of the conformance tests.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kevin Petit
2019-02-20 16:36:05 +00:00
committed by Kévin Petit
parent 95196e7fb4
commit d8733efc0f
576 changed files with 212486 additions and 191776 deletions

View File

@@ -1,50 +1,50 @@
ifdef BUILD_WITH_ATF
ATF = -framework ATF
USE_ATF = -DUSE_ATF
endif
# We do not use dependencies in this Makefile
SRCFILES = Sleep.c test_conversions.c ../../test_common/harness/mt19937.c ../../test_common/harness/ThreadPool.c ../../test_common/harness/rounding_mode.c
CC = cc
CFLAGS = -g -std=c99 -Wall -Wshorten-64-to-32 $(COMPILERFLAGS) \
${RC_CFLAGS} ${USE_ATF}
INCLUDES = -I../../test_common/harness \
${RC_CFLAGS} ${ATF}
LIBRARIES = -framework OpenCL -framework CoreFoundation -framework IOKit
release:
echo "Build Release"
$(CC) -c basic_test_conversions.c -Os $(CFLAGS) -o basic_test_conversions.o
$(CC) $(SRCFILES) -Os $(CFLAGS) basic_test_conversions.o -o test_conversions $(INCLUDES) $(LIBRARIES)
debug:
echo "Build Debug"
$(CC) -c basic_test_conversions.c -O0 $(CFLAGS) -o basic_test_conversions.o
$(CC) test_conversions.c -c -O0 -g $(CFLAGS) $(INCLUDES) -o test_conversions.o
$(CC) Sleep.c -c -O0 -g $(CFLAGS) $(INCLUDES) -o Sleep.o
$(CC) ../../test_common/harness/mt19937.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o mt19937.o
$(CC) ../../test_common/harness/ThreadPool.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o ThreadPool.o
$(CC) ../../test_common/harness/rounding_mode.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o rounding_mode.o
$(CC) *.o -g -O0 -o test_conversions_debug $(LIBRARIES) -arch i386 -arch x86_64
clean:
rm -f test_conversions
rm -f *.o
rm -f test_conversions_debug
test: release
arch -i386 ./test_conversions -c > cpu.out &
arch -i386 ./test_conversions -g > gpu.out &
echo "Testing 32-bit mode conversions for CPU and GPU, which takes a day or three. Results may be found in cpu.out and gpu.out\n"
test64: release
arch -x86_64 ./test_conversions_64 -c > cpu64.out &
arch -x86_64 ./test_conversions_64 -g > gpu64.out &
echo "Testing 64-bit mode conversions for CPU and GPU, which takes a day or three. Results may be found in cpu64.out and gpu64.out\n"
all: release
ifdef BUILD_WITH_ATF
ATF = -framework ATF
USE_ATF = -DUSE_ATF
endif
# We do not use dependencies in this Makefile
SRCFILES = Sleep.c test_conversions.c ../../test_common/harness/mt19937.c ../../test_common/harness/ThreadPool.c ../../test_common/harness/rounding_mode.c
CC = cc
CFLAGS = -g -std=c99 -Wall -Wshorten-64-to-32 $(COMPILERFLAGS) \
${RC_CFLAGS} ${USE_ATF}
INCLUDES = -I../../test_common/harness \
${RC_CFLAGS} ${ATF}
LIBRARIES = -framework OpenCL -framework CoreFoundation -framework IOKit
release:
echo "Build Release"
$(CC) -c basic_test_conversions.c -Os $(CFLAGS) -o basic_test_conversions.o
$(CC) $(SRCFILES) -Os $(CFLAGS) basic_test_conversions.o -o test_conversions $(INCLUDES) $(LIBRARIES)
debug:
echo "Build Debug"
$(CC) -c basic_test_conversions.c -O0 $(CFLAGS) -o basic_test_conversions.o
$(CC) test_conversions.c -c -O0 -g $(CFLAGS) $(INCLUDES) -o test_conversions.o
$(CC) Sleep.c -c -O0 -g $(CFLAGS) $(INCLUDES) -o Sleep.o
$(CC) ../../test_common/harness/mt19937.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o mt19937.o
$(CC) ../../test_common/harness/ThreadPool.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o ThreadPool.o
$(CC) ../../test_common/harness/rounding_mode.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o rounding_mode.o
$(CC) *.o -g -O0 -o test_conversions_debug $(LIBRARIES) -arch i386 -arch x86_64
clean:
rm -f test_conversions
rm -f *.o
rm -f test_conversions_debug
test: release
arch -i386 ./test_conversions -c > cpu.out &
arch -i386 ./test_conversions -g > gpu.out &
echo "Testing 32-bit mode conversions for CPU and GPU, which takes a day or three. Results may be found in cpu.out and gpu.out\n"
test64: release
arch -x86_64 ./test_conversions_64 -c > cpu64.out &
arch -x86_64 ./test_conversions_64 -g > gpu64.out &
echo "Testing 64-bit mode conversions for CPU and GPU, which takes a day or three. Results may be found in cpu64.out and gpu64.out\n"
all: release