aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/test/odbc.dynspec
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-05-28 08:18:06 +0000
committerErlang/OTP <[email protected]>2010-05-28 11:25:47 +0200
commitbb92b63e5203e85291601e6756407238bc677894 (patch)
tree94df8bc6be99c78a4c9bea3b1ae63cbb0c0f6942 /lib/odbc/test/odbc.dynspec
parent7f676f3e983d3d9c5fd645a6a6707d7a35dad524 (diff)
downloadotp-bb92b63e5203e85291601e6756407238bc677894.tar.gz
otp-bb92b63e5203e85291601e6756407238bc677894.tar.bz2
otp-bb92b63e5203e85291601e6756407238bc677894.zip
odbc: Relese test suites
Diffstat (limited to 'lib/odbc/test/odbc.dynspec')
-rw-r--r--lib/odbc/test/odbc.dynspec31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/odbc/test/odbc.dynspec b/lib/odbc/test/odbc.dynspec
new file mode 100644
index 0000000000..bb15edceed
--- /dev/null
+++ b/lib/odbc/test/odbc.dynspec
@@ -0,0 +1,31 @@
+%% -*- erlang -*-
+%% You can test this file using this command.
+%% file:script("odbc.dynspec", [{'Os',"Unix"}]).
+
+Exists =
+fun() ->
+ case code:lib_dir(odbc) of
+ {error,bad_name} ->
+ false;
+ P ->
+ %% Make sure that the odbc directory really
+ %% contains the application (and not only documentation).
+ case filelib:is_file(filename:join(P, "ebin/odbc.beam")) of
+ false -> false;
+ true ->
+ %% We know that we don't have any odbc libraries
+ %% installed on this computer.
+ {ok,Host} = inet:gethostname(),
+ Host =/= "netsim200"
+ end
+ end
+end,
+case Exists() of
+ false ->
+ NoOdbc = "No odbc application",
+ [{skip, {odbc_connect_SUITE, NoOdbc}},
+ {skip, {odbc_data_type_SUITE, NoOdbc}},
+ {skip, {odbc_query_SUITE, NoOdbc}}];
+ true ->
+ []
+end.