From caad4922263009529af8118d1603a78a3091e13e Mon Sep 17 00:00:00 2001 From: Wade Alcorn Date: Fri, 20 Jan 2012 21:20:54 +1000 Subject: [PATCH] Added autorun unit test stub for issue #583 --- test/unit/core/tc_autorun.rb | 29 +++++++++++++++++++++++++++++ test/unit/ts_unit.rb | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 test/unit/core/tc_autorun.rb diff --git a/test/unit/core/tc_autorun.rb b/test/unit/core/tc_autorun.rb new file mode 100644 index 000000000..515158212 --- /dev/null +++ b/test/unit/core/tc_autorun.rb @@ -0,0 +1,29 @@ +# +# Copyright 2012 Wade Alcorn wade@bindshell.net +# +# 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. +# +require 'test/unit' + +class TC_Autorun < Test::Unit::TestCase + + def setup + $:.unshift(File.join(File.expand_path(File.dirname(__FILE__)), '.')) + $root_dir = File.expand_path('../../../../', __FILE__) + end + + def test_autorun + assert(true) + end + +end diff --git a/test/unit/ts_unit.rb b/test/unit/ts_unit.rb index 6940b3046..78bba6ad9 100644 --- a/test/unit/ts_unit.rb +++ b/test/unit/ts_unit.rb @@ -24,6 +24,7 @@ require './core/tc_core' require './core/tc_api' require './core/tc_modules' require './core/tc_social_engineering' +require './core/tc_autorun' require './tc_grep' require './tc_filesystem' @@ -39,6 +40,7 @@ class TS_BeefTests suite << TC_Filesystem.suite suite << TC_Grep.suite suite << TC_SocialEngineering.suite + suite << TC_Autorun.suite return suite end