| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
echo "===== Extracting Test library C++ source code files =====" |
| 4 |
|
| 5 |
# ---------------------- TestLib.h ---------------------- |
| 6 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/TestLib.h |
| 7 |
cat <<EOF > TestLib.h |
| 8 |
#ifndef TESTLIB_H |
| 9 |
#define TESTLIB_H |
| 10 |
|
| 11 |
// A simple test library |
| 12 |
class TestLib { |
| 13 |
|
| 14 |
public: |
| 15 |
static void test(); |
| 16 |
}; |
| 17 |
|
| 18 |
#endif // TESTLIB_H |
| 19 |
EOF |
| 20 |
|
| 21 |
# ---------------------- TestLib.cpp ---------------------- |
| 22 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/TestLib.cpp |
| 23 |
cat <<EOF > TestLib.cpp |
| 24 |
#include "TestLib.h" |
| 25 |
|
| 26 |
#include <iostream> |
| 27 |
|
| 28 |
// --------------- test ------------------- |
| 29 |
void TestLib::test() { |
| 30 |
std::cout << "Test output" << std::endl; |
| 31 |
} |
| 32 |
EOF |
| 33 |
|
| 34 |
echo "[OK]" |