tests: test picnit
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 18 Feb 2018 00:53:53 +0000 (19:53 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 18 Feb 2018 17:12:38 +0000 (12:12 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/picnit.args [new file with mode: 0644]
tests/sav/picnit.res [new file with mode: 0644]
tests/sav/picnit_args2.res [new file with mode: 0644]
tests/sav/picnit_args3.res [new file with mode: 0644]
tests/sav/picnit_args4.res [new file with mode: 0644]
tests/sav/picnit_args5.res [new file with mode: 0644]

diff --git a/tests/picnit.args b/tests/picnit.args
new file mode 100644 (file)
index 0000000..35da5ee
--- /dev/null
@@ -0,0 +1,4 @@
+install https://gitlab.com/xymus/hello_picnit.git
+install hello_picnit
+list
+upgrade hello_picnit
diff --git a/tests/sav/picnit.res b/tests/sav/picnit.res
new file mode 100644 (file)
index 0000000..952c1c1
--- /dev/null
@@ -0,0 +1,12 @@
+usage: picnit <command> [options]
+
+commands:
+  install     Install a package by its name or from a git-repository
+  list        List installed packages
+  upgrade     Upgrade a package
+  uninstall   Uninstall a package
+  help        Show general help message or the help for a command
+
+options:
+  --help, -h      Show this help message
+  --verbose, -v   Print more information
diff --git a/tests/sav/picnit_args2.res b/tests/sav/picnit_args2.res
new file mode 100644 (file)
index 0000000..8fba0b7
--- /dev/null
@@ -0,0 +1 @@
+Already installed
diff --git a/tests/sav/picnit_args3.res b/tests/sav/picnit_args3.res
new file mode 100644 (file)
index 0000000..81eb1a2
--- /dev/null
@@ -0,0 +1 @@
+hello_picnit    example
diff --git a/tests/sav/picnit_args4.res b/tests/sav/picnit_args4.res
new file mode 100644 (file)
index 0000000..2a7bfed
--- /dev/null
@@ -0,0 +1 @@
+Already up-to-date.
diff --git a/tests/sav/picnit_args5.res b/tests/sav/picnit_args5.res
new file mode 100644 (file)
index 0000000..2a7bfed
--- /dev/null
@@ -0,0 +1 @@
+Already up-to-date.