|
21 | 21 | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
22 | 22 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
23 | 23 | # OF THE POSSIBILITY OF SUCH DAMAGE.
|
24 |
| -import json |
25 | 24 | import os
|
26 | 25 | import platform
|
27 | 26 | import re
|
|
30 | 29 | import sys
|
31 | 30 | import tempfile
|
32 | 31 |
|
33 |
| -import mx_sdk |
34 |
| - |
35 | 32 | import mx
|
36 | 33 | import mx_benchmark
|
37 | 34 | import mx_gate
|
| 35 | +import mx_sdk |
38 | 36 | import mx_subst
|
39 | 37 | from mx_downstream import testdownstream
|
40 | 38 | from mx_gate import Task
|
41 | 39 | from mx_graalpython_benchmark import PythonBenchmarkSuite
|
42 | 40 | from mx_unittest import unittest
|
43 |
| -from mx_urlrewrites import _urlrewrites |
44 | 41 |
|
45 | 42 | _suite = mx.suite('graalpython')
|
46 | 43 | _mx_graal = mx.suite("compiler", fatalIfMissing=False)
|
@@ -240,6 +237,11 @@ def punittest(args):
|
240 | 237 | def nativebuild(args):
|
241 | 238 | mx.build(["--only", "com.oracle.graal.python.cext,GRAALPYTHON"])
|
242 | 239 |
|
| 240 | + |
| 241 | +def nativeclean(args): |
| 242 | + mx.run(['find', './graalpython/com.oracle.graal.python.test/src/tests/cpyext', '-name', '*.bc', '-delete']) |
| 243 | + |
| 244 | + |
243 | 245 | # mx gate --tags pythonbenchmarktest
|
244 | 246 | # mx gate --tags pythontest
|
245 | 247 | # mx gate --tags fulltest
|
@@ -749,5 +751,6 @@ def python_checkcopyrights(args):
|
749 | 751 | 'python-svm': [python_svm, 'run python svm image (building it if it is outdated'],
|
750 | 752 | 'punittest': [punittest, ''],
|
751 | 753 | 'nativebuild': [nativebuild, ''],
|
| 754 | + 'nativeclean': [nativeclean, ''], |
752 | 755 | 'python-so-test': [run_shared_lib_test, ''],
|
753 | 756 | })
|
0 commit comments