Skip to content

Commit 0dc91f3

Browse files
committed
Moar debugging info in legacy test extractor
1 parent 771f1a5 commit 0dc91f3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

extractor/tools/index.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
####################################################################################
4+
#
5+
# Required for running `codeql test run my/test/dir`
6+
# when legacy_qltest_extraction is set to true in ruby/codeql-extractor.yml
7+
#
8+
#
9+
# FIXME: figure out what "non-legacy" test extraction looks like and how it works
10+
#
11+
####################################################################################
12+
13+
set -eu
14+
15+
echo "running index.sh"
16+
echo "CODEQL_PLATFORM: $CODEQL_PLATFORM"
17+
echo "CODEQL_EXTRACTOR_RUBY_ROOT: $CODEQL_EXTRACTOR_RUBY_ROOT"
18+
ls -lha "$CODEQL_EXTRACTOR_RUBY_ROOT/tools/$CODEQL_PLATFORM/"
19+
20+
if [ "$CODEQL_PLATFORM" != "linux64" ] && [ "$CODEQL_PLATFORM" != "osx64" ] ; then
21+
echo "Automatic build detection for $CODEQL_PLATFORM is not implemented."
22+
exit 1
23+
fi
24+
25+
"$CODEQL_EXTRACTOR_RUBY_ROOT/tools/$CODEQL_PLATFORM/ruby-autobuilder"

0 commit comments

Comments
 (0)