Skip to content

Commit 8512696

Browse files
committed
Updates from upstream.
1 parent 1d2e5e7 commit 8512696

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+3848
-745
lines changed

bootstrap/cbackend/Makefile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 2024 Google LLC.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Tests for the rune "bootstrap" compiler.
16+
# Note that the original C compiler is technically the bootstrap compiler,
17+
# this is the rune-compiler-in-rune, which will ultimately generate C code
18+
# for itself. This C code will eventually replace the original C compiler
19+
# as the bootstrap.
20+
RUNE=../rune
21+
22+
ROOT:=$(dir $(realpath $(MAKEFILE_LIST)))../
23+
24+
RUNE_TESTS=\
25+
assignments.test\
26+
binary_operators.test\
27+
else_if_stmt.test\
28+
else_stmt.test\
29+
functions.test\
30+
helloworld.test\
31+
if_stmt.test\
32+
println_format_specifier.test\
33+
println_values.test\
34+
tuples.test
35+
36+
runtests: $(RUNE_TESTS)
37+
38+
%.test: tests/%.rn
39+
@echo Testing $*.rn...
40+
@$(RUNE) -q -p $(ROOT) tests/$*.rn
41+
@diff <(tests/$*) tests/$*.stdout
42+
43+

0 commit comments

Comments
 (0)