tests: add metadata & content in test_prog to test nitcatalog
authorJean Privat <jean@pryen.org>
Mon, 2 May 2016 01:21:27 +0000 (21:21 -0400)
committerJean Privat <jean@pryen.org>
Mon, 2 May 2016 15:33:50 +0000 (11:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/nitcatalog.args [new file with mode: 0644]
tests/sav/nit_args6.res
tests/sav/nitcatalog_args1.res [new file with mode: 0644]
tests/sav/test_sort_perf_args1.res
tests/test_prog/README.md
tests/test_prog/package.ini [new file with mode: 0644]

diff --git a/tests/nitcatalog.args b/tests/nitcatalog.args
new file mode 100644 (file)
index 0000000..9dedd23
--- /dev/null
@@ -0,0 +1 @@
+test_prog --no-git -d "$WRITE" ; cat "$WRITE/p/test_prog.html"
index bfacdb8..7b38a25 100644 (file)
@@ -6,6 +6,10 @@ This program creates a fake model that can be used to test tools like:
 * `nitmetrics`
 * `nitx`
 * or others `modelbuilder`.
+
+An image:
+
+![Tinks3D](../../contrib/tinks/doc/tinks3d.png)
 # This file is part of NIT ( http://www.nitlanguage.org ).
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/tests/sav/nitcatalog_args1.res b/tests/sav/nitcatalog_args1.res
new file mode 100644 (file)
index 0000000..143e589
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <meta charset="utf-8">
+       <link rel="stylesheet" media="all" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
+       <link rel="stylesheet" media="all" href="../style.css">
+<title>test_prog</title></head>
+<body>
+<div class='container-fluid'>
+ <div class='row'>
+  <nav id='topmenu' class='navbar navbar-default navbar-fixed-top' role='navigation'>
+   <div class='container-fluid'>
+    <div class='navbar-header'>
+     <button type='button' class='navbar-toggle' data-toggle='collapse' data-target='#topmenu-collapse'>
+      <span class='sr-only'>Toggle menu</span>
+      <span class='icon-bar'></span>
+      <span class='icon-bar'></span>
+      <span class='icon-bar'></span>
+     </button>
+     <span class='navbar-brand'><a href="http://nitlanguage.org/">Nitlanguage.org</a></span>
+    </div>
+    <div class='collapse navbar-collapse' id='topmenu-collapse'>
+     <ul class='nav navbar-nav'>
+      <li><a href="../index.html">Catalog</a></li>
+     </ul>
+    </div>
+   </div>
+  </nav>
+ </div>
+<div class="content">
+<h1 class="package-name">test_prog</h1>
+<div class="nitdoc"><p class="synopsys">Test program for model tools.</p><p>This program creates a fake model that can be used to test tools like:</p>
+<ul>
+<li><code class="nitcode"><span class="nitcode"><span class="line"><span class="nc_i">nitdoc</span></span></span></code></li>
+<li><code class="nitcode"><span class="nitcode"><span class="line"><span class="nc_i">nitmetrics</span></span></span></code></li>
+<li><code class="nitcode"><span class="nitcode"><span class="line"><span class="nc_i">nitx</span></span></span></code></li>
+<li>or others <code class="nitcode"><span class="nitcode"><span class="line"><span class="nc_i">modelbuilder</span></span></span></code>.</li>
+</ul>
+<p>An image:</p>
+<p><img src="../res/c94d8a73ccfe143ebde7599e88f5f5ce.png" alt="Tinks3D"/></p>
+</div><h2>Content</h2><ul>
+<li><strong>test_prog</strong>: <span class="synopsys nitdoc">Test program for model tools.</span> (test_prog)<ul>
+<li><strong>game</strong>: <span class="synopsys nitdoc">Gaming group</span> (test_prog/game)<ul>
+<li><strong>game</strong>: <span class="synopsys nitdoc">A game abstraction for RPG.</span> (test_prog/game/game.nit)</li>
+</ul>
+</li>
+<li><strong>platform</strong>: <span class="synopsys nitdoc">Fictive Crappy Platform.</span> (test_prog/platform)<ul>
+<li><strong>platform</strong>: <span class="synopsys nitdoc">Declares base types allowed on the platform.</span> (test_prog/platform/platform.nit)</li>
+</ul>
+</li>
+<li><strong>rpg</strong>: <span class="synopsys nitdoc">Role Playing Game group</span> (test_prog/rpg)<ul>
+<li><strong>careers</strong>: <span class="synopsys nitdoc">Careers of the game.</span> (test_prog/rpg/careers.nit)</li>
+<li><strong>character</strong>: <span class="synopsys nitdoc">Characters are playable entity in the world.</span> (test_prog/rpg/character.nit)</li>
+<li><strong>combat</strong>: <span class="synopsys nitdoc">COmbat interactions between characters.</span> (test_prog/rpg/combat.nit)</li>
+<li><strong>races</strong>: <span class="synopsys nitdoc">Races of the game.</span> (test_prog/rpg/races.nit)</li>
+<li><strong>rpg</strong>: <span class="synopsys nitdoc">A worlg RPG abstraction.</span> (test_prog/rpg/rpg.nit)</li>
+</ul>
+</li>
+<li><strong>test_prog</strong>: <span class="synopsys nitdoc">A test program with a fake model to check model tools.</span> (test_prog/test_prog.nit)</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="sidebar">
+<ul class="box">
+</ul>
+<ul class="box">
+<li><a href="http:&#47;&#47;nitlanguage.org">http:&#47;&#47;nitlanguage.org</a></li>
+<li><a href="http:&#47;&#47;www.example.com&#47;~jdoe"><img src="https://secure.gravatar.com/avatar/694ea0904ceaf766c6738166ed89bafb?size=20&amp;default=retro">&nbsp;John Doe</a></li><li><a href="http://opensource.org/licenses/Apache-2.0">Apache-2.0</a> license</li>
+</ul>
+<h3>Source Code</h3>
+<ul class="box">
+<li><a href="https:&#47;&#47;github.com&#47;nitlang&#47;nit&#47;tree&#47;master&#47;tests&#47;test_prog">https:&#47;&#47;github.com&#47;nitlang&#47;nit&#47;tree&#47;master&#47;tests&#47;test_prog</a></li>
+<li><tt>https:&#47;&#47;github.com&#47;nitlang&#47;nit.git</tt></li>
+</ul>
+<h3>Tags</h3>
+<a href="../index.html#tag_test">test</a>, <a href="../index.html#tag_game">game</a><h3>Requirements</h3>
+none<h3>Clients</h3>
+none<h3>Contributors</h3>
+<ul class="box"><li><a href="http:&#47;&#47;www.example.com&#47;~jdoe"><img src="https://secure.gravatar.com/avatar/694ea0904ceaf766c6738166ed89bafb?size=20&amp;default=retro">&nbsp;John Doe</a></li><li><img src="https://secure.gravatar.com/avatar/db3f2909768694ad2bb6409b44627182?size=20&amp;default=retro">&nbsp;Riri</li><li>Fifi (http:&#47;&#47;www.example.com&#47;~fifi)</li><li>Loulou</li></ul><h3>Stats</h3>
+<ul class="box">
+<li>8 modules</li>
+<li>22 classes</li>
+<li>68 methods</li>
+<li>439 lines of code</li>
+</ul>
+</div>
+</div> <!-- container-fluid -->
+<script src='https://code.jquery.com/jquery-latest.min.js'></script>
+<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js'></script>
+<script src='https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.8.1/bootstrap-table-all.min.js'></script>
+
+</body>
+</html>
+index.html
+p/
+people.html
+res/
+style.css
+table.html
index 05d8839..01532de 100644 (file)
@@ -3,6 +3,7 @@ test_prog/
 |--test_prog/game
 |  |--test_prog/game/README.md
 |  `--test_prog/game/game.nit
+|--test_prog/package.ini
 |--test_prog/platform
 |  |--test_prog/platform/README.md
 |  `--test_prog/platform/platform.nit
index c300f42..4b65c8a 100644 (file)
@@ -6,3 +6,7 @@ This program creates a fake model that can be used to test tools like:
 * `nitmetrics`
 * `nitx`
 * or others `modelbuilder`.
+
+An image:
+
+![Tinks3D](../../contrib/tinks/doc/tinks3d.png)
diff --git a/tests/test_prog/package.ini b/tests/test_prog/package.ini
new file mode 100644 (file)
index 0000000..ff4b70d
--- /dev/null
@@ -0,0 +1,13 @@
+[package]
+name=test_prog
+version=0.1
+tags=test,game
+maintainer=John Doe <jdoe@example.com> (http://www.example.com/~jdoe), Spider-Man
+more_contributors=Riri <riri@example.com>, Fifi (http://www.example.com/~fifi), Loulou
+license=Apache-2.0
+[upstream]
+browse=https://github.com/nitlang/nit/tree/master/tests/test_prog
+git=https://github.com/nitlang/nit.git
+git.directory=tests/test_prog
+homepage=http://nitlanguage.org
+issues=https://github.com/nitlang/nit/issues