File tree Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 45
45
- name : ' Build pattern matching compiler'
46
46
run : GC_DONT_GC=1 nix build --print-build-logs .#llvm-backend-matching
47
47
48
+ - name : ' Smoke test integration test shell'
49
+ run : GC_DONT_GC=1 nix develop --print-build-logs .#integration-test-shell-18 --command lit -v test/defn/imp.kore
50
+
48
51
- name : ' Test LLVM backend'
49
52
run : GC_DONT_GC=1 nix flake check --print-build-logs
50
53
Original file line number Diff line number Diff line change 111
111
{
112
112
name = "llvm-backend-${ toString args . llvm-version } -${ args . build-type } " ;
113
113
value = {
114
- inherit ( pkgs ) llvm-backend llvm-backend-matching llvm-kompile-testing integration-tests ;
114
+ inherit ( pkgs ) llvm-backend llvm-backend-matching llvm-kompile-testing integration-tests integration-test-shell ;
115
115
} ;
116
116
}
117
117
) ) ;
120
120
inherit ( llvm-backend-18-FastBuild ) llvm-backend llvm-backend-matching llvm-kompile-testing ;
121
121
default = llvm-backend-18-FastBuild . llvm-backend ;
122
122
llvm-backend-release = llvm-backend-18-Release . llvm-backend ;
123
+
124
+ integration-test-shell-15 = llvm-backend-15-Debug . integration-test-shell ;
125
+ integration-test-shell-16 = llvm-backend-16-Debug . integration-test-shell ;
126
+ integration-test-shell-17 = llvm-backend-17-Debug . integration-test-shell ;
127
+ integration-test-shell-18 = llvm-backend-18-Debug . integration-test-shell ;
123
128
} ;
124
129
125
130
checks = listToChecks [
Original file line number Diff line number Diff line change 54
54
patchShebangs "$out/bin/llvm-kompile-testing"
55
55
'' ;
56
56
57
+ integration-test-env = ''
58
+ export PYTHON_INTERPRETER=${ llvm-backend . python-interpreter }
59
+ export BINDINGS_INSTALL_PATH=${ llvm-backend } /lib/kllvm/python
60
+ export INCLUDE_INSTALL_PATH=${ llvm-backend } /include
61
+ export LIT_USE_NIX=1
62
+ '' ;
63
+
57
64
integration-tests = prev . stdenv . mkDerivation {
58
65
name = "llvm-backend-integration-tests" ;
59
66
src = llvm-backend . src ;
66
73
llvm-backend # the system under test
67
74
] ;
68
75
configurePhase = "true" ;
76
+
69
77
buildPhase = ''
70
78
runHook preBuild
71
79
72
- PYTHON_INTERPRETER=${ llvm-backend . python-interpreter } \
73
- BINDINGS_INSTALL_PATH=${ llvm-backend } /lib/kllvm/python \
74
- INCLUDE_INSTALL_PATH=${ llvm-backend } /include \
75
- LIT_USE_NIX=1 lit -v test
80
+ ${ integration-test-env }
81
+ lit -v test
76
82
77
83
runHook postBuild
78
84
'' ;
85
+
79
86
installPhase = ''
80
87
runHook preInstall
81
88
85
92
runHook postInstall
86
93
'' ;
87
94
} ;
95
+
96
+ integration-test-shell = prev . mkShell {
97
+ inputsFrom = [ integration-tests ] ;
98
+ shellHook = integration-test-env ;
99
+ } ;
88
100
in {
89
101
inherit kllvm llvm-backend llvm-backend-matching llvm-kompile-testing
90
- integration-tests ;
102
+ integration-tests integration-test-shell ;
91
103
inherit ( prev ) clang ; # for compatibility
92
104
}
You can’t perform that action at this time.
0 commit comments