Skip to content

Commit f87d267

Browse files
committed
Run msgpack specs in CI
1 parent e7811f9 commit f87d267

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

test/truffle/cexts/msgpack/msgpack.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ source test/truffle/common.sh.inc
44

55
jt gem-test-pack
66

7-
jt ruby -S gem install --local "$(jt gem-test-pack)/gem-cache/msgpack-1.2.4.gem" -V -N --backtrace
7+
ruby_home="$PWD"
8+
export PATH="$ruby_home/bin:$PATH"
9+
10+
# gem install "$(jt gem-test-pack)/gem-cache/bundler-1.16.5.gem" --local
11+
12+
cd "$(jt gem-test-pack)/gem-testing/msgpack-ruby"
13+
14+
bundle install --local --no-cache
15+
bundle exec rake compile
16+
bundle exec rake spec

tool/jt.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
MRI_TEST_CEXT_LIB_DIR = "#{TRUFFLERUBY_DIR}/.ext/c"
2626
PROFILES_DIR = "#{TRUFFLERUBY_DIR}/profiles"
2727

28-
TRUFFLERUBY_GEM_TEST_PACK_VERSION = "f23314cbf560d8578b0c2cbd972b83575ba93cd5"
28+
TRUFFLERUBY_GEM_TEST_PACK_VERSION = "af03b9fbb684624095de928f2b6238db26544052"
2929

3030
JDEBUG_PORT = 51819
3131
JDEBUG = "-J-agentlib:jdwp=transport=dt_socket,server=y,address=#{JDEBUG_PORT},suspend=y"
@@ -1205,14 +1205,16 @@ def test_cexts(*args)
12051205
end
12061206

12071207
# Tests using gem install to compile the cexts
1208-
sh "test/truffle/cexts/msgpack/msgpack.sh"
12091208
sh "test/truffle/cexts/puma/puma.sh"
12101209
sh "test/truffle/cexts/sqlite3/sqlite3.sh"
12111210
sh "test/truffle/cexts/unf_ext/unf_ext.sh"
12121211
sh "test/truffle/cexts/json/json.sh"
12131212

12141213
# Test a gem dynamically compiling a C extension
12151214
sh "test/truffle/cexts/RubyInline/RubyInline.sh"
1215+
1216+
# Test cexts used by many projects
1217+
sh "test/truffle/cexts/msgpack/msgpack.sh"
12161218
else
12171219
raise "unknown test: #{test_name}"
12181220
end

0 commit comments

Comments
 (0)