LoginSignup
2
0

GCCのテストスイートであるDejaGnuを実行する。

Last updated at Posted at 2023-06-29

GCCのテストスイートにDejaGnuというものがあります。コミット戦略としては、コードを改変して、DejaGnuのテストコードを追加するという方法を使っているようです。

では、DejaGnuの実行方法を書いていきます。

まず、GCCのクローンをします。

$ git clone --depth=1  https://github.com/gcc-mirror/gcc.git`

--depth=1 により、最新のコードのみをクローンします。

テストスイートのフォルダまで移動します

cd gcc/gcc/testsuite

以下のコマンドで実行します

runtest --tool gcc

以下のように実行できました

image.png

同じディレクトリで新たにターミナルを開いて、以下のコマンドでログが見れます。

tail -f gcc.log

image.png

以下のサイトを参考にさせていただきました。

special thanks
Takahashi Akari

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0