js-testing.mozbuild 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. component_engine = ('Core', 'JavaScript Engine')
  6. component_gc = ('Core', 'JavaScript: GC')
  7. component_intl = ('Core', 'JavaScript: Internationalization API')
  8. component_jit = ('Core', 'JavaScript Engine: JIT')
  9. component_stl = ('Core', 'JavaScript: Standard Library')
  10. with Files('../public/**'):
  11. BUG_COMPONENT = component_engine
  12. with Files('*'):
  13. BUG_COMPONENT = component_engine
  14. with Files('wasm/**'):
  15. BUG_COMPONENT = component_jit
  16. with Files('builtin/**'):
  17. BUG_COMPONENT = component_stl
  18. with Files('ctypes/**'):
  19. BUG_COMPONENT = ('Core', 'js-ctypes')
  20. with Files('gc/**'):
  21. BUG_COMPONENT = component_gc
  22. with Files('jit/**'):
  23. BUG_COMPONENT = component_jit
  24. # File-specific metadata
  25. for gcfile in ['jsgc*', 'devtools/rootAnalysis', 'devtools/gc-ubench', 'devtools/gctrace']:
  26. with Files(gcfile):
  27. BUG_COMPONENT = component_gc
  28. for header in ('GCAnnotations.h', 'GCAPI.h', 'HeapAPI.h', 'RootingAPI.h', 'SliceBudget.h', 'SweepingAPI.h', 'TraceKind.h', 'TracingAPI.h', 'WeakMapPtr.h'):
  29. with Files('../public/' + header):
  30. BUG_COMPONENT = component_gc
  31. for stlfile in ['jsarray.*', 'jsbool*', 'jsdate.*', 'jsnum.*', 'json.*', 'jsstr.*']:
  32. with Files(stlfile):
  33. BUG_COMPONENT = component_stl
  34. with Files('builtin/Intl*'):
  35. BUG_COMPONENT = component_intl
  36. with Files('builtin/make_intl_data.py'):
  37. BUG_COMPONENT = component_intl
  38. with Files('../public/TrackedOptimizationInfo.h'):
  39. BUG_COMPONENT = component_jit
  40. TEST_DIRS += ['jsapi-tests', 'tests', 'gdb']