Skip to content
Permalink
Browse files

added bat tests to test the three scratchdir variations

via travisCI

Signed-off-by: Bill Weide <william.c.weide@intel.com>
  • Loading branch information...
beardeddog committed Oct 10, 2018
1 parent 29606c5 commit 4b7115c2a6a379cc9b05479e4f340aad92846879
Showing with 44 additions and 0 deletions.
  1. +7 −0 .travis.yml
  2. +37 −0 tests/bat/default_scratchdir.ini
@@ -61,7 +61,14 @@ script:

# single-node BAT [order matters for last two]
- export MTT_HOME=$TRAVIS_BUILD_DIR

# test default scratchdir
- $TRAVIS_BUILD_DIR/pyclient/pymtt.py --verbose $TRAVIS_BUILD_DIR/tests/bat/default_scratchdir.ini
# test ini defined scratchdir
- $TRAVIS_BUILD_DIR/pyclient/pymtt.py --verbose $TRAVIS_BUILD_DIR/tests/bat/negative.ini
# test commandline defined --scratchdir
- $TRAVIS_BUILD_DIR/pyclient/pymtt.py --verbose --scratch-dir="mttscratch2" $TRAVIS_BUILD_DIR/tests/bat/negative.ini
#
- $TRAVIS_BUILD_DIR/pyclient/pymtt.py --verbose $TRAVIS_BUILD_DIR/tests/bat/default_collect_profile.ini
- $TRAVIS_BUILD_DIR/pyclient/pymtt.py --verbose $TRAVIS_BUILD_DIR/tests/bat/default_check_profile.ini

@@ -0,0 +1,37 @@
#Copyright (c) 2016-2018 Intel, Inc. All rights reserved.
#

# Set defaults
[MTTDefaults]
description = MTT negative BAT test -- USING default scratchdir

#======================================================================
# Test get phases - get the tests that the
# target software will run.
#======================================================================

[TestGet:Negative]
plugin = Copytree
src = /opt/mtt/tests/bat

#======================================================================
# Test run phase
#----------------------------------------------------------------------
[TestRun:Negative]
plugin = Shell
parent = TestGet:Negative
command = ./negative.sh
fail_test = negative.sh

#======================================================================
# Reporter phase
#======================================================================
[Reporter:TextFileConsole]
plugin = TextFile

#======================================================================
# Reporter phase
#======================================================================
[Reporter:JunitXML]
plugin = JunitXML
filename = negative.xml

0 comments on commit 4b7115c

Please sign in to comment.
You can’t perform that action at this time.