Macros | Functions
artapp_t.cc File Reference
#include "boost/test/unit_test.hpp"
#include "art/Framework/Art/artapp.h"
#include "art/Framework/Art/detail/info_success.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (artapp test)
 

Functions

 BOOST_AUTO_TEST_CASE (NoConfig)
 
 BOOST_AUTO_TEST_CASE (testHelp)
 
 BOOST_AUTO_TEST_CASE (testBadConfigOption)
 
 BOOST_AUTO_TEST_CASE (testEmptyConfig)
 
 BOOST_AUTO_TEST_CASE (testNonesuchConfig)
 
 BOOST_AUTO_TEST_CASE (testParallelism1)
 
 BOOST_AUTO_TEST_CASE (testParallelism2)
 
 BOOST_AUTO_TEST_CASE (testParallelism3)
 
 BOOST_AUTO_TEST_CASE (testParallelism4)
 
 BOOST_AUTO_TEST_CASE (testParallelism5)
 
 BOOST_AUTO_TEST_CASE (testParallelism6)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (artapp test)

Definition at line 1 of file artapp_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( NoConfig  )

Definition at line 9 of file artapp_t.cc.

10 {
11  char const* strings[] = {"artapp_t"};
12  BOOST_TEST_REQUIRE(artapp(1, const_cast<char**>(strings)) == 89);
13 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testHelp  )

Definition at line 15 of file artapp_t.cc.

16 {
17  char const* strings[] = {"artapp_t", "--help"};
18  BOOST_TEST_REQUIRE(artapp(2, const_cast<char**>(strings)) ==
20 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
constexpr int info_success()
Definition: info_success.h:8
BOOST_AUTO_TEST_CASE ( testBadConfigOption  )

Definition at line 22 of file artapp_t.cc.

23 {
24  char const* strings[] = {"artapp_t", "--config"};
25  BOOST_TEST_REQUIRE(artapp(2, const_cast<char**>(strings)) == 88);
26 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testEmptyConfig  )

Definition at line 28 of file artapp_t.cc.

29 {
30  char const* strings[] = {"artapp_t", "--config", "/dev/null"};
31  BOOST_TEST_REQUIRE(artapp(3, const_cast<char**>(strings)) == 0);
32 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testNonesuchConfig  )

Definition at line 34 of file artapp_t.cc.

35 {
36  char const* strings[] = {"artapp_t", "--config", "no_such_config.fcl"};
37  BOOST_TEST_REQUIRE(artapp(3, const_cast<char**>(strings)) == 90);
38 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testParallelism1  )

Definition at line 41 of file artapp_t.cc.

42 {
43  char const* strings[] = {"artapp_t", "--config", "/dev/null", "-j4"};
44  BOOST_TEST_REQUIRE(artapp(4, const_cast<char**>(strings)) == 0);
45 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testParallelism2  )

Definition at line 47 of file artapp_t.cc.

48 {
49  char const* strings[] = {"artapp_t", "--config", "/dev/null", "--nthreads=1"};
50  BOOST_TEST_REQUIRE(artapp(4, const_cast<char**>(strings)) == 0);
51 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testParallelism3  )

Definition at line 53 of file artapp_t.cc.

54 {
55  char const* strings[] = {
56  "artapp_t", "--config", "/dev/null", "--nschedules=1"};
57  BOOST_TEST_REQUIRE(artapp(4, const_cast<char**>(strings)) == 0);
58 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testParallelism4  )

Definition at line 60 of file artapp_t.cc.

61 {
62  char const* strings[] = {
63  "artapp_t", "--config", "/dev/null", "--nschedules=1", "--nthreads=1"};
64  BOOST_TEST_REQUIRE(artapp(5, const_cast<char**>(strings)) == 0);
65 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testParallelism5  )

Definition at line 67 of file artapp_t.cc.

68 {
69  char const* strings[] = {
70  "artapp_t", "--config", "/dev/null", "-j1", "--nschedules=1"};
71  BOOST_TEST_REQUIRE(artapp(5, const_cast<char**>(strings)) == 89);
72 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE ( testParallelism6  )

Definition at line 74 of file artapp_t.cc.

75 {
76  char const* strings[] = {
77  "artapp_t", "--config", "/dev/null", "-j1", "--nthreads=1"};
78  BOOST_TEST_REQUIRE(artapp(5, const_cast<char**>(strings)) == 89);
79 }
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))