summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/library/library-test.slang7
-rw-r--r--tests/library/library-test.slang.expected.txt4
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/library/library-test.slang b/tests/library/library-test.slang
index 143b1cbe1..3543ced10 100644
--- a/tests/library/library-test.slang
+++ b/tests/library/library-test.slang
@@ -6,12 +6,11 @@
// This didn't work for lib_6_2 when compiling via DXC (!). Even though it's stated elsewhere the feature is available from 6.1
//TEST:COMPILE: tests/library/library.slang -profile lib_6_3 -target dxil -o tests/library/library.dxil
-//TEST:COMPILE: tests/library/library-test.slang -profile lib_6_3 -target dxil -o tests/library/library-test.dxil
+//TEST:COMPILE: tests/library/library-test.slang -entry computeMain -profile cs_6_3 -target dxil -r tests/library/library.dxil -o tests/library/library-test.dxil
-// It seems that I can't just compile the source containing the entry point/stage with the library/s.
-// Instead I have to compile all the parts with lib profile, and then link together at the end.
+// Test the produced kernel.
-//DISABLE_TEST:COMPARE_COMPUTE_EX:-slang -compute -xslang -r -xslang tests/serialization/serialized-module.slang-module -shaderobj
+//TEST:COMPARE_COMPUTE_EX:-slang -compute -profile cs_6_3 -dx12 -use-dxil -shaderobj -Xslang... -r tests/library/library.dxil -X.
extern int foo(int a);
diff --git a/tests/library/library-test.slang.expected.txt b/tests/library/library-test.slang.expected.txt
new file mode 100644
index 000000000..c0e0beb96
--- /dev/null
+++ b/tests/library/library-test.slang.expected.txt
@@ -0,0 +1,4 @@
+6
+9
+E
+15