blob: 20fcc30bcd893cb6322209afbd51e1c4a5d67e4a [file] [log] [blame]
%%%
%%% Copyright 2011, Boundary
%%%
%%% Licensed under the Apache License, Version 2.0 (the "License");
%%% you may not use this file except in compliance with the License.
%%% You may obtain a copy of the License at
%%%
%%% http://www.apache.org/licenses/LICENSE-2.0
%%%
%%% Unless required by applicable law or agreed to in writing, software
%%% distributed under the License is distributed on an "AS IS" BASIS,
%%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%%% See the License for the specific language governing permissions and
%%% limitations under the License.
%%%
%%%-------------------------------------------------------------------
%%% File: folsom_tests.erl
%%% @author joe williams <j@boundary.com>
%%% @doc
%%% @end
%%%------------------------------------------------------------------
-module(folsom_tests).
-include_lib("eunit/include/eunit.hrl").
run_test() ->
folsom:start(),
?debugFmt("creating metrics", []),
folsom_erlang_checks:create_metrics(),
?debugFmt("populating metrics", []),
folsom_erlang_checks:populate_metrics(),
?debugFmt("checking metrics", []),
folsom_erlang_checks:check_metrics(),
?debugFmt("checking counter metric", []),
folsom_erlang_checks:counter_metric(10000, testcounter),
?debugFmt("checking erlang vm metrics", []),
folsom_erlang_checks:vm_metrics(),
?debugFmt("deleting metrics", []),
folsom_erlang_checks:delete_metrics(),
?debugFmt("cpu topology test", []),
folsom_erlang_checks:cpu_topology().