File tree 2 files changed +36
-1
lines changed 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 91
91
pytorch = casesSelf . callPackage ./pytorch { } ;
92
92
disp = casesSelf . callPackage ./disp { } ;
93
93
emurt-test = casesSelf . callPackage ./emurt/tests { } ;
94
+ eval = casesSelf . callPackage ./eval { } ;
94
95
} ) ) ;
95
96
96
97
# remove non-case attributes in scope
97
98
scopeStripped = {
98
- inherit ( scope ) mlir intrinsic asm perf codegen rvv_bench pytorch disp emurt-test ;
99
+ inherit ( scope ) mlir intrinsic asm perf codegen rvv_bench pytorch disp emurt-test eval ;
99
100
} ;
100
101
101
102
# This derivation is for internal CI use only.
Original file line number Diff line number Diff line change
1
+ { lib
2
+ , linkerScript
3
+ , makeBuilder
4
+ , findAndBuild
5
+ , t1main
6
+ , getTestRequiredFeatures
7
+ } :
8
+
9
+ let
10
+ builder = makeBuilder { casePrefix = "eval" ; } ;
11
+ build = { caseName , sourcePath } :
12
+ builder {
13
+ inherit caseName ;
14
+
15
+ src = sourcePath ;
16
+
17
+ passthru . featuresRequired = getTestRequiredFeatures sourcePath ;
18
+ isFp = lib . pathExists ( lib . path . append sourcePath "isFp" ) ;
19
+
20
+ buildPhase = ''
21
+ runHook preBuild
22
+
23
+ $CC -T${ linkerScript } \
24
+ *.{c,S} \
25
+ ${ t1main } \
26
+ -o $pname.elf
27
+
28
+ runHook postBuild
29
+ '' ;
30
+
31
+ meta . description = "test case '${ caseName } ', written in C assembly" ;
32
+ } ;
33
+ in
34
+ findAndBuild ./. build
You can’t perform that action at this time.
0 commit comments