def test_run_public_sdk_noc(): '''Test that using the native SDK without the stub does not crash''' out = run_in_new_interpreter(__name__, ['noc']) assert 'Error during SDK initialization' in out assert '-main' in out assert 'DONE.' in out out = run_in_new_interpreter(__name__, ['tryinit noc']) assert 'Error during SDK initialization' not in out assert '-main' in out assert 'DONE.' in out
def test_run_public_sdk_checkinit(): '''Test that using the native SDK, additionally checking init return value.''' out = run_in_new_interpreter(__name__, ['tryinit']) print('OUTPUT:\n' + out) assert '-main' in out assert 'DONE.' in out
def test_sdk_callback_smoke(): print(run_in_new_interpreter(sdk_diag_prog))
def test_run_public_sdk(): '''Test that using the native SDK without any special options works.''' out = run_in_new_interpreter(__name__) print('OUTPUT:\n' + out) assert '-main' in out assert 'DONE.' in out
def test_run_public_sdk_fail(): '''Test that using the native SDK without the stub and NULL-SDK crashes.''' out = run_in_new_interpreter(__name__, ['noc nonull tryinit']) assert 'ABORTED.' in out