ruby-changes:69141
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:20:59 +0900 (JST)
Subject: [ruby-changes:69141] 8a9a2d0049 (master): Move test_yjit_asm.sh into misc
https://git.ruby-lang.org/ruby.git/commit/?id=8a9a2d0049 From 8a9a2d004951dc0c9e724fbb050d14b75d4fcd1d Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Mon, 18 Oct 2021 10:53:29 -0400 Subject: Move test_yjit_asm.sh into misc Since conventionally scripts don't live at the top level of the repo. --- .github/workflows/asm_tests.yml | 23 ----------------------- .github/workflows/yjit_asm_tests.yml | 23 +++++++++++++++++++++++ doc/yjit/yjit.md | 2 +- misc/test_yjit_asm.sh | 10 ++++++++++ test_asm.sh | 10 ---------- 5 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/asm_tests.yml create mode 100644 .github/workflows/yjit_asm_tests.yml create mode 100755 misc/test_yjit_asm.sh delete mode 100755 test_asm.sh diff --git a/.github/workflows/asm_tests.yml b/.github/workflows/asm_tests.yml deleted file mode 100644 index a5601b97d7..0000000000 --- a/.github/workflows/asm_tests.yml +++ /dev/null @@ -1,23 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/#L0 -name: x86 assembler tests - -on: [push, pull_request] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Install dependencies - run: | - set -x - sudo apt-get update -q || : - sudo apt-get install --no-install-recommends -q -y build-essential - - name: git config - run: | - git config --global advice.detachedHead 0 - git config --global init.defaultBranch garbage - - uses: actions/checkout@v2 - with: - path: src - - name: Run ASM tests - run: ./test_asm.sh - working-directory: src diff --git a/.github/workflows/yjit_asm_tests.yml b/.github/workflows/yjit_asm_tests.yml new file mode 100644 index 0000000000..1c4394e960 --- /dev/null +++ b/.github/workflows/yjit_asm_tests.yml @@ -0,0 +1,23 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/yjit_asm_tests.yml#L1 +name: YJIT x86 assembler tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + set -x + sudo apt-get update -q || : + sudo apt-get install --no-install-recommends -q -y build-essential + - name: git config + run: | + git config --global advice.detachedHead 0 + git config --global init.defaultBranch garbage + - uses: actions/checkout@v2 + with: + path: src + - name: Run ASM tests + run: ./misc/test_yjit_asm.sh + working-directory: src diff --git a/doc/yjit/yjit.md b/doc/yjit/yjit.md index 0f474277f3..a280eb3ba0 100644 --- a/doc/yjit/yjit.md +++ b/doc/yjit/yjit.md @@ -172,7 +172,7 @@ The YJIT source code is divided between: https://github.com/ruby/ruby/blob/trunk/doc/yjit/yjit.md#L172 - `yjit_iface.c`: code YJIT uses to interface with the rest of CRuby - `yjit.h`: C definitions YJIT exposes to the rest of the CRuby - `yjit.rb`: `YJIT` Ruby module that is exposed to Ruby -- `test_asm.sh`: script to compile and run the in-memory assembler tests +- `misc/test_yjit_asm.sh`: script to compile and run the in-memory assembler tests - `tool/ruby_vm/views/vm.inc.erb`: template instruction handler used to hook into the interpreter The core of CRuby's interpreter logic is found in: diff --git a/misc/test_yjit_asm.sh b/misc/test_yjit_asm.sh new file mode 100755 index 0000000000..546acf39c9 --- /dev/null +++ b/misc/test_yjit_asm.sh @@ -0,0 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/misc/test_yjit_asm.sh#L1 +#!/bin/bash + +set -e +set -x + +clang -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wshorten-64-to-32 yjit_asm.c yjit_asm_tests.c -o asm_test + +./asm_test + +rm asm_test diff --git a/test_asm.sh b/test_asm.sh deleted file mode 100755 index 546acf39c9..0000000000 --- a/test_asm.sh +++ /dev/null @@ -1,10 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/misc/test_yjit_asm.sh#L0 -#!/bin/bash - -set -e -set -x - -clang -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wshorten-64-to-32 yjit_asm.c yjit_asm_tests.c -o asm_test - -./asm_test - -rm asm_test -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/