Browse Source

Test: PityTest11 dir rename

LIB-11
heck 4 years ago
parent
commit
d6fc9cf132
  1. 14
      test/Makefile
  2. 0
      test/pitytest11/Makefile
  3. 0
      test/pitytest11/src/PityModel.cc
  4. 8
      test/pitytest11/src/PityModel.hh
  5. 2
      test/pitytest11/src/PityUnit.hh
  6. 8
      test/pitytest11/src/PityUnit.hxx
  7. 2
      test/pitytest11/test/test_execmodes.cc
  8. 5
      test/pitytest11/test/test_processdirs.cc

14
test/Makefile

@ -22,18 +22,18 @@ OBJ_FRAMEWORK=$(subst .cc,.o,$(SRC_FRAMEWORK))
# -include $(DEPENDS)
#endif
.PHONY: all clean rmtestdata peptest peptest_clean
.PHONY: all clean rmtestdata pitytest pitytest_clean
.DEFAULT_GOAL := all
all: $(BIN_TEST) peptest
all: $(BIN_TEST) pitytest
$(BIN_TEST): $(OBJ_FRAMEWORK)
peptest:
$(MAKE) -C pEpTest
pitytest:
$(MAKE) -C pitytest11
clean: peptest_clean
clean: pitytest_clean
rm -f $(BIN_TEST)
rm -f $(OBJ_FRAMEWORK)
rm -Rf *.dSYM
@ -41,8 +41,8 @@ clean: peptest_clean
rm -f *.o
rm -Rf /tmp/test_pEp.*
peptest_clean:
$(MAKE) -C pEpTest clean
pitytest_clean:
$(MAKE) -C pitytest11 clean
rmtestdata:
rm -Rf /tmp/test_pEp.*

0
test/PityTest11/Makefile → test/pitytest11/Makefile

0
test/PityTest11/src/PityModel.cc → test/pitytest11/src/PityModel.cc

8
test/PityTest11/src/PityModel.hh → test/pitytest11/src/PityModel.hh

@ -1,8 +1,8 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPEPADAPTER_PEPTESTMODEL_HH
#define LIBPEPADAPTER_PEPTESTMODEL_HH
#ifndef PITYTEST_PITYMODEL_HH
#define PITYTEST_PITYMODEL_HH
#include "../../../src/pEpLog.hh"
@ -17,10 +17,10 @@ namespace pEp {
private:
const std::string name;
static bool log_enabled;
Adapter::pEpLog::pEpLogger logger{ "pEpTestModel", log_enabled };
Adapter::pEpLog::pEpLogger logger{ "PityModel", log_enabled };
Adapter::pEpLog::pEpLogger& m4gic_logger_n4me = logger;
};
}; // namespace Test
}; // namespace pEp
#endif // LIBPEPADAPTER_PEPTESTMODEL_HH
#endif // PITYTEST_PITYMODEL_HH

2
test/PityTest11/src/PityUnit.hh → test/pitytest11/src/PityUnit.hh

@ -61,7 +61,7 @@ namespace pEp {
// internal logging
static bool debug_log_enabled;
Adapter::pEpLog::pEpLogger logger_debug{ "pEpTestTree", debug_log_enabled };
Adapter::pEpLog::pEpLogger logger_debug{ "PityUnit", debug_log_enabled };
private:
// CONSTRUCTORS

8
test/PityTest11/src/PityUnit.hxx → test/pitytest11/src/PityUnit.hxx

@ -1,8 +1,8 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPEPADAPTER_PEPTEST_PityUnit_HXX
#define LIBPEPADAPTER_PEPTEST_PityUnit_HXX
#ifndef PITYTEST_PITYUNIT_HXX
#define PITYTEST_PITYUNIT_HXX
#include "../../../src/std_utils.hh"
#include "../../framework/utils.hh"
@ -20,7 +20,7 @@ using namespace pEp::Adapter::pEpLog;
namespace pEp {
namespace PityTest11 {
template<class T>
std::string PityUnit<T>::_global_root_dir = "./peptest";
std::string PityUnit<T>::_global_root_dir = "./pitytest";
template<class T>
bool PityUnit<T>::debug_log_enabled = false;
@ -387,4 +387,4 @@ namespace pEp {
} // namespace Test
} // namespace pEp
#endif // LIBPEPADAPTER_PEPTEST_PityUnit_HXX
#endif // PITYTEST_PITYUNIT_HXX

2
test/PityTest11/test/test_execmodes.cc → test/pitytest11/test/test_execmodes.cc

@ -17,7 +17,7 @@ void printHomeDir(const PityUnit<>& myself, int sleepmilis, int rep_count)
int main(int argc, char* argv[])
{
{
// DEBUG Logging of pEpTestTree itself
// DEBUG Logging of PityTestUnit itself
PityUnit<>::debug_log_enabled = false;
// Configure DataRoot for all TestNodes

5
test/PityTest11/test/test_processdirs.cc → test/pitytest11/test/test_processdirs.cc

@ -14,6 +14,11 @@ void printHomeDir(const PityUnit<>& myself)
myself.log("HOME=" + string(getenv("HOME")));
}
void ptAssert(bool condition) {
if(!condition) {
}
}
int main(int argc, char* argv[])
{
Loading…
Cancel
Save