-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gccrs: Add rustc test directory for testsuite adaptor
gcc/testsuite/ChangeLog: * rust/rustc/README.md: information about rustc external directory. * rust/rustc/rustc.exp: New test. Signed-off-by: Muhammad Mahad <[email protected]>
- Loading branch information
1 parent
1eb42b0
commit 47c947c
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This repository contains test cases from the | ||
[rustc test suite](https://github.com/rust-lang/rust/tree/master/tests). The | ||
conversion of these tests into the DejaGnu format is done by the rustc | ||
testsuite adaptor, a tool specifically designed for this purpose. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (C) 2021-2024 Free Software Foundation, Inc. | ||
|
||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with GCC; see the file COPYING3. If not see | ||
# <http://www.gnu.org/licenses/>. | ||
|
||
# Compile tests, no torture testing. | ||
# | ||
# These tests raise errors in the front end; torture testing doesn't apply. | ||
|
||
# Load support procs. | ||
load_lib rust-dg.exp | ||
|
||
# Initialize `dg'. | ||
dg-init | ||
|
||
# Main loop. | ||
set saved-dg-do-what-default ${dg-do-what-default} | ||
|
||
set dg-do-what-default "compile" | ||
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.rs]] "" "" | ||
set dg-do-what-default ${saved-dg-do-what-default} | ||
|
||
# All done. | ||
dg-finish |