diff options
author | Lukas Larsson <[email protected]> | 2012-11-02 15:20:20 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-11-02 15:20:20 +0100 |
commit | 045319da07722f1dd01af8c07dc1bcc196ffb137 (patch) | |
tree | 9a824d2e11c4ad43df4cccf4800c772ad74ec3aa /lib/test_server | |
parent | d5733bc3e34449affde2594d85b905c8ab440d42 (diff) | |
parent | 58514077ca89015773f62ed327d767fb412a83f0 (diff) | |
download | otp-045319da07722f1dd01af8c07dc1bcc196ffb137.tar.gz otp-045319da07722f1dd01af8c07dc1bcc196ffb137.tar.bz2 otp-045319da07722f1dd01af8c07dc1bcc196ffb137.zip |
Merge branch 'lukas/rcs-ppc-cross-tests/OTP-10265' into maint
* lukas/rcs-ppc-cross-tests/OTP-10265:
Skip ct_netconf tests if there is no crypto
Migrate timers from test_server to ct interface
Update tests to run with an oldshell emulator
Move crypto check so that tc is skipped and not failed
Update for new version of ppc compilation chain
Verify that ebin folder of applications exists
Diffstat (limited to 'lib/test_server')
-rw-r--r-- | lib/test_server/src/ts.erl | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/test_server/src/ts.erl b/lib/test_server/src/ts.erl index 4899f38d2b..42b286ef64 100644 --- a/lib/test_server/src/ts.erl +++ b/lib/test_server/src/ts.erl @@ -291,12 +291,19 @@ run(Testspec, Config) when is_atom(Testspec), is_list(Config) -> Options=check_test_get_opts(Testspec, Config), File=atom_to_list(Testspec), Spec = case code:lib_dir(Testspec) of - {error, bad_name} when Testspec /= emulator, - Testspec /= system, - Testspec /= epmd -> + _ when Testspec == emulator; + Testspec == system; + Testspec == epmd -> + File++".spec"; + {error, bad_name} -> create_skip_spec(Testspec, tests(Testspec)); - _ -> - File++".spec" + Path -> + case file:read_file_info(filename:join(Path,"ebin")) of + {ok,_} -> + File++".spec"; + _ -> + create_skip_spec(Testspec, tests(Testspec)) + end end, run_test(File, [{spec,[Spec]}], Options); %% Runs one module in a spec (interactive) |