(self)
| 536 | self.assertTrue(os.path.exists(os.path.join(cache_dir_name, 'sysroot'))) |
| 537 | |
| 538 | def test_emconfig(self): |
| 539 | restore_and_set_up() |
| 540 | create_file('custom_config', get_basic_config()) |
| 541 | |
| 542 | # Make a syntax error in the original config file so that attempting to access it would fail. |
| 543 | utils.write_file(EM_CONFIG, 'asdfasdfasdfasdf\n') |
| 544 | |
| 545 | # Test both relative and absolute paths to the config |
| 546 | self.run_process([EMCC, '--em-config', os.path.abspath('custom_config'), *MINIMAL_HELLO_WORLD]) |
| 547 | self.assertContained('Hello, world!', self.run_js('a.out.js')) |
| 548 | |
| 549 | self.run_process([EMCC, '--em-config', 'custom_config', *MINIMAL_HELLO_WORLD]) |
| 550 | self.assertContained('Hello, world!', self.run_js('a.out.js')) |
| 551 | |
| 552 | def test_emcc_ports(self): |
| 553 | restore_and_set_up() |
nothing calls this directly
no test coverage detected