From 8cb0207e09c301a02e21f5e8a395c7c958781f1b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 5 Aug 2021 18:07:21 -0300 Subject: tests/: Add integration tests, also test with Valgrind --- tests/resources/assets/index.html | 73 +++++++++++++++++++++++ tests/resources/assets/logo.svg | 62 ++++++++++++++++++++ tests/resources/assets/refs.html | 120 ++++++++++++++++++++++++++++++++++++++ tests/resources/assets/style.css | 76 ++++++++++++++++++++++++ 4 files changed, 331 insertions(+) create mode 100644 tests/resources/assets/index.html create mode 100644 tests/resources/assets/logo.svg create mode 100644 tests/resources/assets/refs.html create mode 100644 tests/resources/assets/style.css (limited to 'tests/resources') diff --git a/tests/resources/assets/index.html b/tests/resources/assets/index.html new file mode 100644 index 0000000..04aa8a2 --- /dev/null +++ b/tests/resources/assets/index.html @@ -0,0 +1,73 @@ + + + + + + + + Repositories + + +
+
+ +

+ Repositories +

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ Name + + Description + + Last commit +
+ + repo-1 + + + Submodule repository for gistatic project tests + + + 2021-07-31 19:29 +
+ + repo-2 + + + + + 2021-07-31 19:27 +
+
+ + + diff --git a/tests/resources/assets/logo.svg b/tests/resources/assets/logo.svg new file mode 100644 index 0000000..ce566b2 --- /dev/null +++ b/tests/resources/assets/logo.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/resources/assets/refs.html b/tests/resources/assets/refs.html new file mode 100644 index 0000000..b24bd52 --- /dev/null +++ b/tests/resources/assets/refs.html @@ -0,0 +1,120 @@ + + + + + + + + + + repo-1 + + +
+
+ +
+

+ repo-1 +

+

+ Submodule repository for gistatic project tests + +

+ + git clone https://example.com/ + +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + +
+ Branch + + Commit message + + Author + + Date +
+ + main + + + + description: Add + + + EuAndreh + + 2021-07-31 19:29 +
+ + + + + + + + + + + + +
+ Tag + + Commit message + + Download + + Author + + Date +
+
+ + + diff --git a/tests/resources/assets/style.css b/tests/resources/assets/style.css new file mode 100644 index 0000000..9972738 --- /dev/null +++ b/tests/resources/assets/style.css @@ -0,0 +1,76 @@ +body { + font-family: monospace; + max-width: 1100px; + margin: 0 auto 0 auto; +} + +.logo { + height: 6em; + width: 6em; +} + +.header-horizontal-grouping { + display: flex; + align-items: center; + margin-top: 1em; + margin-bottom: 1em; +} + +.header-description { + margin-left: 2em; +} + +nav { + margin-top: 2em; +} + +nav ul { + display: flex; + list-style-type: none; + margin-bottom: 0; +} + +nav li { + margin-left: 10px; +} + +nav a { + padding: 2px 8px 0px 8px; + text-decoration: none; + color: black; +} + +nav a:hover { + text-decoration: underline; +} + +.selected-nav-item { + background-color: hsl(0, 0%, 87%); +} + +hr { + margin-top: 0; + border: 0; + border-top: 3px solid hsl(0, 0%, 87%); +} + +table { + margin: 2em auto; +} + +th { + padding-bottom: 1em; +} + +tbody tr:hover { + background-color: hsl(0, 0%, 93%); +} + +td { + padding-left: 1em; + padding-right: 1em; +} + +footer { + text-align: center; +} -- cgit v1.2.3